Configuring a FC4 machine as a router

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux