OpenVPN / openvpn-gui

OpenVPN GUI is a graphical frontend for OpenVPN running on Windows 7 / 8 / 10. It creates an icon in the notification area from which you can control OpenVPN to start/stop your VPN tunnels, view the log and do other useful things.
Other
1.45k stars 404 forks source link

[Request] Network lock #153

Closed zero77 closed 3 weeks ago

zero77 commented 7 years ago

Can u add a network lock option where if enabled and open vpn is running, it blocks all network and internet access, when its not connected to a vpn. Thanks

selvanair commented 7 years ago

Doing this in a reliable and generic way is hard. Further it would need admin rights while the GUI is supposed to be run with limited privileges.

In my view this is the job of the firewall. You can easily block all traffic through the LAN adapter except to the VPN servers/ports using a couple of lines of firewall rules. Then network access will become available only when the VPN tunnel is up.

ValdikSS commented 7 years ago

Doing this in a reliable and generic way is hard but not impossible. The principle should be similar to block-outside-dns. AFAIK AzireVPN client does this, maybe we should port the code from there.

yegors commented 5 years ago

Windscribe VPN client has this feature, and it allows importing of custom configs. See here: https://blog.windscribe.com/windscribe-1-83-win-mac-changelog-6ae00c0e07cd