From 5e0749da3c71463bdacbe1cb250eee807cf1f507 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 6 Mar 2013 20:02:48 -0800 Subject: [PATCH] New approach to copying blackhole routes to secondary routing tables. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Providers.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm index 54788c25b..51bcde5ed 100644 --- a/Shorewall/Perl/Shorewall/Providers.pm +++ b/Shorewall/Perl/Shorewall/Providers.pm @@ -252,6 +252,9 @@ sub copy_and_edit_table( $$$$ ) { emit ( ' case $net in', ' default)', ' ;;', + ' blackhole)', + " run_ip route add table $number blackhole \$route $realm", + ' ;;', ' *)', ' case $(find_device $route) in', " $copy)" ); @@ -269,9 +272,6 @@ sub copy_and_edit_table( $$$$ ) { } emit ( ' ;;', - ' *)', - " [ \$net = blackhole ] && run_ip route add table $number \$net \$route $realm", - ' ;;', ' esac', ' ;;', ' esac',