aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-prep/configs/interfaces
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-09-12 01:20:36 +0200
committerficus <ficus@robocracy.org>2012-09-12 01:23:58 +0200
commite109d94422d0687fc84d8aa1804c2b209785d0aa (patch)
tree0e4215549f44bcc0bf88a1e268b07d6efc6590dd /packages/torouter-prep/configs/interfaces
parent2eef3dfb8d096610214154f919781a2e300e094c (diff)
downloadtorouter-e109d94422d0687fc84d8aa1804c2b209785d0aa.tar.gz
torouter-e109d94422d0687fc84d8aa1804c2b209785d0aa.zip
fix uap0 ifup reliability problems
Diffstat (limited to 'packages/torouter-prep/configs/interfaces')
-rw-r--r--packages/torouter-prep/configs/interfaces22
1 files changed, 11 insertions, 11 deletions
diff --git a/packages/torouter-prep/configs/interfaces b/packages/torouter-prep/configs/interfaces
index 3af6c55..fdc8765 100644
--- a/packages/torouter-prep/configs/interfaces
+++ b/packages/torouter-prep/configs/interfaces
@@ -18,22 +18,22 @@ iface eth1 inet static
network 10.23.42.0
broadcast 10.23.42.255
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
- # this must happen after have brought up uap0 because it clears the nat tables
- post-up iptables -t nat -A POSTROUTING -s 10.23.42.0/24 -o eth0 -j MASQUERADE
+ # this must happen after have brought up uap0 because it clears the nat tables
+ post-up iptables -t nat -A POSTROUTING -s 10.23.42.0/24 -o eth0 -j MASQUERADE
post-up /etc/init.d/dnsmasq restart
# The magic Tor wireless network
auto uap0
iface uap0 inet static
- address 172.16.23.1
+ address 172.16.23.1
netmask 255.255.255.0
network 172.16.23.0
broadcast 172.16.23.255
- pre-up ifconfig $IFACE hw ether 00:66:66:66:66:66
- post-up /etc/init.d/tor reload
- post-up /etc/init.d/dnsmasq restart
- post-up /etc/init.d/ttdnsd restart
- post-up /usr/bin/uaputl sys_cfg_ssid "torproject"
- post-up /usr/bin/uaputl bss_start
- post-up /usr/share/torouter-prep/example-configs/tor-wireless-firewall.sh
- pre-down /usr/bin/uaputl bss_stop
+ pre-up ifconfig uap0 hw ether 00:66:66:66:66:66
+ post-up /etc/init.d/tor reload
+ post-up /etc/init.d/dnsmasq restart
+ post-up /etc/init.d/ttdnsd restart
+ post-up /usr/bin/uaputl sys_cfg_ssid "torproject" || true
+ post-up /usr/bin/uaputl bss_start || true
+ post-up /usr/share/torouter-prep/example-configs/tor-wireless-firewall.sh || true
+ pre-down /usr/bin/uaputl bss_stop || true