summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/firewall/firewall.init.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/firewall/firewall.init.in b/scripts/firewall/firewall.init.in
index c3a0115..d93b13c 100644
--- a/scripts/firewall/firewall.init.in
+++ b/scripts/firewall/firewall.init.in
@@ -74,6 +74,11 @@ start () {
iptables -A INPUT -j VYATTA_POST_FW_HOOK
iptables -A FORWARD -j VYATTA_POST_FW_HOOK
+ # set up pre-DNAT hook
+ iptables -t nat -N VYATTA_PRE_DNAT_HOOK
+ iptables -t nat -A VYATTA_PRE_DNAT_HOOK -j RETURN
+ iptables -t nat -A PREROUTING -j VYATTA_PRE_DNAT_HOOK
+
# set up pre-SNAT hook
iptables -t nat -N VYATTA_PRE_SNAT_HOOK
iptables -t nat -A VYATTA_PRE_SNAT_HOOK -j RETURN