summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-12-12 15:17:28 -0800
committerJohn Southworth <john.southworth@vyatta.com>2011-12-12 15:17:28 -0800
commit6dcfe8743593a9035bb477530f5cbaba354403bd (patch)
tree2f9fd1028babed94a07360ac9f1237fe4e9af2cf /scripts
parent5064deb9df0a30f88b899fc18eb1cd62fc8cddf0 (diff)
downloadvyatta-cfg-firewall-6dcfe8743593a9035bb477530f5cbaba354403bd.tar.gz
vyatta-cfg-firewall-6dcfe8743593a9035bb477530f5cbaba354403bd.zip
Setup filter for VRRP vmac interfaces
Diffstat (limited to 'scripts')
-rw-r--r--scripts/firewall/firewall.init.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/firewall/firewall.init.in b/scripts/firewall/firewall.init.in
index 07c32f8..bcc23ba 100644
--- a/scripts/firewall/firewall.init.in
+++ b/scripts/firewall/firewall.init.in
@@ -48,6 +48,12 @@ start () {
for mod in ${modules[@]} ; do
modprobe --syslog $mod
done
+ # setup vrrp backup transition chain
+ # we need to filter traffic to the vrrp mac addresses
+ # on the vrrp backup router before we do anything else.
+ iptables -t raw -N VYATTA_VRRP_FILTER
+ iptables -t raw -A VYATTA_VRRP_FILTER -j RETURN
+ iptables -t raw -A PREROUTING -j VYATTA_VRRP_FILTER
# set up notrack chains/rules for IPv4
# by default, nothing is tracked.