Protect Yourself and Others - Windows 10 and 11 Firewall Setup
Devices that connect to the Internet are under attack, there are hundreds of thousands of computers that are scanning the Internet every day, looking for open ports and ways to compromise and use those devices for their own use. The following are directions for enabling firewall rules that will allow you to determine what Internet connected devices are allowed to connect to your computer.
Windows 10, 11 Firewall - Prevent a connection to a certain port
- Click the Start Button
- Type firewall
- Open Windows Defender Firewall with Advanced Security
- Click Inbound Rules
- Expand the Window
- Click the words Local Port to sort the list
- Search through the list to see the port that you want to restrict Internet access to (i.e. 80 for Web Server or 1433 for ms-sql server)
- Double Click the rule that the port you have located corresponds to (If you have multiples, you will have to do this for each instance)
- In the General Tab click Block the connection in the Action section
- Click Apply
- Click OK
- Close Windows Defender Firewall with Advanced Security window
Windows 10, 11 Firewall - Allow a connection to a certain port
- Click the Start Button
- Type firewall
- Open Windows Defender Firewall with Advanced Security
- Click Inbound Rules
- Expand the Window
- Click the words Local Port to sort the list
- Search through the list to see the port that you want to restrict Internet access to (i.e. 80 for Web Server or 1433 for ms-sql server)
- Double Click the rule that the port you have located corresponds to (If you have multiples, you will have to do this for each instance)
- Open the Scope tab
- Under Remote IP address
- Click Add...
- Enter the Specific IP address or Subnet or Range of IP addresses
- Click OK
- Click Apply
- Click OK
- Close Windows Defender Firewall with Advanced Security window