summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGaurav <gaurav.sinha@vyatta.com>2012-03-23 18:17:46 -0700
committerGaurav <gaurav.sinha@vyatta.com>2012-03-23 18:17:46 -0700
commit6592f891fc49e12561c7b1ee0aea604d9ed5ca2c (patch)
tree8beb869788e762652c32248778fead308f05522c /scripts
parente18dc013127774e88aeb0aea88ca724af340d46e (diff)
downloadvyatta-cfg-firewall-6592f891fc49e12561c7b1ee0aea604d9ed5ca2c.tar.gz
vyatta-cfg-firewall-6592f891fc49e12561c7b1ee0aea604d9ed5ca2c.zip
include CT_TIMEOUT chain for conntrack timeouts.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/firewall/firewall.init.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/firewall/firewall.init.in b/scripts/firewall/firewall.init.in
index 8b35876..8e92225 100644
--- a/scripts/firewall/firewall.init.in
+++ b/scripts/firewall/firewall.init.in
@@ -48,6 +48,11 @@ start () {
for mod in ${modules[@]} ; do
modprobe --syslog $mod
done
+
+ # conection tracking timeout chain
+ iptables -t raw -N CT_TIMEOUT
+ iptables -t raw -A CT_TIMEOUT -j RETURN
+
# 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.
@@ -140,6 +145,8 @@ start () {
iptables -t nat -A VYATTA_PRE_SNAT_HOOK -j RETURN
iptables -t nat -A POSTROUTING -j VYATTA_PRE_SNAT_HOOK
+ iptables -t raw -I PREROUTING -j CT_TIMEOUT
+ iptables -t raw -I OUTPUT -j CT_TIMEOUT
# Loosen the acceptability rules for TCP sequence and ACK numbers in
# conntrack. This allows TCP connections through NAT to survive certain
# cases of packet loss where conntrack can not accurately track the