On 10/21/2015 6:09 AM, Marcelo Bello wrote:
> Hi,
>
>      On my box sometimes the adsl connection is falling on ppp1/ppp2 and
> not always on ppp0.
>
>       I could investigate hacks to ensure it always goes to ppp0 but I
> just read on the pppd mailing list that they consider best practice to
> never assume on which ppp+ interface the connection will be brought up.
> The solution they give is to use the "linkname adsl" option to pppd and
> then find the interface name on /var/run/ppp-adsl.pid or if the ip is
> static just find the interface from the IP address.
>
>       I was wondering if there is anyway to tell shorewall to figure out
> the right ppp+ interface for my provider. On interfaces file I have
> net    ppp+     optional,wait=10,...
>
> On providers I wanted to write: (this is multi-isp)
> adsl     1    256    -       ppp+:<ip_address>    -     track,balance=10
>     -
>
>
>       However, shorewall does not seem to accept it, so now I have ppp0
> there. My next move would be to figure out the interface name with a
> custom script and add a $ADSL_IFACE variable on the params file then
> replace ppp0 with $ADSL_IFACE.
>
>      Anything I am missing here? How have other people dealt with this?
>

The only thing you are missing is that you can put the script logic in 
the params file itself. That file is always processed by $SHOREWALL_SHELL.

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

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

Reply via email to