Answer the question
In order to leave comments, you need to log in
Block all non-VPN traffic with a firewall?
Hello.
I use OpenVPN and I want that even if the VPN drops, the Internet does not continue to work under the real IP. To solve this problem, almost all the options from Google were tried, but I stopped at creating special rules in the windows 7 firewall.
Here is the instruction itself (it is short https://zorrovpn.com/articles/windows-firewall-vpn-only ), but I will briefly describe it myself:
The point is to block all connections in general for private and domain profiles, but an exception is made for openvpn.exe. Then the Internet will only work through the VPN.
But there is a problem: The Internet does not work through OpenVPN if you block all incoming / outgoing connections for the public profile, and this is important, because. By default, the system assigns all new connections to this profile.
Those. in order for the rules described in the instructions to work correctly, all new connections must be changed to home or work. Why does the Internet not work (although openvpn connects to servers) if incoming / outgoing connections are blocked in the public profile with an exception for openvpn?
I’m even ready to thank bitcoins for the help, and I would also be glad to hear other options for solving my problem (the Internet is strictly only through OpenVPN). Thank you!
Answer the question
In order to leave comments, you need to log in
Probably the OpenVPN adapter itself has a network type - public. Accordingly, if you prohibit outgoing connections for public, then nothing will work.
You can try to change the default zone for new connections
https://niallbest.com/unidentified-networks-in-win...
PS. Also in the properties of the firewall rules in the tab there is an additional section "Types of interfaces". If by new connections you mean wireless networks, then create a rule allowing access only on the VPN server port via WiFi.
and not fate to raise a virtual machine with a router ... let all the traffic go before it, and from it already raise vpn and forbid traffic from it to go somewhere other than vpn?)
in advanced settings, click "firewall properties", "secure network connections - configure", there uncheck the Openvpn connection
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question