On 02/05/16 18:02, Paul Gear wrote:
> ...
> I narrowed this down to a change in the output of ip. Ubuntu 16.04
> ships with iproute2 4.3.0, which changes the output format of tun
> interfaces to remove the netmask from the local IPv6 address. Here's a
> simplistic patch to fix:
>
> diff --git a/Shorewall/Perl/lib.runtime b/Shorewall/Perl/lib.runtime
> index 5bb83bd..abb32f7 100644
> --- a/Shorewall/Perl/lib.runtime
> +++ b/Shorewall/Perl/lib.runtime
> @@ -1110,7 +1110,7 @@ interface_is_usable() # $1 = interface
> #
> find_interface_addresses() # $1 = interface
> {
> - $IP -f inet6 addr show $1 2> /dev/null | grep 'inet6 2' | sed
> 's/\s*inet6 //;s/\/.*//;s/ peer.*//'
> + $IP -f inet6 addr show $1 2> /dev/null | grep 'inet6 2' | sed
> 's/\s*inet6 //;s/\/.*//;s/ peer [0-9a-f:]*//'
> }
>
> #
> @@ -1119,7 +1119,7 @@ find_interface_addresses() # $1 = interface
>
> find_interface_full_addresses() # $1 = interface
> {
> - $IP -f inet6 addr show $1 2> /dev/null | grep 'inet6 ' | sed
> 's/\s*inet6 //;s/ scope.*//;s/ peer.*//'
> + $IP -f inet6 addr show $1 2> /dev/null | grep 'inet6 ' | sed
> 's/\s*inet6 //;s/ scope.*//;s/ peer [0-9a-f:]*//'
> }
>
> #
>
BTW, here's a quick mock-up of the differences between the two versions
of iproute2: http://pastebin.ubuntu.com/16186982/
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel