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.

Save the firewall config with iptables-save and then set iptables to
start at boot time with chkconfig (see man for details). That will
put the firewall up at the right time.

Alex


>
> Patrick
>
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
> --
> This message has been scanned for viruses and
> dangerous content by Avantel Systems, and is
> believed to be clean.
>


-- 
This message has been scanned for viruses and
dangerous content by Avantel Systems, and is
believed to be clean.


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

  Powered by Linux