Re: Configuring a FC4 machine as a router

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

 



On Thu, Oct 13, 2005 at 10:31:37PM +0300, Ivan Ivanov wrote:
> 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

/etc/rc.d/rc.local

It's the last thing done during boot.

There are also some dedicated firewall distros out there, if you have
completely dedicated the machine to being a router.

Patrick


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

  Powered by Linux