Configure and test basic firewall rules to allow or block network traffic using Windows Firewall.
Windows Defender Firewall (with Advanced Security)
- Opened Windows Firewall with Advanced Security.
- Viewed existing Inbound Rules.
- Created a new inbound rule to:
- Block traffic on Port 23 (Telnet) using TCP protocol.
- Applied it to all profiles (Domain, Private, Public).
- (Optional Step) Created a rule to Allow Port 22 (SSH).
- Took a screenshot of the new rule(s).
- Deleted the test rule to restore the system to its original state.
- Inbound Rules → New Rule → Port → TCP → Specific Port:
23 - Action: Block the connection
- Profile: All
- Name:
Block Port 23
- Same steps as above, but:
- Action: Allow the connection
- Port:
22 - Name:
Allow SSH
- Right-click on
Block Port 23→ Delete → Confirm
block_port_23_rule.png– Showing the blocked rule for Port 23allow_port_22_rule.png(if added) – Showing the allowed rule for Port 22
- Learned how to view, create, and delete firewall rules.
- Understood inbound vs outbound rules.
- Gained hands-on experience in network traffic filtering.
Basic firewall management skills and better understanding of how firewall filters traffic and protects a system.