I managed to get all traffic routed through tor using the following this documentation.
I want now to know if it's possible to turn this on and off on command. I've tried reversing it with the following to no avail:
#!/bin/sh iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT iptables -F INPUT iptables -F OUTPUT iptables -F FORWARD
Does anyone know how this would be possible?