Can someone offer a brief walk-through for firewalling Ubuntu 16 with UFW for tor. I only want to allow tor traffic out on my device. I'm not sure if it's even possible with UFW.
# ufw default deny incoming
# ufw default deny outgoing
# ufw allow out on <wireless interface> to any proto tcp port 9001
# ......?
I'm certain this is wrong. Any info on this would be valued. Cheers.
ufwdoes not provide sufficient functionality to configure a Tor enforcing connection. Instead you should disableufwentirely, and use something likeferm, as described here: https://tor.stackexchange.com/questions/12343/use-iptables-to-force-traffic-through-tor/12344#12344 – cacahuatl Dec 11 '17 at 00:06