In case this will help anyone else, or perhaps you will all tell me how to do this better, I'm attaching a perl script that I made to govern our dual PPP connections.
In our case, we have one static WAN line, and two PPP (static IP) lines. The static line is stable, and, unless the modem overheats, it never has trouble. But the PPP lines _regularly_ are going down on me. They went down a few times on a weekend that I was away, and our internet was out for more than 36 hours. Even though we are sharing the lines, when ONE ppp line goes down, the shorewall configuration is unable to find a route out, and therefore, there is no internet for any of the lines. Naturally, I needed some solution to this dilemma, and restarting shorewall wasn't the only requirement. The PPP line would not always come back. So, at first, I made a script that would manipulate the providers file according the the lines that were UP, but that didn't seem to work out well. After many hours of frustration in not having the script do its job properly, I stumbled across a website that gave me the reason why: pppoeconf is unreliable. I switched to using "ifdown ppp0; sleep 3; ifup ppp0" instead of "poff ppp0; pon ppp0". That did it. Now the lines actually come up when called. :) So, attached is the script, with a few minor adjustments, that we use here. If it helps anyone, great. I use it via a cronjob that runs every minute. So the lines should never be down much more than a minute. --Erik. --Forwarded Message Attachment-- From: [EMAIL PROTECTED] To: shorewall-users@lists.sourceforge.net Date: Sun, 6 Jul 2008 16:31:38 -0400 Subject: [Shorewall-users] Shirewall and ppp interface I well, my ISP just worked with me to switch in my new gateway. After the switch and bringing up the ppp interface, the new gateway was access the Internet just fine, but none of systems behind it were. Scratched my head, and after some fumbling, I discovered that it seems like I have to restart shorewall after ppp interface is brought up. So. How do I ensure that shorewall is restarted whenever the ppp interface is restarted (can happen for any number of reasons). What is the proper command. shorewall restart recompiles all the files and that seems more than is needed. _________________________________________________________________ Need to know now? Get instant answers with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_messenger_072008
ppp-line-maintenance.pl
Description: Binary data
------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users