From 353915fc8bb31d35bf72dbe9f88c94f4d136196d Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 1 Sep 2012 10:52:37 -0700 Subject: [PATCH] Allow ipsets in the routestopped file. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Misc.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Misc.pm b/Shorewall/Perl/Shorewall/Misc.pm index a8ba902d7..5cc4ed8f4 100644 --- a/Shorewall/Perl/Shorewall/Misc.pm +++ b/Shorewall/Perl/Shorewall/Misc.pm @@ -574,8 +574,7 @@ sub process_routestopped() { my $rule = do_proto( $proto, $ports, $sports, 0 ); for my $host ( split /,/, $hosts ) { - fatal_error "Ipsets not allowed with SAVE_IPSETS=Yes" if $host =~ /^!?\+/ && $config{SAVE_IPSETS}; - validate_host $host, 1; + imatch_source_net( $host ); push @hosts, "$interface|$host|$seq"; push @rule, $rule; }