Page 1 of 1
Does OpenVPN share the internet by default?
Posted: Sun Jul 16, 2023 7:13 pm
by hack3rcon
Hello,
I have a Linux server that has two physical NICs as below:
Code: Select all
enp0s3: Internet (10.0.2.15 )
enp0s8: Local NIC (192.168.1.20)
I installed the OpenVPN on my server and connected a client (Windows OS) to it via the OpenVPN client. The OpenVPN created a virtual NIC both on Linux and Windows and both operating systems can ping each other. On Linux, I have Internet, but on windows I have not. When I connected Windows client to Linux via OpenVPN, then my Windows client must be able to use the Linux Internet. Am I right?
Thank you.
Re: Does OpenVPN share the internet by default?
Posted: Tue Aug 22, 2023 8:11 pm
by openvpn_inc
Hi Hack,
No. Internet "sharing", more properly called gateway redirection, only happens when using the
--redirect-gateway option; a client option, typically listed among the server's
--push options. Please see the
man page and the howto.
Regards, rob0
Re: Does OpenVPN share the internet by default?
Posted: Sat Sep 02, 2023 1:08 pm
by hack3rcon
openvpn_inc wrote: ↑Tue Aug 22, 2023 8:11 pm
Hi Hack,
No. Internet "sharing", more properly called gateway redirection, only happens when using the
--redirect-gateway option; a client option, typically listed among the server's
--push options. Please see the
man page and the howto.
Regards, rob0
Hello,
Thank you so much for your reply.
Do you mean
push "redirect-gateway def1 bypass-dhcp"?
Re: Does OpenVPN share the internet by default?
Posted: Wed Sep 06, 2023 10:16 pm
by ordex
hack3rcon wrote: ↑Sat Sep 02, 2023 1:08 pm
Hello,
Thank you so much for your reply.
Do you mean
push "redirect-gateway def1 bypass-dhcp"?
Yes.