summaryrefslogtreecommitdiff
path: root/files/common/etc/fsm/inetable/trans/robinson.leave
blob: 708ee41dd5062d5b1f87717e2c41e951fb2575dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e
. ../common.sh

mesh_del_ipv4

# stop DHCP server & fake DNS
uci delete dhcp.mesh
uci delete dhcp.fakedns
/etc/init.d/dnsmasq restart

# 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: 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
contact: Jan Huwald // Impressum