I am trying to route my vpn traffic over TOR (Tor is using bridges) on ubuntu by simply adding the following in the tor configuration:
UseBridges 1 Bridge bridge1 fingerprint1 Bridge bridge2 fingerprint2 SocksPort 9050 PreferSOCKSNoAuth
and the following is the openvpn configuration:
client dev tun proto tcp remote ip port resolv-retry infinite nobind persist-key persist-tun cipher aes-256-cbc auth sha256 tls-client remote-cert-tls server #Tor Socks proxy socks-proxy 127.0.0.1 9050 pull-filter ignore "route-ipv6" pull-filter ignore "ifconfig-ipv6" dhcp-option DNS 184.108.40.206 auth-user-pass vpnauth compress verb 1 reneg-sec 0
But the issue i am getting with this is that when i try to connect with the socks line in the openvpn config it keeps erroring out with the following error:
recv_socks_reply: TCP port read timeout expired: Operation now in progress
On testing the tor socks port manually as well it ends up being timed out when the openvpn config has the socks line added.
But when removing the socks line from openvpn and letting it connect directly to the vpn ,the connection seems to work fine and along with that the Tor socks port connects fine as well when testing it directly.
I tried some routing for the openvpn config but wasnt successful. Is there any way to get this type of configuration up and running?