From: Steven Barth Date: Tue, 1 Apr 2008 22:30:10 +0000 (+0000) Subject: * Reverted bloated MASQUERADE command X-Git-Tag: 0.8.0~1168 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2f99795df6efd159f5ecd8b52b4846a6bf50b94c;p=oweals%2Fluci.git * Reverted bloated MASQUERADE command --- diff --git a/contrib/init.d/luci_fw b/contrib/init.d/luci_fw index 4cb9c4799..766a5313d 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 }