From 1a48dd3eb9c02931c86821f6ca615fe3e2d9f916 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 8 May 2011 05:51:58 -0700 Subject: [PATCH] Correct last merged patch Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Providers.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm index ca9d1d8aa..a8575d8c3 100644 --- a/Shorewall/Perl/Shorewall/Providers.pm +++ b/Shorewall/Perl/Shorewall/Providers.pm @@ -470,11 +470,14 @@ sub add_a_provider( ) { emit "run_ip route replace $gateway src $address dev $physical ${mtu}"; emit "run_ip route replace $gateway src $address dev $physical ${mtu}table $number $realm"; } else { - emit "qt \$IP -6 route replace $gateway src $address dev $physical ${mtu}"; + emit "qt \$IP -6 route del $gateway src $address dev $physical ${mtu}"; + emit "run_ip route add $gateway src $address dev $physical ${mtu}"; emit "qt \$IP -6 route del $gateway src $address dev $physical ${mtu}table $number $realm"; emit "run_ip route add $gateway src $address dev $physical ${mtu}table $number $realm"; } - } + + emit "run_ip route add default via $gateway src $address dev $physical ${mtu}table $number $realm"; + } balance_default_route $balance , $gateway, $physical, $realm if $balance;