I have a problem on a Debian Etch machine... For dark and stormy reasons its ip on eth0 is weird but we have to keep it like this...
eth0 Link encap:Ethernet inet addr:18.104.22.168 Mask:255.255.0.0 eth1 Link encap:Ethernet inet addr:192.168.1.250 Mask:255.255.255.0
With the command:
iptables –t nat –L POSTROUTING
target prot opt source destination ACCEPT 0 -- 22.214.171.124 anywhere MASQUERADE 0 -- !192.168.1.0/24 anywhere
The second rule, if I've understood correctly, does a nat of all the traffic different from 192.168.1.0/24. In other words all the packets headed to a lan for whom I have a routing rule are sent from the Debian Etch's machine ip, losing their real sender.
I would like this machine not to NAT the traffic not passing through it. I'll try to be clearer... It should NAT only traffic coming from 126.96.36.199 (its ip) and going out from 192.168.1.250.
I am learning linux lately and this is a little too much :/ Can anybody help (maybe giving directions to backup the config so I can be safe in case of total mess)?
Thanks a lot!