http://svoboda7s2yird3p643lzbl7d6yc3rcciowopcxclqw6fsq26vmqruyd.onion/blog/raspberry-pi-access-point-proxy
Set Up iptables Rules to Redirect Traffic Create and apply iptables rules to redirect traffic through redsocks: sudo iptables -t nat -N REDSOCKS sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp -j REDSOCKS sudo iptables -t nat -A REDSOCKS -p tcp -j DNAT --to-destination 192.168.50.1:12345 Save iptables rules to persist across reboots: sudo netfilter-persistent save 4.