Hello,

I have a quite simple and classical setup with eth0 being local network 
and eth3 being the net interface which masquerades local.
The setup is using shorewall 4.4, works just fine and I'm very happy 
with it, many thanks for your dedicated hard work.

 From times to times, I have issues with the network connection on eth3 
and then decide to plugin a data enabled cell phone in modem mode which 
gives me the usb0 interface. Note that eth3 does not go down, the link 
is still up but hardly responsive.
I have thus declared usb0 in the interfaces file with the optional flag 
like this:

net    usb0    optional
net    eth3    -
loc    eth0    -

I also have this in the masq file:

usb0    10.10.10.0/24
eth3    10.10.10.0/24

What I would like is that when usb0 is present, all packets are routed 
through its gateway and nothing goes through eth3 until I unplug usb0.
In my current setup, two default routes are created, one through eth3 
with metric 0, the other through usb0 with metric 10, which that all 
packets are routed through eth3.
Manually editing the default route that goes through for eth3 via the 
route command setting a metric above 10 makes it work. However, this 
does not "stick" when a reboot or shorewall restart occurs.
I have searched the documentation for the "metric" keyword and found it 
inside the providers file. To me, this looked like the solution and so I 
went forward and declared two providers like this:

cell    1    1    -    usb0    detect    -
adsl    2    2    -    eth3    detect    fallback,track

However, when I plug the usb0 interface, the route for eth3 does not get 
change and still gets its metric value of 0.

I must have missed something obvious and would very much appreciate your 
help here.

Regards,
Olivier

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to