This is a discussion on static NAT ipchains: yes or no? within the Linux Networking forums, part of the Linux Forums category; Using RH 7.3. Does ipchains support static NAT (see below) or not? I haven't been able to find ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Using RH 7.3. Does ipchains support static NAT (see below) or not?
I haven't been able to find a definitive answer to this. Specifically, I want to have NAT performed on an interface so that 10.1.1.0/24 is statically NATed to 192.168.1.0/24 So that: 10.1.1.1 maps to 192.168.1.1 10.1.1.2 maps to 192.168.1.2 etc. That's static NAT according to the excellent document here: http://www.suse.de/~mha/linux-ip-nat/diplom/node4.html If the answer is "no", can you explain what this command is doing? ipchains -A forward -s 10.1.1.0/24 -d 192.168.1.0/24 -i eth0 -j MASQ If the answer is "yes", then is the above command right? Documentation on ipchains is poor, at best, but this would *seem* to be directing a static NAT setup. However, it doesn't seem to work. tia, RR |