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.
|