LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   IPTABLES DNAT SNAT Re-Addressing (https://www.linuxquestions.org/questions/linux-networking-3/iptables-dnat-snat-re-addressing-399169/)

jccurtis 01-03-2006 03:36 PM

IPTABLES DNAT SNAT Re-Addressing
 
Okay I have a Linux box set up on my network and want to do the following but it is not working. Any help is appreciated:

*mangle
COMMIT

*nat
-F PREROUTING
-A POSTROUTING -p all -s 10.22.92.111 -o eth0 -j SNAT --to 172.24.9.211
-A PREROUTING -p all -d 172.24.9.211 -i eth0 -j DNAT --to 10.22.92.111
-A INPUT
COMMIT

I want any packets coming in with a destination address of 172.24.9.211 to be re-directed to 10.22.92.11 or re-addressed. Also any packets with 10.22.92.111 as the source address need to be changed to 172.24.9.211.

upstatenewyork2@yahoo.com

grimse 01-03-2006 04:41 PM

hi.
ip-forwarding activated?

greetings, grim


All times are GMT -5. The time now is 06:46 AM.