Re: SNAT not working

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

 



On Sunday 29 February 2004 9:34 am, Felipe wrote:

> I've tried to set up SNAT to match INTERNAL network to a external ip,
>
> /usr/local/sbin/iptables -t nat -A POSTROUTING -o eth0 -s 10.0.0.0/16 -j
> SNAT --to-source 200.110.2.179
>
> But that's working, it only works when i put:
>
> /usr/local/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
>
> eth0= external interface
> eth1= internal interface

Is 200.110.2.179 the address of the external interface eth0?

If it isn't, then reply packets have no interface to come back to, so 
connections won't work.

Regards,

Antony.

-- 
"The joy of X!!??  I've always hated compiling graphical shite.  You have a 10 
line program, and it ends up depending on the entire known universe."

 - Philip Hands

                                                     Please reply to the list;
                                                           please don't CC me.



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux