0

I'm trying to route all tcp traffic to go through tor (localhost:9050) and all udp traffic to go through an openvpn vpn. I've got an idea on how to do it, but I think I might be way off base. Could someone show and explain how to write these rules?

Update: I tried to use the rule listed here:

I slightly modified it to: sudo iptables -t nat -A PREROUTING -i eth0 -p tcp -j REDIRECT --to-port 9050

ip r outputs:

default via 10.0.2.2 dev eth0 proto static 10.0.2.0/24 dev eth0 proto kernel scope link src 10.0.2.15 metric 1

  • You should write what you idea is. And what you have already tried. You should include the commands you used in your question as well as the output of `ip r`. – ender.qa Aug 28 '18 at 22:05
  • @ender.qa I edited my comment, hope that helps! I don't know what you mean by my idea, I think I explained it clearly. Let me know what you want to be clarified further please – wookieluvr Aug 28 '18 at 22:13
  • What's listening on port 9050? – Ipor Sircer Aug 28 '18 at 22:26
  • @IporSircer [tor proxy](https://www.torproject.org/) – wookieluvr Aug 28 '18 at 22:35
  • 1
    Wouldn't this more related guide also be worth checking? [tor wiki TransparentProxy](https://trac.torproject.org/projects/tor/wiki/doc/TransparentProxy) – A.B Aug 28 '18 at 22:51

0 Answers0