Answer the question
In order to leave comments, you need to log in
Why are Microsoft Edge rules not interesting?
There is a config that should allow all Internet connections through OpenVPN
@echo off
echo This script will block all non-OpenVPN connections
echo It must be run as ADMINISTRATOR
echo For repairing system run disable_only_firewall.bat as administrator
pause
netsh advfirewall firewall add rule name="Allow_openvpn" dir=out action=allow program="%ProgramFiles%\OpenVPN\bin\openvpn.exe" enable=yes
netsh advfirewall set domainprofile state on
netsh advfirewall set privateprofile state on
netsh advfirewall set domainprofile firewallpolicy blockinbound,blockoutbound
netsh advfirewall set privateprofile firewallpolicy blockinbound,blockoutbound
pause
@echo off
echo This script allow all none-OpenVPN connections
echo It must be run as ADMINISTRATOR
pause
netsh advfirewall firewall delete rule name="Allow_openvpn" dir=out
netsh advfirewall set domainprofile state on
netsh advfirewall set privateprofile state on
netsh advfirewall set domainprofile firewallpolicy blockinbound,allowoutbound
netsh advfirewall set privateprofile firewallpolicy blockinbound,allowoutbound
pause
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question