summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoregon_ffj <egon@freifunk-jena.de>2011-02-26 18:21:05 (GMT)
committeregon_ffj <egon@freifunk-jena.de>2011-02-26 18:21:05 (GMT)
commit15c8cb9db56aa5805217cc4e0938a16e0680b10e (patch)
tree898ccf98be551cf005d249b6070d12af819f9ead
parenta2374c8b9823196cc1c7b9cb32a97e152692bfdf (diff)
parent360fd27d1d0449c43a6ebb653cca655acbeaadb1 (diff)
Merge branch 'master' of gitorious.org:freifunk-jena-batman-config/freifunk-jena-batman-config
-rwxr-xr-xfiles/sbin/splash_sync5
1 files changed, 0 insertions, 5 deletions
diff --git a/files/sbin/splash_sync b/files/sbin/splash_sync
index a188426..a114297 100755
--- a/files/sbin/splash_sync
+++ b/files/sbin/splash_sync
@@ -10,11 +10,9 @@ splash_check() {
config_get ip "$1" ip
config_get time "$1" time
local config="$1"
- echo Vergleich Jetzt `date +%s` gespeichert $time
let time_check=$time+$timeout
if [ $time_check -gt $current_time ]; then
# User ist noch gesplashed
- echo User ist noch gesplashed
iptables -t nat -D ffj_splash -s $ip -j ACCEPT
iptables -t nat -I ffj_splash 1 -s $ip -j ACCEPT
else
@@ -35,10 +33,7 @@ iptables -t nat -X ffj_splash
iptables -t nat -N ffj_splash
iptables -t nat -I zone_mesh_prerouting 1 -p tcp -j ffj_splash
config_foreach splash_check user
-#iptables -t nat -D ffj_splash -p tcp -j DNAT --to 10.17.200.1:80
iptables -t nat -A ffj_splash -p tcp -j DNAT --to $myip:80
-#iptables -t nat -D ffj_splash -j DROP
-#iptables -t nat -A ffj_splash -j DROP
contact: Jan Huwald // Impressum