I had setup masquerading for telnet connections.
iptables -t nat -A POSTROUTING -o eth2 -s 192.168.0.0./16 --dport 23 -j
MASQUERADE
But I could connect only to certain servers ( 130.149.26.81 works,
134.225.112.15 doesn't work, got connection closed by server).
After i while i have found following:
A machine without nat (with valid internet ip) can connect to any
telnetserver.
A machine with nat does not.
Changing -j MASQUERADE to -j SNAT --to-source 195.xxxxx-195.yyyyy works!
So I think, masquerading does not work correct or there was some trouble
with to used ports in masquerade.
Don't understand, why masquerading only works for certain servers, even it
was a special case of source nat.
I'm using iptables 1.2 on a 2.4.4 kernel.
Regards,
Axel