Re: IP masquerading
--- Matt Zagrabelny <mzagrabe@d.umn.edu> wrote:
>
> > iptables -t nat -A POSTROUTING -o ethx -j SNAT
> --to
> > ppp_address
>
> this is the wrong approach for a dialup where you
> would get a dynamic
> ip. use masquerading instead. (this will always work
> regardless of your
> external ip assigned from the ISP)
>
> do the following commands:
>
> # iptables -t nat -A POSTROUTING -o ppp0 -j
> MASQUERADE
> # echo 1 > /proc/sys/net/ipv4/ip_forward
>
> if your external interface is not ppp0, then change
> ppp0 to whatever
> your external interface is.
>
> -matt zagrabelny
>
>
Thanks for the correction, you are right, I do in that
way because I have an static ip address.
Regards.
=====
--
Sergio Basurto J.
If I have seen further it is by standing on the
shoulders of giants. (Isaac Newton)
--
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
Reply to: