ifconfig -a ifdown wlan0 apt-get update && apt-get install hostapd isc-dhcp-server tor # option domain-name "example.org"; # option domain-name-servers ns1.example.org, ns2.example.org; ifup wlan0 DAEMON_CONF="/etc/hostapd/hostapd.conf" wget http://www.adafruit.com/downloads/adafruit_hostapd.zip unzip adafruit_hostapd.zip mv /usr/sbin/hostapd /usr/sbin/hostapd.ORIG mv hostapd /usr/sbin chmod 755 /usr/sbin/hostapd service hostapd start service isc-dhcp-server start update-rc.d hostapd enable update-rc.d isc-dhcp-server enable net.ipv4.ip_forward=1 sysctl -p iptables -F iptables -t nat -F sh -c iptables-save > /etc/iptables.ipv4.nat up iptables-restore < /etc/iptables.ipv4.nat touch /var/log/tor/notices.log chown debian-tor /var/log/tor/notices.log chmod 644 /var/log/tor/notices.log