[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

NAt doesn't working

Hi there!

I am trying to set up NAT using IPTABLES
on a very simple configuration (for test-only

1. Machine with IP-adddr =
2. Linux-Box with IP =
3. On the eth0 of the Linux-Box IP-Alias used = 
   #ifconfig eth0:1
4. NAT rules are:
   iptables -t nat -F
   iptables -t nat -P PREROUTING ACCEPT
   iptables -t nat -P POSTROUTING DROP
   iptables -t nat -P OUTPUT ACCEPT
   iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to

Now, as I understand, it should be impossible to "telnet"
to the address, as it can't pass through
POSTROUTING without mangling the sourse-ip. But it works
as usual. Both ip-addresses of Linux-Box are telnet'able.
It isn't correct, is it?

Thank you, 
Anton Antropov .

Reply to: