From 9b0a9e8ecd97e18505be3c6dbb5fa3f8d8416baf Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 12 Sep 2009 08:48:52 -0700 Subject: [PATCH] Add - to 'ip route del default' command --- Shorewall/Perl/Shorewall/Providers.pm | 4 ++-- Shorewall/changelog.txt | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm index 133230824..fd42425e9 100644 --- a/Shorewall/Perl/Shorewall/Providers.pm +++ b/Shorewall/Perl/Shorewall/Providers.pm @@ -455,10 +455,10 @@ sub add_a_provider( ) { emit ''; if ( $gateway ) { emit qq(run_ip route replace default via $gateway src $address dev $interface table ) . DEFAULT_TABLE . qq( dev $interface metric $number); - emit qq(echo "qt \$IP route del default via $gateway table ) . DEFAULT_TABLE . qq(" >> \${VARDIR}/undo_routing); + emit qq(echo "qt \$IP -$family route del default via $gateway table ) . DEFAULT_TABLE . qq(" >> \${VARDIR}/undo_routing); } else { emit qq(run_ip route add default table ) . DEFAULT_TABLE . qq( dev $interface metric $number); - emit qq(echo "qt \$IP route del default dev $interface table ) . DEFAULT_TABLE . qq(" >> \${VARDIR}/undo_routing); + emit qq(echo "qt \$IP -$family route del default dev $interface table ) . DEFAULT_TABLE . qq(" >> \${VARDIR}/undo_routing); } } diff --git a/Shorewall/changelog.txt b/Shorewall/changelog.txt index b47ea667d..fe20ca308 100644 --- a/Shorewall/changelog.txt +++ b/Shorewall/changelog.txt @@ -14,12 +14,14 @@ Changes in Shorewall 4.4.2 6) Allow comments at the end of continued lines. 7) Call process_routestopped() during 'check' rather than -'compile_stop_firewall()'. + 'compile_stop_firewall()'. 8) Don't look for an extension script for built-in actions. 9) Apply Jesse Shrieve's patch for SNAT range. +10) Add - to 'ip route del default' command. + Changes in Shorewall 4.4.1 1) Deleted extra 'use ...IPAddrs.pm' from Nat.pm.