Skip to Content
Windows Service Configuration GuideFirewall Enabling Tutorial

Firewall Enabling Tutorial

Tutorial outline:

Enable the Windows Firewall and add Remote Desktop Connection, ICMP v4, and ICMP v6 multicast listeners to the trusted rules.

Windows Firewall can block some malicious program attacks and prevent certain ports from being accessed remotely.

The ping function and remote desktop login will be disabled after the Windows firewall is enabled.

Note:

  1. You need to enable the Windows Firewall service before using it.

  2. ICMP v4 needs to be created manually while ICMP v6 and remote desktop can be directly added to the trusted rules.

Turn on Windows Firewall service

Set the startup type to automatic:

Enable Windows Firewall

Add the Remote Desktop, ICMP v4, and ICMP v6 multicast listeners to the firewall rules, where ICMP v4 needs to be manually created, and ICMP v6 and Remote Desktop can be directly added to the trusted rules.

(1) Create ICMP v4 rule:

Go to “Advanced Security Windows Firewall”, and click “Create New Rules” in “Inbound Rules”

Select “Custom rules” and click “Next”:

Choose “This program path”, and enter “System”, then click “Next”:

In the protocol type dropdown box, choose “ICMPv4”, leave the rest as default, and then click “Next”:

In scope, you can specify the IP address in the local or remote IP address according to the requirements of your network environment, or choose any IP address:

Select “Allow connection” and click “Next”:

Choose the default settings when selecting application rules of the scope, and then click “Next”:

Enter the rule name, e.g. ICMPv4, then click “Finish”:

(2) The ICMPv6 and remote desktop rules can be found in the default rules of inbound rules, and enabling these rules directly can make them visible in the firewall:

After enabling, you can ping and login to the server remotely.

Similarly, you can follow the above steps to set up other firewall rules.