Questions tagged [dnat]
101 questions
0
votes
0 answers
Redirect traffic from one IP adress to another
I am moving a server from one local IP address to another, and I have a lot of places on my network which statically reference the old IP address. I'd like to re-route that traffic to the new address, while also being able to directly use the new…

aaronburro
- 101
- 1
0
votes
1 answer
Port 80 mixed up among clients using DNAT
I'm trying to set up a network like this:
...but I'm facing an issue.
Here's the point:
If I try to reach (e.g.) mywebsite1.com from external it works like a charm and it's shown my wonderful website but whenever I try to run (e.g.) apt-get update…

KaMZaTa
- 103
- 4
0
votes
1 answer
Can I access my VMware workstation intranet VMs through a public IP address
I have a Windows Server with a public IP address (102.1.1.1) and I've installed VMware workstation on it, creating several VMs on it.
The VMs use intranet IP addresses, such as 10.0.0.1, 10.0.0.2.
I have a question, whether exists a network…

244boy
- 141
- 3
- 8
0
votes
1 answer
How-to DNAT-forward all IP traffic on Windows 10 from IP1 to IP2?
On my local machine, I want to setup a (web-)server that receives data that is sent (via http/https) to IP 65.55.44.109 (vortex.data.micorosoft.com).
In order to do that, I need to forward all IP traffic on 65.55.44.109 to 127.0.0.1 on MY machine,…

Quandary
- 1,024
- 4
- 19
- 36
0
votes
1 answer
(dnat|redirect) with masquerade doesn't work
I have a problem, till a bit ago it was working just fine. but now, it doesn't work, but on another testing server it works just fine
I force all traffic to tor, and this part works just fine.
Problem is on masquerade I think as it not change the…

DoomedRaven
- 1
- 3
0
votes
0 answers
Infos about iptables DNAT/REDIRECT to local
I'm using Qubes OS, a system based on the Xen microkernel, which let you run easily multiple Virtual Machines and compartmentalize your digital life.
All the domains are connected by default (through virtual interfaces) to a FirewallVM which is…

JumpAlways
- 143
- 3
- 9
0
votes
2 answers
How to DNAT Broadcast Packets
I am working on a project where I have to DNAT some broadcast packets to a remote machine IP Address. So far I have learnt that IP-tables can only DNAT unicast packets and it does not DNAT broadcast packets. I am looking for a software that can…

Mian Ahmad
- 1
- 1
- 1
0
votes
1 answer
Redirection (ip nat static) with filtering
I want to apply a D-NAT on my Cisco router to access my management IPBX server via the Internet and I have successfully done it with this command:
(config)# ip nat inside source static tcp 10.1.1.254 80 41.25.130.47 8080
and to access to my server…

Paul
- 1
- 1
0
votes
0 answers
Port forward port 25 on a Firehol instance
I am trying to port forward through a Firehol box to my email server on port 25:
clienta:25 > firehol > email:25
This is a non-transparent connection. The command I am trying is:
nat4 to-destination [email-ip]:25 dport 25
For simplicity for now,…

dthree
- 367
- 1
- 8
- 26
0
votes
0 answers
Prerouting with iptables, destination port to DHCP ip
I have an iptables rule that translates requests to the same IP from different internal hosts by changing the source port.
iptables -t NAT -A POSTROUTING -p TCP -d 173.32.1.2 --dport 873 \
-m state --state NEW,ESTABLISHED -j SNAT --to-source…

devil0150
- 101
- 4
0
votes
1 answer
policy routing to guests on other server
After long searching I've found the answer to my challenge, but the last step fails.
I have two identical servers that both serve multiple guests. The servers have two interfaces: one for the external IP's I got from my ISP and one for an internal…

user45156
- 41
- 2
0
votes
2 answers
port rerouting with iptables not working
I want to reroute all traffic from a port e.g. 4445 (from localhost) to another port on another machine in the LAN e.g. 3305. I expected this should do the deal:
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 4445 -j DNAT --to…

Sim
- 111
- 8
0
votes
1 answer
iptables DNAT to external IP without masquerading does not work
On server 1.1.1.1:
iptables -t nat -A PREROUTING -p tcp --dport 20000 -j DNAT --to-destination: 2.2.2.2:20000
iptables -t nat -A PREROUTING -p tcp --dport 20000 -j LOG --log-prefix pre20k
iptables -t nat -A POSTROUTING -p tcp --dport 20000 -j LOG…

rlib
- 195
- 1
- 1
- 8
0
votes
1 answer
Why does iptables not doing DNAT for the same subnet?
I have the following NAT setup:
+--------------+ +-----------------------+ +-------------------+
| | | | | |
| | | | | …

Kintarō
- 181
- 3
- 7
0
votes
1 answer
NAT forwarding (whole IP) working only on some ports
Since my hoster doesn't allow briged setups I had to go for a NAT solution to run my CentOS VM on an additional IP and my host machine on the primary IP.
Now, I've got a problem since for ports 22, 80 and 443 this works as expected. I reach my…

Martin Müller
- 139
- 1
- 8