diff options
author | Katze Miau <miaukatzemiau@priveasy.de> | 2011-12-11 16:45:08 (GMT) |
---|---|---|
committer | Katze Miau <miaukatzemiau@priveasy.de> | 2011-12-11 16:45:08 (GMT) |
commit | 65c39ba8336b9efc1d76350ae27a18da6d51d5f6 (patch) | |
tree | 153e9f49fb41e451c75b5a824f119cfab019db6e /files/common/etc/fsm/inetable/common_queen.sh | |
parent | ee91359463ae23b2ebe5cb235c7e11d362be81c8 (diff) |
fsm inetable: change httpd instances in queen/ghost/robinson states
- update the redirection uhttpd config and www-root to redirect all
incoming request to a url specified by /tmp/redirection_target
- use this to implement robinson and splash redirection during
robinson and queen/ghost states, respectively
- change the service httpd to listen on the public IPv4 address
available on the mesh interface in those states.
Missing is the
- iptable based redirection
- already referenced /sbin/urlencode
Diffstat (limited to 'files/common/etc/fsm/inetable/common_queen.sh')
-rw-r--r-- | files/common/etc/fsm/inetable/common_queen.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/files/common/etc/fsm/inetable/common_queen.sh b/files/common/etc/fsm/inetable/common_queen.sh index 8107cd2..86b3aba 100644 --- a/files/common/etc/fsm/inetable/common_queen.sh +++ b/files/common/etc/fsm/inetable/common_queen.sh @@ -7,6 +7,7 @@ DHCPLeaseTime=$((12 * 3600)) NodeId="$(cat /etc/nodeid)" oct3=$(ifconfig br-mesh | egrep -o 'inet addr:[0-9.]*'|cut -f3 -d.) [ -n "$oct3" ] +gwip=10.17.$oct3.1 we_own_our_ip () { [ "$(p2ptbl get $gwiptbl $oct3 | cut -sf2)" == "$NodeId" ] |