LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Script for Linux (https://www.linuxquestions.org/questions/linux-networking-3/script-for-linux-32859/)

matamp 10-15-2002 07:43 AM

Script for Linux
 
Hi,

I have following environment at home. ADSL Internet connection with public and dynamic IP address. Linux RedHat 7.3 installed in desktop with two NIC:s. Other NIC is for public network and the other is private. I use IPTables firewall in Linux and SNAT.

My problem is that every time my Internet connection goes down, I have to configure default gateway manually and I have to also re-configure IPTables script.

Is there any changes to make a script that new IP address is set to default gateway address automatically. It would be nice if I could change it to my IPTables script too.

Thanks.


All times are GMT -5. The time now is 01:43 PM.