I have a box with 3 interfaces wlan0, eth0 (with internet connection) and tun0 (Openvpn). I want to connect that box to a remote vpn using tor socks. Until now I have the sock 60140 open in tor, the openvpn client set to use 60140 but Im missing on what iptables/nftables rules do I have to set in order to redirect al the tun0 traffic over that 60140 Sock.
The scheme I need to acomplish is this:
(Box tun0) -> Tor -> Vpn
I also need info on routing tables if needed. Thanks.