M
M
mystdeim2019-05-30 18:23:16
openvpn
mystdeim, 2019-05-30 18:23:16

Is such a scheme of working with openVPN possible?

There is a server with configured openVPN.
Did according to this manual: https://www.digitalocean.com/community/tutorials/h...
There is a client.ovpn config, which I throw on the client machine, connect and all traffic goes through an external server.
Is it possible to set up different *.ovpn configs so that one passes all traffic through the openvpn server and the other only has access to the local network

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin ™, 2019-05-31
@Energoblock

I make two server configs on different ports (eg 1194 and 1195).
In the config for 1194, I set the option for traffic to go through the VPN.
And in the config for 1195, I do not set this option. Then clients see only the vpn server or also vpn clients if the client-to-client option is enabled, but they go to the Internet directly through their own channel.
Then if the client connects to port 1194, then all its traffic is wrapped in the tunnel. If it connects to 1195, it sees only the vpn server, and the rest of the traffic does not go to the tunnel.

Z
zohan1993, 2019-05-31
@zohan1993

Create a similar config with the option:
pull-filter ignore redirect-gateway
https://community.openvpn.net/openvpn/wiki/IgnoreR...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question