summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-splash/root
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-06-25 21:25:19 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-06-25 21:25:19 +0000
commitc443a549be7b869ae2664028dc781a2ca24ff91f (patch)
treee48f0d62cf957dfd1cf03dcf86bc9e92489d5d49 /applications/luci-splash/root
parent3834452df405470d7856ec52224b9607ae2df82a (diff)
applications/luci-splash: do not splash non-splash clients
Diffstat (limited to 'applications/luci-splash/root')
-rwxr-xr-xapplications/luci-splash/root/etc/init.d/luci_splash3
1 files changed, 3 insertions, 0 deletions
diff --git a/applications/luci-splash/root/etc/init.d/luci_splash b/applications/luci-splash/root/etc/init.d/luci_splash
index 06b4408c6..dd688d77c 100755
--- a/applications/luci-splash/root/etc/init.d/luci_splash
+++ b/applications/luci-splash/root/etc/init.d/luci_splash
@@ -40,6 +40,9 @@ iface_add() {
iptables -t nat -A prerouting_${zone} -j luci_splash_prerouting
iptables -t nat -A luci_splash_prerouting -j luci_splash_portal
+ iptables -t filter -I luci_splash_filter -s ! "$NETWORK/$PREFIX" -j RETURN
+ iptables -t nat -I luci_splash_leases -s ! "$NETWORK/$PREFIX" -j RETURN
+
iptables -t filter -I luci_splash_filter -s "$NETWORK/$PREFIX" -d "$ipaddr/${netmask:-32}" -j RETURN
iptables -t nat -I luci_splash_leases -s "$NETWORK/$PREFIX" -d "$ipaddr/${netmask:-32}" -j RETURN