The client and the OpenVPN server are installed on the same machine. Both are meant for each other. It is required to turn the following chain:

(vpnclient->vpnserver->socksproxy)->internet

Everything in brackets is on the same machine. Connecting the client to the server works fine.

Question: what needs to be added in a server config that it worked through a proxy?

The main problem: OS - Windows. On Linux, iptables would have used it long ago.

Mana smoked, was in Google. I tried everything I found - the "proxy" does not work.

Server:

 dev tun proto tcp port 12345 ca ca.crt cert server.crt key server.key dh dh2048.pem topology subnet server 10.8.0.0 255.255.255.0 cipher AES-128-CBC comp-lzo keepalive 10 120 verb 3 

Customer:

 client dev tunl proto tcp ca ca.crt cert client.crt key client.key cipher AES-128-CBC nobind comp-lzo persist-key persist-tun verb 3 remote 127.0.0.1 12345 resolv-retry infinite 

OS Win10x64, OpenVPN 2.4

PS: virtualka with line under Windows, as an intermediate stage, is not considered. Everything should be on the local car.

Thank you for your help.

  • In the connection logic it should be like this (vpnclient-> socksproxy -> vpnserver) -> internet . Otherwise, it turns out that the tunnel is established, but as a client, Internet user - whether it is an application, browser, etc. - you should guess about the proxy in your case is completely unclear. If you only try to use third-party software soxification: SocksChain, Proxycap, etc. - Daemon-5
  • I want to make an analogue of a transparent proxy for Windows. To all the traffic went through it. For this, I try to use openvpn. Therefore, it is precisely such a scheme that is of interest. If such a scheme is not realizable by standard methods, then you will have to either patch, or hooch vinsox in the process of opening - CTAJIUH

0