G
G
gismthedwarf2019-04-16 09:34:21
SSH
gismthedwarf, 2019-04-16 09:34:21

How to redirect ALL traffic from OpenVPN-vps to another vps with proxy?

You need to implement the following scheme: Open-vpn client(win,ubuntu) <-> vps1(ubuntu) <-> vps2(ubuntu) <-> vps3(ubuntu) <-> Internet. In the client config, vps1 is specified as a server, it redirects all traffic to vps2 using ssh, an OpenVPN server is raised on vps2. The task is to redirect ALL traffic from vps2 to vps3, so that vps3 is a proxy for vpn. A proxy is needed to handle ALL traffic. The output should be ip-shnik vps3. I understand that using ssh to make a socks5 proxy? Prompt implementation, please. Traffic from vps1 to vps2 is redirected with:

ssh -Nf -L $vps1_ip:$vps1_port:$vps2_vpn_server_ip:$vps2_port $vps2_ip

Accordingly, now at the output we have the vpn-server IP, that is, vps2. It is necessary to build a third vps3 into the scheme.
PS I do not throw off the vpn-server and client configs, since now the vps1 <->
vpn-vps2 chain is working correctly, but if necessary, I can provide them.

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