From dbd30f981cec6cb160ab118fae5ea3b28ffe1892 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 10 Jun 2011 10:29:21 -0700 Subject: [PATCH] Set the interface routeback option if there are any IP host groups with 'routeback' Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Zones.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Zones.pm b/Shorewall/Perl/Shorewall/Zones.pm index c46d0aa78..d3a572501 100644 --- a/Shorewall/Perl/Shorewall/Zones.pm +++ b/Shorewall/Perl/Shorewall/Zones.pm @@ -745,6 +745,8 @@ sub add_group_to_zone($$$$$) hosts => \@newnetworks, ipsec => $type == IPSEC ? 'ipsec' : 'none' , exclusions => \@exclusions }; + + $interfaces{$interface}{options}{routeback} ||= ( $type != IPSEC && $options->{routeback} ); } #