https://learn.adafruit.com/setting-up-a ... l-software
And it is completely successful. However when using the follow-up guide to install Tor:
https://learn.adafruit.com/onion-pi/install-tor
I run in to issues - my iPhone still sees my OnionPi but cannot connect to it anymore. I think my issue comes after the lines
Code: Select all
Type the following to flush the old rules from the ip NAT table
sudo iptables -F
sudo iptables -t nat -FCode: Select all
If you want to be able to ssh to your Pi after this, you'll need to add an exception for port 22 like this (not shown in the screenshot below)
sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 22 -j REDIRECT --to-ports 22
Type the following to route all DNS (UDP port 53) from interface wlan0 to internal port 53 (DNSPort in our torrc)
sudo iptables -t nat -A PREROUTING -i wlan0 -p udp --dport 53 -j REDIRECT --to-ports 53
Type the following to route all TCP traffic from interface wlan0 to port 9040 (TransPort in our torrc)
sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp --syn -j REDIRECT --to-ports 9040Code: Select all
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPTAs an additional, the /var/log/syslog fail notes this after a few minutes of failing to connect with my iphone:
raspberrypi hostapd: wlan0: STA 24