aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-prep/configs/interfaces
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-09-23 04:22:14 +0200
committerficus <ficus@robocracy.org>2012-09-23 04:22:14 +0200
commitb1aec80110e822d835f6c97a2320b7dfc5fba039 (patch)
tree3f88cf6ec6a8e2836c91705baf2bfc31ab51d0dd /packages/torouter-prep/configs/interfaces
parente2973e8ea5c57bfa6ed41293e0250c68d29cfed9 (diff)
downloadtorouter-b1aec80110e822d835f6c97a2320b7dfc5fba039.tar.gz
torouter-b1aec80110e822d835f6c97a2320b7dfc5fba039.zip
possibly functional image builder
Diffstat (limited to 'packages/torouter-prep/configs/interfaces')
-rw-r--r--packages/torouter-prep/configs/interfaces39
1 files changed, 0 insertions, 39 deletions
diff --git a/packages/torouter-prep/configs/interfaces b/packages/torouter-prep/configs/interfaces
deleted file mode 100644
index fdc8765..0000000
--- a/packages/torouter-prep/configs/interfaces
+++ /dev/null
@@ -1,39 +0,0 @@
-# This file describes the network interfaces available on your system
-# and how to activate them. For more information, see interfaces(5).
-
-# The loopback network interface
-auto lo
-iface lo inet loopback
-
-# The primary network interface
-auto eth0
-iface eth0 inet dhcp
- post-up ifup uap0
- post-down ifdown uap0
-
-auto eth1
-iface eth1 inet static
- address 10.23.42.1
- netmask 255.255.255.0
- 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
- post-up /etc/init.d/dnsmasq restart
-
-# The magic Tor wireless network
-auto uap0
-iface uap0 inet static
- address 172.16.23.1
- netmask 255.255.255.0
- network 172.16.23.0
- broadcast 172.16.23.255
- 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