NAT in FC4

Alexander Dalloz ad+lists at uni-x.org
Thu Dec 1 09:40:02 UTC 2005


Am Do, den 01.12.2005 schrieb Rapid Sun um 8:00:

No HTML formatted list mails please.

> Can anybody tell me how to use NAT in FC4?
> 
> Which step? Which commands? Suppose I have 2 ethernet cards.
> 
> Rapid


iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

    [ given here that ppp0 is the outgoing device ]

service iptables save

You need to have forwarding enabled too in /etc/sysctl.conf.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 10:37:59 up 33 days, 8:38, load average: 0.26, 0.25, 0.17 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20051201/6d437252/attachment-0001.sig>


More information about the fedora-list mailing list