Answer the question
In order to leave comments, you need to log in
How to prevent others from using my internet in OPENVPN?
Hi all!
I created openvpn, but there was a problem, everyone who connects to it uses my Internet channel.
How to prevent them from using internet through my openvpn? When "push "redirect-gateway def1 bypass-dhcp"" is removed, the Internet is blocked on other computers while OPENVPN is connected, after people disconnect they can use their Internet channel.
The task is that all computers are united in one network, but use their own Internet traffic.
Answer the question
In order to leave comments, you need to log in
Remove: push "redirect-gateway def1 bypass-dhcp"
this will turn off the default gateway change, and therefore clients will be able to continue to go to the Internet.
Why is this: push "dhcp-option DNS 8.8.8.8"?
If the clients have internet, then they already have their own configured DNS. Remove.
In general, it should work.
If it does not work, connect the client to the VPN and look at the routing table on the client, the default route in it should be the same (as before the connection). If everything is fine with this, but there is no Internet, then apparently the reason is different.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question