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.