Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

🛡️ Cyber Security Internship – Task 4

Setup and Use a Firewall on Windows


📌 Objective

The objective of this task was to configure Windows Defender Firewall by creating and testing a basic inbound firewall rule to block network traffic on TCP Port 23 (Telnet). After testing, the rule was removed to restore the original firewall configuration.


🛠️ Tools Used

  • Windows Defender Firewall with Advanced Security
  • Windows 11
  • GitHub

📋 Procedure

Step 1: Open Windows Defender Firewall

Opened Windows Defender Firewall with Advanced Security using the Run dialog.

wf.msc

Step 2: Review Existing Rules

Reviewed the existing Inbound Rules to understand the current firewall configuration.


Step 3: Create a New Inbound Rule

Created a new firewall rule with the following configuration:

Setting Value
Rule Type Port
Protocol TCP
Port Number 23
Action Block the Connection
Profiles Domain, Private, Public
Rule Name Block Telnet Port 23

Step 4: Verify the Rule

Verified that the Block Telnet Port 23 rule appeared successfully under Inbound Rules.


Step 5: Remove the Test Rule

Deleted the firewall rule after testing to restore the original configuration.


🔒 Why Block Port 23?

Port 23 is used by the Telnet protocol. Telnet transmits usernames, passwords, and other sensitive information in plain text without encryption, making it vulnerable to interception. Blocking this port helps prevent insecure remote access.


🌐 How Firewalls Filter Traffic

A firewall monitors incoming and outgoing network traffic and applies predefined security rules to allow or block connections based on ports, protocols, applications, IP addresses, and connection states.


💬 Interview Questions

1. What is a firewall?

A firewall is a network security system that monitors and filters incoming and outgoing network traffic according to predefined security rules.


2. What is the difference between a Stateful and Stateless Firewall?

A stateful firewall tracks active network connections and makes filtering decisions based on the connection state.

A stateless firewall evaluates each packet independently without maintaining connection information.


3. What are inbound and outbound rules?

  • Inbound Rules: Control incoming network traffic.
  • Outbound Rules: Control outgoing network traffic.

4. How does UFW simplify firewall management?

UFW (Uncomplicated Firewall) provides a simplified command-line interface for managing Linux firewall rules without requiring complex iptables commands.


5. Why block Port 23 (Telnet)?

Telnet does not encrypt transmitted data, making usernames and passwords vulnerable to interception. Blocking Port 23 improves system security.


6. What are common firewall mistakes?

  • Leaving unnecessary ports open
  • Creating overly permissive firewall rules
  • Not updating firewall configurations
  • Disabling the firewall
  • Ignoring firewall logs

7. How does a firewall improve network security?

  • Blocks unauthorized access
  • Filters malicious traffic
  • Protects network services
  • Reduces the attack surface
  • Enforces security policies

8. What is NAT in firewalls?

Network Address Translation (NAT) allows multiple devices on a private network to share a single public IP address while providing an additional layer of network isolation.


📸 Screenshots

The repository includes screenshots demonstrating:

  • Windows Defender Firewall Home
  • Existing Inbound Rules
  • Creating the Firewall Rule
  • Block Telnet Port 23 Rule
  • Firewall Configuration Restored

🎯 Outcome

Successfully configured and tested a Windows Defender Firewall inbound rule to block TCP Port 23 (Telnet). After verification, the rule was removed to restore the original firewall configuration. This task provided practical experience in firewall management, network traffic filtering, and basic Windows firewall administration.

About

Windows Firewall configuration and management project demonstrating the creation, testing, and removal of firewall rules to block and allow network traffic. Includes documentation, screenshots, security analysis, and interview question answers for the Elevate Labs Cyber Security Internship – Task 4.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors