LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Iptables ate start-up (https://www.linuxquestions.org/questions/linux-networking-3/iptables-ate-start-up-367883/)

martincho 09-28-2005 02:01 PM

Iptables ate start-up
 
Hello All,

I have an old PC working as Gateway to share internet connection.
It has 3 nics: 1 to connect to ISP and the other two to the Local Network, and with Iptables can share the connection.
But any time that has to reboot the machine has to configure again the 2 intefaces Ip addresses for the LAN and run the Iptables commands in order to set the the system again.

Is there anyway to do this automatically?

Regards
Martin

david_ross 09-28-2005 02:14 PM

The standard way may vary depending on your distro but a more generic way would be to create a script with your changes in it and then run this from the rc.local script which is run at the end of the boot process.


All times are GMT -5. The time now is 03:42 PM.