Following the suggestion in
https://answers.microsoft.com/en-us/windows/forum/all/windows-defender-firewall-is-using-settings-that/914decb4-fbd9-451a-adfb-86e80adc1715
If the previous method did not work, try to initiate a rather simple registry tweak:
2) Change Firewall permissions
Press Windows key + R, type regedit, and press Enter.Navigate to the HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/BFE path.Right-click on BFE entry and select Permissions.Then click ADD and type Everyone.Click OK and then click on Everyone entry that you've just created.Mark the Full Control option under Permissions for Everyone.Finally, restart your PC.
Did this
3) Restore Firewall settings to default
Open Windows Search and type Firewall.Select Windows Defender Firewall entry and double-click it to open.Click the Restore defaults button positioned in the left pane.Finally, click on Restore defaults one more time to approve the choice.
Does not work
If this option did not work, try to reset Firewall via Command Prompt:
Right-click on Windows key and select Command Prompt (Admin).Alternatively, you can type Command Prompt in Windows search, right-click on it, and select Run as administrator.When the command line window opens, copy and paste the netsh firewall set opmode mode=ENABLE exceptions=enable command.Press Enter to execute and close Command Prompt.
netsh firewall set opmode mode=ENABLE exceptions=enable , this is a wrong command.
use netsh advfirewall reset instead, error 0x8007045B
C:\Windows\System32>netsh advfirewall reset
An error occurred while attempting to contact the Windows Defender Firewall service. Make sure that the service is running and try your request again.
C:\Windows\System32>netsh advfirewall reset
An unrecoverable Windows Defender Firewall error (0x8007045b) occurred.
PS C:\WINDOWS\system32> (New-Object -ComObject HNetCfg.FwPolicy2).RestoreLocalFirewallDefaults()
A system shutdown is in progress. (Exception from HRESULT: 0x8007045B)
At line:1 char:1
Try to use Windows Defender Firewall with Advanced Security, says there's an error to load it with the snap-in
So there's no way to reset the broken firewall.