Windows Firewall
-
Open Windows Firewall with Advanced Security
-
Go to Inbound Rules → New Rule
-
Select Port
-
Select TCP/UDP and specify the port number
-
Select Allow the connection
-
Choose the applicable scope
-
Name the rule and save it
Security Policy Recommendations:
-
Only open the ports that are necessary
-
Restrict SSH access by source IP address
-
Enable logging
-
Regularly review firewall rules