From 5266a8c01c29bd371afa32dbb1354e0ea3e76045 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 28 Apr 2008 07:15:16 +0000 Subject: * Corrected Freifunk NAT rules --- contrib/package/ffluci-splash/src/luci_splash.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/package/ffluci-splash/src') diff --git a/contrib/package/ffluci-splash/src/luci_splash.init b/contrib/package/ffluci-splash/src/luci_splash.init index bce432ed30..20f7865fd4 100644 --- a/contrib/package/ffluci-splash/src/luci_splash.init +++ b/contrib/package/ffluci-splash/src/luci_splash.init @@ -19,8 +19,8 @@ iface_add() { eval "$(ipcalc.sh $ipaddr $netmask)" - iptables -t nat -A luci_splash -i "$iface" -s "$IP/$PREFIX" -j luci_splash_portal - iptables -t nat -A luci_splash_portal -i "$iface" -s "$IP/$PREFIX" -d "$ipaddr" -p tcp -m multiport --dports 22,80,443 -j RETURN + iptables -t nat -A luci_splash -i "$iface" -s "$NETWORK/$PREFIX" -j luci_splash_portal + iptables -t nat -A luci_splash_portal -i "$iface" -s "$NETWORK/$PREFIX" -d "$ipaddr" -p tcp -m multiport --dports 22,80,443 -j RETURN } blacklist_add() { -- cgit v1.2.3