A
A
Andrey2019-02-12 23:14:29
openvpn
Andrey, 2019-02-12 23:14:29

VPN connection through proxy?

Greetings, I have been using my own vpn server for a long time without fanaticism, in fact, I got it only because there are too many sites locked in RuNet. Okay, more to the point, I decided to experiment with methods of connecting to a VPN and understand whether it is needed at all, I conceived the following scheme:
User => Tor proxy 127.0.0.1:9050 => VPN server => Internet access
The purpose of such a scheme is to hide the fact of connecting to the VPN from the provider.
I started implementing it from a simple one, translated the vpna client and server into the tsp protocol, registered the settings for the connection through a proxy in the client, namely:

socks-proxy-retry
socks-proxy 127.0.0.1

Also, when connecting, an incomprehensible route was created:
128.0.0.0/1 via tun0
I don’t really rummage around in the routes, but I don’t understand its meaning, so I delete it manually:
ip route delete 128.0.0.0/1 via tun0
So ... It seems that everything is ready with the settings, now the most interesting thing, I connect the client to the vpn server, it passes successfully, but the traffic does not want to go to the virtual network, and this is manifested by the absence in connection with the outside world, I can only connect to the external address of the vpn server via ssx. Somehow, there are a lot of unusual details in this bunch, you can’t even count them all.
To sum up, if I connect to a vpn server through a tor proxy, then I can’t get online, but if, for example, I use a ssh tunnel without a tor to connect, then everything works like clockwork. Therefore, let's move on to the epilogue, how to connect to a vpn server using a tor proxy?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question