Re: [Shorewall-users] SW's default findgw looks in wrong dhcp lease location on opensuse+wicked net stack

2015-05-27 Thread Tom Eastep
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

Re: [Shorewall-users] SW's default findgw looks in wrong dhcp lease location on opensuse+wicked net stack

2015-05-27 Thread PGNd
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

Re: [Shorewall-users] SW's default findgw looks in wrong dhcp lease location on opensuse+wicked net stack

2015-05-27 Thread PGNd
Need to get rid of that 1st 'echo' SHOREWALL/findgw svc_status=$( systemctl is-active wickedd-dhcp4.service ) - echo $svc_status if [ $svc_status == 'active' ]; then data=/var/lib/wicked/lease-${1}-dhcp-ipv4.xml

Re: [Shorewall-users] SW's default findgw looks in wrong dhcp lease location on opensuse+wicked net stack

2015-05-27 Thread PGNd
This appears to get the gateway cleanly from the active/current lease svc_status=$( systemctl is-active wickedd-dhcp4.service ) echo $svc_status if [ $svc_status == 'active' ]; then data=/var/lib/wicked/lease-eth0-dhcp-ipv4.xml if [ -f $data ]; then

Re: [Shorewall-users] SW's default findgw looks in wrong dhcp lease location on opensuse+wicked net stack

2015-05-27 Thread Tom Eastep
On 5/27/2015 8:37 AM, PGNd wrote: This appears to get the gateway cleanly from the active/current lease svc_status=$( systemctl is-active wickedd-dhcp4.service ) echo $svc_status if [ $svc_status == 'active' ]; then data=/var/lib/wicked/lease-eth0-dhcp-ipv4.xml

Re: [Shorewall-users] SW's default findgw looks in wrong dhcp lease location on opensuse+wicked net stack

2015-05-27 Thread PGNd
What is commented out isn't in my version either. But /var/lib/dhcp/dhclient... is 'wired-in'. Thanks. In any case, this needs to be straightened out for the opensuse+wicked case. DIY is good enough for me. In my findgw scriptlet `xml_grep` is a convenient parser. Here, it's provided by

Re: [Shorewall-users] SW's default findgw looks in wrong dhcp lease location on opensuse+wicked net stack

2015-05-27 Thread Tom Eastep
On 5/27/2015 9:30 AM, PGNd wrote: What is commented out isn't in my version either. But /var/lib/dhcp/dhclient... is 'wired-in'. Thanks. In any case, this needs to be straightened out for the opensuse+wicked case. DIY is good enough for me. In my findgw scriptlet `xml_grep` is a

Re: [Shorewall-users] SW's default findgw looks in wrong dhcp lease location on opensuse+wicked net stack

2015-05-27 Thread PGNd
On Wed, May 27, 2015, at 11:35 AM, Tom Eastep wrote: What's the right place/method to do that prereq check, and safely, immediately exit the compile step? Aren't you using Shorewall-lite? If so, the compiler normally runs on a system different from the firewall. Yes, I am. And, yes,

Re: [Shorewall-users] SW's default findgw looks in wrong dhcp lease location on opensuse+wicked net stack

2015-05-27 Thread Tom Eastep
On 5/27/2015 11:40 AM, PGNd wrote: On Wed, May 27, 2015, at 11:35 AM, Tom Eastep wrote: What's the right place/method to do that prereq check, and safely, immediately exit the compile step? Aren't you using Shorewall-lite? If so, the compiler normally runs on a system different from the

Re: [Shorewall-users] SW's default findgw looks in wrong dhcp lease location on opensuse+wicked net stack

2015-05-27 Thread Tom Eastep
On 5/27/2015 12:43 PM, Tom Eastep wrote: On 5/27/2015 11:40 AM, PGNd wrote: On Wed, May 27, 2015, at 11:35 AM, Tom Eastep wrote: What's the right place/method to do that prereq check, and safely, immediately exit the compile step? Aren't you using Shorewall-lite? If so, the compiler

[Shorewall-users] SW's default findgw looks in wrong dhcp lease location on opensuse+wicked net stack

2015-05-26 Thread PGNd
I'm switching my current linux box from staticIP - dynamicIP via dhcp. On net start of my linux box, connecting via native wicked dhcp on Opensuse 13.2, wicked ifdown eth0 wicked ifup eth0 I have connectivity ip -4 addr show dev eth0 4: eth0: