Configuring a FC4 machine as a router

Cliff Savage cliff at acsalaska.net
Thu Oct 13 20:26:47 UTC 2005




II> the other machines with Internet. I did it with the following
II> commands:
II> iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
echo 1 >> /proc/sys/net/ipv4/ip_forward

I've done exactly what you did. Both of those firewall commands
are a part of Monmotha's IP Tables Firewall. Google on Monmotha.
The neat thing about using a firewall script is that you can also
do inbound port mapping....such as sending a particular port
to a particular machine. Along these lines I use Radmin to
control my win2K box from afar - Inbound port whatever is
automatically port forwarded to the win2k macine which is privately
addressed and lives behind the firewall.

So if you're gonna do anything like this...then just
get the firewall script which automatically does
both of the commands you pointed out - and so much more.





II> Now I want when I boot the router these two commands to be executed
II> during boot-time. Where is the most suitable place to add them?

II> Thank you for your advice in advance.

II> Regards
II> Ivan





More information about the fedora-list mailing list