Basic NAT router
Vu Pham
vu
Mon Jul 9 07:04:33 PDT 2007
On Mon, 2007-07-09 at 08:48 -0500, Michael Hipp wrote:
> Does any helpful soul out there have lying around an iptables script for
> the very most basic NAT router implemented in Linux?
>
> (This is my first time to configure one of these and this forest has way
> too many trees. And this system is already behind a firewall so I really
> just need the NAT functionality.)
>
The iptables command to allow NAT is :
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
with eth0 being your ethernet device connecting to the Internet.
Vu
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Linux-users
mailing list