There are 0 videos waiting in queue!! You're not logged in! | Register | Login | Wallpapers | Forums | Blog | Who We Are | Upload

- 4 decades ago

More programming
So, I finally managed to write a few scripts for the servers I'm maintaining. The scripts are designed to check for an active internet connection and if there is one, backs up the iptable firewall rules and then ping my server (so I will always have their IPs because their IPs are dymnamic). If there's no Internet connection, then it pulls the backed up firewall rules and restores them. Then it does a release and renew in an attempt to reconnect. I have it set to a cronjob every hour to check for this:

Posted on 08/18/2013 12:44 am

Comments

Post Comment


Steve


More programming
     So, I finally managed to write a few scripts for 
the 
servers I'm maintaining. The scripts are designed to 
check for an active internet connection and if there is 
one, backs up the iptable firewall rules and then ping 
my server (so I will always have their IPs because 
their IPs are dymnamic). If there's no Internet 
connection, then it pulls the backed up firewall rules 
and restores them. Then it does a release and renew in 
an attempt to reconnect. I have it set to a cronjob 
every hour to check for this: