K
K
kutin_dl2021-02-12 02:24:08
openvpn
kutin_dl, 2021-02-12 02:24:08

Access to both internet and LAN for OpenVPN client?

Good day to all! Please help me understand OpenVPN better.

Such a situation (in theory): there is an OpenVPN server computer, and for example, 10 OpenVPN client computers, each configured to route traffic through the server.

Such a question: if, for example, access to the Internet suddenly disappears on the server computer, will clients still have access to the global Internet? Or if the server computer suddenly turns off (turn off the light)?

If, in the absence of Internet access from the server, access to the global network will also be lost from clients, is it possible to make it so that clients can access the OpenVPN local network, can exchange files, access shared folders and files, etc., andseparately had access to the Internet, regardless of the operation of the server and the local network in general?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nicholas, 2021-02-12
@kutin_dl

Depending on the client settings, if the route is set there only to the network behind the VPN server, then the Internet will remain, and if the route is default, it will fall off. You can go to sites like 2ip to check, if there is an IP VPN server, the Internet goes through it and depends on the VPN.
This is set in the config: redirect-gateway for the default route and ifconfig/route for the normal route (you most likely need this option so that Internet access does not depend on the VPN, it is set by default).
ifconfig sets the IP and subnet mask, all addresses by mask refer to this network and go through the VPN.
route allows you to redirect other subnets to the VPN (you probably won't need it).
that is, just on one computer ifconfig 10.10.10.11 netmask 255.255.255.0, on the other ifconfig 10.10.10.12 netmask 255.255.255.0, and you can access them via IP 10.10.10.11 and 10.10.10.12.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question