From 20486ff871ce2f45b3f7bc7b343dfcc41770e1ae Mon Sep 17 00:00:00 2001 From: teastep Date: Sat, 6 May 2006 17:23:08 +0000 Subject: [PATCH] extend 'stopped' file in Multi-ISP doc git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3878 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- docs/MultiISP.xml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/MultiISP.xml b/docs/MultiISP.xml index a1fe9c7e2..0f4c2eddd 100644 --- a/docs/MultiISP.xml +++ b/docs/MultiISP.xml @@ -15,7 +15,7 @@ - 2006-05-01 + 2006-05-06 2005 @@ -475,11 +475,24 @@ ip route add 192.168.1.1 dev eth3 scope link ip route add 169.254.0.0/16 dev eth0 scope link ip route add 127.0.0.0/8 dev lo scope link ip route add default via 206.124.146.254 dev eth3 -ip route flush cache - +ip route flush cache Now paste the contents of that file into /etc/shorewall/stopped. + + You might also want to consider adding the following to the + file: + + ip rule ls | while read priority rule; do + case ${priority%:} in + 0|3276[67]) + ;; + *) ip rule del $rule + ;; + esac +done + + That will delete all but the default routing rules.