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:
You need to enable the Windows Firewall service before using it.
ICMP v4 needs to be created manually while ICMP v6 and remote desktop can be directly added to the trust 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", click "New Rule" in "Inbound Rules"
Select a custom rule 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 applying the rule's 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, 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.