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