Configuring a FC4 machine as a router

Ivan Ivanov rambiusparkisanius at gmail.com
Thu Oct 13 19:31:37 UTC 2005


Dear Colleagues,

I set up a small home LAN and subscribed to a local ISP. I dedicated
one of the machines in my LAN to behave as a router and it provides
the other machines with Internet. I did it with the following
commands:
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

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

Thank you for your advice in advance.

Regards
Ivan




More information about the fedora-list mailing list