Hello,

For you kind information, the problem was actually solved by adding the ADSLs' interfaces as optional. No prb whatsoever since the change.

Thanks a lot Tom! :)

Cordialement,

Ashvin
Linkeo.com
Email : [email protected]

On 10/06/2013 16:44, Meetoo Ashvin wrote:
Hello Tom,

Thanks for your response. Happened again today, I'm getting these errors:

In shorewall-init.log
Jun 10 11:54:09 ERROR: Interface ppp0 is not usable -- Provider ADSL0 (1) Cannot be Added

In syslog:
Jun 10 11:54:23 srv pppd[4708]: Couldn't allocate PPP unit 2 as it is already in use
Jun 10 11:54:23 srv pppd[4708]: Using interface ppp0

I will try your solution, may it'll help to add a few seconds of sleep to the ppp script.
Cordialement,

Ashvin
Linkeo.com
Email :[email protected]
On 07/06/2013 18:12, Tom Eastep wrote:
On 06/07/2013 01:12 AM, Meetoo Ashvin wrote:
Hello,

I am facing a strange problem these days. I live in a country where
internet is still very slow. We use shorewall (le magnifique) to load
balance traffic between 3 ADSL modems bridged to our gateway. The
problem is that every now and then, randomly, one of the ADSL drops and
then reconnects with a new IP.

I've put a script in "/etc/ppp/ip-up.d/" doing a "/sbin/shorewall status
  > /dev/null && /sbin/shorewall restart -f" for the firewall to get the
new ips properly.

I know it's not the best practice but out of 100 times, 99 times it
works without a glitch.

For the one time, I loose my firewall completely, I get the 6 lines
basic firewall, I loose all access to the serveur and I need to log in
physically and do a shorewall restart. It happens once every 3-4 days
and hopefully I was on workplace when that happened.

My question is: is there a way for shorewall to cater for this? I think
the problem may be that sometimes one of the ADSL takes more time than
needed to get a new IP, and shorewall doesn't really know what to do.
Have you looked at the output generated when Shorewall fails to restart?
That should tell you exactly what is going wrong.

If, as you suspect, the device is slow to come up, then you can add the
"wait=<seconds>" option in /etc/shorewall/interfaces. I also suggest
that you add 'optional' so that if the device fails to come up properly,
the firewall will still start without it.

HTH,

-Tom


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j


_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users



------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j


_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to