diff options
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 |