Questions tagged [dnat]

101 questions
0
votes
0 answers

iptables port forwarding 443 cause ssl error on chrome

this is the story, i have 2 servers: server A ip: 1.1.1.1 hosting the website example.com server B ip: 2.2.2.2 minimal cent os what i did is changed https://example.com ip address in dns configuration to 2.2.2.2 and then forwarded the 80 and 443 and…
0
votes
0 answers

1:1 NAT or MultiIP for WAN implementation on OpenWRT NFTABLES (fw4)

I would like to configure 1:1 NAT for my ISP modem connected to my OpenWRT WAN interface. The modem IP address is 10.70.70.1 and I want to map it on my OpenWRT LAN bridge (192.168.64.0/24) with IP address 192.168.64.171. My DHCP range for the LAN…
Sina S.
  • 11
  • 1
  • 2
0
votes
0 answers

How to avoid port duplication when using iptable for DNAT

I configure the iptable output chain DNAT conversion by the following command. iptables -t nat -A OUTPUT -p tcp --dport 5000 -j DNAT --to 10.100.1.10:2048 When I link 10.100.20.4:5000 on the client 10.100.30.5, the traffic is successfully forwarded…
HK S
  • 1
0
votes
1 answer

nftables natting with source IP

I have a server in a datacenter which is a Proxmox server. On the server (one of many, they are in a Proxmox cluster) I am hosting various VM's. Services on the VM's are exposed through iptables (using ufw) natting like the following example: -A…
nobody
  • 103
  • 3
0
votes
0 answers

how can I NAT a NAT IP

I have a server on AWS with a floating (secondary) IP. During integrations with a partner I provide my secondary IP to be whitelisted and define a POSTROUTING rule to SNAT my IP to the secondary IP to reach to destination such as sudo iptables -t…
0
votes
1 answer

Windows Server Destination NAT

I'm unsure of the terminology for this question. Trying to solve a problem, I'm being forced to grow and learn something very new to me! How would I do Destination NAT on Windows Server 2016/2019 for an IP address? Is RRAS part of the solution, and…
cwheeler33
  • 764
  • 2
  • 5
  • 16
0
votes
0 answers

Redirect output to dynamic IP and change port

I have an application that needs to communication with two external hosts. For various reasons the host has now become a dynamic IP address. Since iptables communications via IP, simply using a straight DNAT won't do. I can change the hostname/IP…
-1
votes
2 answers

nftables dnat forwarding is not working properly

Good day, I am currently migrating from iptables to nftables. The problem is my systemd containers are running behind NAT, but I want to forward ports like 443 or 80 to them. There is no error message when I use the following set of commands, but…
TheGoliath
  • 13
  • 1
  • 4
-1
votes
1 answer

Iptables DNAT working in my own network, but not through VPN

For some reasons I need to switch a server ip to another ip, in order to be seen by another computer elsewhere through vpn. So I'm using iptables (didn't know any of that until yesterday) and testing with some result in my own network as…
-1
votes
1 answer

How do hosting providers give each container a unique public IP?

I'm looking in to starting my own hosting company; even if I'm only paid in experience. At first, I thought I'd create shell scripts to automate the creation of OpenVZ containers. But then I realized I'd also need custom IpTables rules set for each…
-1
votes
1 answer

Forward UDP packets to VM on another IP

I'm connected to internet via a router and want to route UDP packets on a port, let's say 3000 to a VM inside KVM. ┌──────────────────┐ │ router │ │ 54.0.0.1 (public)│ │ 192.168.0.1 │ └────────┬─────────┘ │ │ …
d9ngle
  • 59
  • 6
1 2 3 4 5 6
7