How can I configure Windows Firewall without turning the service on?
Solution 1
Use netsh
– all settings are under the firewall
context.
- To quickly open RDP, run
netsh fire add port TCP 3389 "Remote Desktop"
- To manage other settings, run
netsh
, enterfirewall
, and use?
to list commands.
You can also edit the settings on Registry directly (regedit
), under HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy
. (This even works over the network, assuming Remote Registry is running.)
- For Remote Desktop, under the key
StandardProfile\GloballyOpenPorts\List
add a string value named3389:TCP
with the data3389:TCP:*:Enabled:Remote Desktop
.
Solution 2
Take a look at the Local Security policy Admin tool. There is a section for Windows firewall.
MetaGuru
Updated on September 18, 2022Comments
-
MetaGuru over 1 year
I suddenly could not RDP into my server after rebooting it. Turned out the Firewall was blocking me, I remotely shut off the firewall service (parallels virtuozzo panel) and was able to RDP in. When I went to add my office IP to the firewall to allow me to connect, it won't launch the control panel unless I enable the Windows Firewall. If I do that, it kicks me off of RDP naturally. So how on earth can I configure this thing?
(cross-posted from Serverfault)
-
Mark Anderson almost 7 yearsI found out that if I recycle firewall RDP will work for a short while
-
-
user1686 over 12 years"IP Security Policies" refers to IPsec, not the firewall.
-
MetaGuru over 12 yearsIs it that? (see edit to your answer) I don't see it..
-
MetaGuru over 12 yearsOk, the registry edit worked from chosen answer.
-
user1686 over 12 years"IP Security Policies" refers to IPsec, not the firewall.