L
L
LOLKEK4EBYREK2020-03-29 14:48:57
Windows
LOLKEK4EBYREK, 2020-03-29 14:48:57

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


disconnector

@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


Everything will work if the current connection is assigned as a home network.

Actually everything works, but there is one BUT
I can't understand why Microsoft Edge spits on my rules and works through a standard connection.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-03-29
@dimonchik2013

clean up the routing
something like route -f (can't remember exactly)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question