summaryrefslogtreecommitdiffhomepage
path: root/contrib/init.d/luci_fw
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/init.d/luci_fw')
-rw-r--r--contrib/init.d/luci_fw2
1 files changed, 0 insertions, 2 deletions
diff --git a/contrib/init.d/luci_fw b/contrib/init.d/luci_fw
index 4cb9c4799e..766a5313de 100644
--- a/contrib/init.d/luci_fw
+++ b/contrib/init.d/luci_fw
@@ -15,13 +15,11 @@ apply_portfw() {
if ([ "$proto" == "tcpudp" ] || [ "$proto" == "tcp" ]); then
iptables -t nat -A luci_prerouting -i "$iface" -p tcp --dport "$dport" -j DNAT --to "$to"
- iptables -t nat -A luci_postrouting -p tcp -d "$ip" $ports -j MASQUERADE
iptables -A luci_forward -i "$iface" -p tcp -d "$ip" $ports -j ACCEPT
fi
if ([ "$proto" == "tcpudp" ] || [ "$proto" == "udp" ]); then
iptables -t nat -A luci_prerouting -i "$iface" -p udp --dport "$dport" -j DNAT --to "$to"
- iptables -t nat -A luci_postrouting -p udp -d "$ip" $ports -j MASQUERADE
iptables -A luci_forward -i "$iface" -p udp -d "$ip" $ports -j ACCEPT
fi
}