summaryrefslogtreecommitdiff
path: root/files/sbin/splash_sync
diff options
context:
space:
mode:
authorwrtbuild <wrtbuild@localhost.(none)>2011-10-16 07:34:24 (GMT)
committerwrtbuild <wrtbuild@localhost.(none)>2011-10-16 07:34:24 (GMT)
commit64ca2d1ca4e6f9ae279fc17d84b2abd453140d28 (patch)
tree84a28cd644955e52bd6b91f2c474e9f338841119 /files/sbin/splash_sync
parent0850ac21d153d490ddc2b02f29b74b4b5ed88181 (diff)
add makefile to generate images
Diffstat (limited to 'files/sbin/splash_sync')
-rwxr-xr-xfiles/sbin/splash_sync51
1 files changed, 0 insertions, 51 deletions
diff --git a/files/sbin/splash_sync b/files/sbin/splash_sync
deleted file mode 100755
index 3a2b0f1..0000000
--- a/files/sbin/splash_sync
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-. $IPKG_INSTROOT/etc/functions.sh
-x=0
-config_load splash_users
-test=1
-myip=`uci get network.mesh.ipaddr`
-splash_check() {
- timeout=6000
- current_time=`date +%s`
- config_get mac "$1" mac
- config_get time "$1" time
- local config="$1"
- let time_check=$time+$timeout
- if [ $time_check -gt $current_time ]; then
- # User ist noch gesplashed
- iptables -t nat -D ffj_splash -m mac --mac-source $mac -j ACCEPT
- iptables -t nat -I ffj_splash 1 -m mac --mac-source $mac -j ACCEPT
- else
- # User is not longer splashed / the user must click again
- iptables -t nat -D ffj_splash -m mac --mac-source $mac -j ACCEPT
- uci delete splash_users.@user[$x].mac
- uci delete splash_users.@user[$x].time
- uci delete splash_users.@user[$x]
-
- fi
- let x=$x+1
-}
-#chain refresh
-iptables -t nat -D zone_mesh_prerouting -p tcp -j ffj_splash
-iptables -t nat -F ffj_splash
-iptables -t nat -X ffj_splash
-#recreation
-iptables -t nat -N ffj_splash
-iptables -t nat -I zone_mesh_prerouting 1 -p tcp -j ffj_splash
-config_foreach splash_check user
-#DNS Whitelisting
-iptables -t nat -p udp -A ffj_splash --dport 53 -j ACCEPT
-#Jabber Whitelisting
-iptables -t nat -p tcp -A ffj_splash --dport 5222 -j ACCEPT
-iptables -t nat -p tcp -A ffj_splash --dport 5223 -j ACCEPT
-#Free Wavez in Freifunk
-iptables -t nat -A ffj_splash -s 10.0.0.0/8 -d 10.0.0.0/8 -j ACCEPT
-#Freifunk-Jena Whitelisting
-iptables -t nat -A ffj_splash -d freifunk-jena.de -j ACCEPT
-iptables -t nat -A ffj_splash -d www.freifunk-jena.de -j ACCEPT
-#Jappix Whitelisting
-iptables -t nat -A ffj_splash -d static.jappix.com -j ACCEPT
-iptables -t nat -A ffj_splash -p tcp -j DNAT --to $myip:80
-
-
-
contact: Jan Huwald // Impressum