On 5/27/2015 8:54 AM, PGNd wrote:
>>> Is that ^^ sufficient?
>>>
>> Should work.
> Thanks.  Will give that a try, then.
>
>> Incidentally, the findgw file that I release is empty
>> (except for comments). So if you have one that is non-empty, it must
>> have been supplied by the SuSE Shorewall maintainer.
> What I've got from the pkg-installed SW is all comments,
>
>       SHOREWALL/findgw
>               # Shorewall4 - Findgw File
>               #  http://shorewall.net/shorewall_extension_scripts.htm
>
>               #    The code in this file is executed when Shorewall is trying 
> to detect the
>               #    gateway through an interface in /etc/shorewall/providers 
> that has GATEWAY
>               #    specified as 'detect'.
>               #
>               #    The function should echo the IP address of the gateway if 
> it knows what
>               #    it is; the name of the interface is in $1.
>
>               
> ###############################################################################
>               #if [ -f /var/lib/dhcp/dhclient.${1}.lease ]; then
>               #    grep 'option routers' /var/lib/dhcp/dhclient.${1}.lease | 
> tail -n 1 | while read j1 j2 gateway; do echo $gateway | sed 's/;//'; return 
> 0; done
>               #fi
>
> so, effectively empty.
>
> I'm a little confused with that commented out what actually IS finding the 
> gw.   That ^^ seemed to be active when I had that old/unused 
> "/var/lib/dhcpcd/dhcpcd-eth0.info" lying around.  Makes sense if it's 
> wired-in as a default.
What is commented out isn't in my version either. But
/var/lib/dhcp/dhclient... is 'wired-in'.

-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 \________________________________________________


Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to