diff options
author | Katze Miau <miaukatzemiau@priveasy.de> | 2011-12-19 11:33:11 (GMT) |
---|---|---|
committer | Katze Miau <miaukatzemiau@priveasy.de> | 2011-12-19 11:33:11 (GMT) |
commit | ca217250813ef6f58007e6bde74a57417ce6713f (patch) | |
tree | 74fd8632431f4802a6e36cae02a950080321eda5 /files/common/etc/fsm/inetable/trans/robinson.leave | |
parent | c7d41865eaabd4619096927c7f3944c568085611 (diff) |
add fake name resolution to robinson state, add /etc/firewall.use, use cloud config
1. When in robinson state the router now resolves all domain names to
an IP in the robinson fake net (as defined in
/etc/config/cloud). All tcp traffic to this network (and the rest
of the internet) is redirected to a local webserver.
2. The ip addresses in robinson state are now generated in the ranges
given in /etc/config/cloud
Diffstat (limited to 'files/common/etc/fsm/inetable/trans/robinson.leave')
-rwxr-xr-x | files/common/etc/fsm/inetable/trans/robinson.leave | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/files/common/etc/fsm/inetable/trans/robinson.leave b/files/common/etc/fsm/inetable/trans/robinson.leave index 1797e2f..708ee41 100755 --- a/files/common/etc/fsm/inetable/trans/robinson.leave +++ b/files/common/etc/fsm/inetable/trans/robinson.leave @@ -3,17 +3,20 @@ mesh_del_ipv4 -# stop DHCP server +# stop DHCP server & fake DNS uci delete dhcp.mesh +uci delete dhcp.fakedns /etc/init.d/dnsmasq restart -# TODO: stop fake dns - # stop redirection httpd, remove robinson IP from service httpd disable_httpd redirection rm /tmp/redirection_target change_service_httpd_listen /etc/init.d/uhttpd restart +# stop redirecting all inet traffic to local httpd/nameserver +iptables -t nat -F prerouting_robinson_inet -# TODO: stop redirecting all inet traffic to local httpd +# TODO: now that we have internet, send all packets destined to the +# fake net to the intended inet host; for now reject them +iptables -t nat -F prerouting_robinson_fake |