Results 1 to 2 of 2
Hi, i have something quite simple: I have one host with an ipaddress and one NIC. now I would like that certain ports of that machine (25/80/110/143/443) would be redirected ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-28-2007 #1
- Join Date
- Nov 2006
i have something quite simple: I have one host with an ipaddress and one NIC.
now I would like that certain ports of that machine (25/80/110/143/443)
would be redirected to some other machine, because that one is replacing
the other, and I do not wish that there is any interruption in traffic.
so machine A has: 220.127.116.11 and one NIC
and machine B has: 18.104.22.168 and one NIC.
now i'm reading things like:
iptables -t nat -A PREROUTING -d 22.214.171.124 -p tcp \
--dport 80 -j DNAT --to-destination 126.96.36.199
which doesn't work.
what does work is something like:
iptables -t nat -A OUTPUT -d 188.8.131.52 -j DNAT --to \
but thats only for traffic which comes from the host itself, not for
foreign traffic that is going to the host.
hope someone can help.
- 08-28-2007 #2
- Join Date
- Jun 2007
Perhaps you should add a rule in FORWARD chain...