Building a NAT router?

Ilia Dulgerov ilia at linuxman.biz
Wed Sep 24 09:51:20 UTC 2003


Do you know the external IP adress? If you do name it IPA and replace in 
this rule:
iptables -I POSTROUTING -t nat -s 192.168.1.0/255.255.255.0 -o eth0 -j 
SNAT --to-source IPA
please note eth0 i interface to internet connection
Ilia Duglerov
good luck

Martin wrote:

>Hi,
>
>my Severn box has 2 NICs and I would like to use it as a router for my
>DSL connection. Unfortunately I have no clue how to configure NAT (and
>portforwarding) :( I managed to get the box on the net using the
>Internet Configuration Wizard and I can ping the second NIC
>(192.168.1.1) from my other machine (192.168.1.2) but I still have to
>find out how to NAT and forward ports. So if anybody knows if/how I
>can do this with redhat-network-config or any other way I would be
>very greatful for any advice.
>
>Cheers,
>
>Martin
>
>
>
>  
>






More information about the fedora-test-list mailing list