Brian J. Murrell wrote:
I'm not sure if there is anything specific in my configuration which is driving this need to determine the interface addresses although it appears to be MultiISP related as setup_routing_and_traffic_shaping() want to do:gateway=$(detect_gateway ppp0) if [ -n "$gateway" ]; then run_ip route replace $PPP0_ADDRESS dev ppp0 table 2 run_ip route add default via $gateway dev ppp0 table 2 else fatal_error "Unable to detect the gateway through interface ppp0" fi What's interesting is that the block of code above, that wants to use $PPP0_ADDRESS is guarded by an "interface_is_usable ppp0" test and if it's not usable: fatal_error "Interface ppp0 is not configured -- Provider IGS (2) Cannot be Added" I guess what I'm wondering is if there is a way to make this more robust such that the absence of an interface just means not doing the configuration bits for it rather than being fatal.
Brian,If you would have spent half the time reading the output of 'man shorewall-providers' as you did reading the generated code, you would have found the 'optional' provider option. It does exactly what you are asking for.
-tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ [EMAIL PROTECTED] PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users