diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-10-14 09:01:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-10-14 09:09:16 +0000 |
commit | a6ab887506d0b6151606959447e45060a7d980f6 (patch) | |
tree | 401b0dc6a7d1205dfb83fd3a5a0129a42bcefee3 /main/shorewall-shell/shorewall-shell-providers-gateway-none.patch | |
parent | 8b32f31aa3809b8894bd6d4ff2d3199892bd9f9b (diff) | |
download | aports-a6ab887506d0b6151606959447e45060a7d980f6.tar.bz2 aports-a6ab887506d0b6151606959447e45060a7d980f6.tar.xz |
main/shorewall-shell: do not restore default gw that you never modified
Shorewall's restore default gw will intentinally break multi routes
When no 'balance' option is specified shorewall does not change the
default gw so there is no point in restoring (breaking) it either.
Diffstat (limited to 'main/shorewall-shell/shorewall-shell-providers-gateway-none.patch')
-rw-r--r-- | main/shorewall-shell/shorewall-shell-providers-gateway-none.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch b/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch index 223d3d8a59..531c37ed77 100644 --- a/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch +++ b/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch @@ -25,3 +25,14 @@ elif [ "x$gateway" != "x-" -a -n "$gateway" ]; then indent >&3 << __EOF__ run_ip route replace $gateway src \$(find_first_interface_address $interface) dev $interface table $number +--- ./lib.providers.orig ++++ ./lib.providers +@@ -408,7 +408,7 @@ + save_command "#" + save_command "# We don't have any 'balance' providers so we retore any default route that we've saved" + save_command "#" +- save_command restore_default_route ++# save_command restore_default_route + fi + + save_command "if [ -w /etc/iproute2/rt_tables ]; then" |