SlideShare a Scribd company logo
Computer Network
Activity No. # 03
Firewall Configuration
Submitted By
Shahab Ahmad (12587)
M. Shoaib Hussain (15321)
Submitted To
Sir Syed Naqi Abbas
BS (Computer Science)
6th
Semester (Section D)
Spring-2022
Riphah International University
Faisalabad Campus
1.To verify if UFW is enabled, enter the following command:
sudo ufw status
The ufw status option helps us see the current state of UFW, the application. If UFW is active,
the UFW status shows a list of rules.
2.To enable UFW, enter the following command:
sudo ufw enableIf you got a Status: inactive message when running ufw status, it means the
firewall is not yet enabled on the system. You’ll need to run a command to enable it.
3. To allow communication through port 21, enter the following command:
sudo ufw allow 21
This will open port 21 in ufw and allow traffic through this port. Port 21 is used for FTP traffic
and must be open if you’re running a FTP server through the default port.
4. To remove the communication rule, enter the following command:
sudo ufw delete allow 21
5. To allow the communication through port 21 and accept UDP, enter the
following command:
sudo ufw allow 21/udp
6.To remove it, enter the following command:
sudo ufw delete allow 21/udp
7. To deny the protocol SMTP, enter the following command:
sudo ufw deny smtp
8. To remove the rule, enter the following command:
sudo ufw delete deny smtp
9. Finally, to disable the firewall, enter the following command:
sudo ufw disable

More Related Content

PDF
How to Install UFW Firewall on Debian 12.pdf
PDF
vpn activity.pdf
PDF
Disabling Ports 135 and 445 to protect the Road Warrior
PDF
Configuration Firewalld On CentOS 8
PDF
How to Restart Network Services in Ubuntu 2404 5 Methods.pdf
DOCX
Protect Your Server from Attack with These 15 Tips for VPS hosting security-M...
DOCX
SEED Labs – Linux Firewall Exploration Lab 1Linux Firewall.docx
DOCX
SEED Labs – Linux Firewall Exploration Lab 1Linux Firewall.docx
How to Install UFW Firewall on Debian 12.pdf
vpn activity.pdf
Disabling Ports 135 and 445 to protect the Road Warrior
Configuration Firewalld On CentOS 8
How to Restart Network Services in Ubuntu 2404 5 Methods.pdf
Protect Your Server from Attack with These 15 Tips for VPS hosting security-M...
SEED Labs – Linux Firewall Exploration Lab 1Linux Firewall.docx
SEED Labs – Linux Firewall Exploration Lab 1Linux Firewall.docx

More from MuhammadShoaibHussai2 (10)

PPTX
pp presentation[1].pptx
PPTX
Patents and trademarks.pptx
PDF
3-Block Ciphers and DES.pdf
PPTX
DOC-20221003-WA0005..pptx
PDF
Testing Slides 1 (Testing Intro+Static Testing).pdf
PDF
Testing Slides 2(Dynamic Testing Intro + Black Box Testing).pdf
PDF
linux installation.pdf
PDF
Computer Network
PDF
pp presentation[1].pptx
Patents and trademarks.pptx
3-Block Ciphers and DES.pdf
DOC-20221003-WA0005..pptx
Testing Slides 1 (Testing Intro+Static Testing).pdf
Testing Slides 2(Dynamic Testing Intro + Black Box Testing).pdf
linux installation.pdf
Computer Network
Ad

Recently uploaded (20)

PDF
Classroom Observation Tools for Teachers
PDF
Yogi Goddess Pres Conference Studio Updates
PDF
RMMM.pdf make it easy to upload and study
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Pharma ospi slides which help in ospi learning
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
01-Introduction-to-Information-Management.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Trump Administration's workforce development strategy
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
master seminar digital applications in india
PDF
Complications of Minimal Access Surgery at WLH
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
VCE English Exam - Section C Student Revision Booklet
Classroom Observation Tools for Teachers
Yogi Goddess Pres Conference Studio Updates
RMMM.pdf make it easy to upload and study
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Chinmaya Tiranga quiz Grand Finale.pdf
O7-L3 Supply Chain Operations - ICLT Program
Pharma ospi slides which help in ospi learning
Weekly quiz Compilation Jan -July 25.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
A systematic review of self-coping strategies used by university students to ...
Supply Chain Operations Speaking Notes -ICLT Program
01-Introduction-to-Information-Management.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Trump Administration's workforce development strategy
Final Presentation General Medicine 03-08-2024.pptx
GDM (1) (1).pptx small presentation for students
master seminar digital applications in india
Complications of Minimal Access Surgery at WLH
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
VCE English Exam - Section C Student Revision Booklet
Ad

firewall assignment.pdf

  • 1. Computer Network Activity No. # 03 Firewall Configuration Submitted By Shahab Ahmad (12587) M. Shoaib Hussain (15321) Submitted To Sir Syed Naqi Abbas BS (Computer Science) 6th Semester (Section D) Spring-2022 Riphah International University Faisalabad Campus
  • 2. 1.To verify if UFW is enabled, enter the following command: sudo ufw status The ufw status option helps us see the current state of UFW, the application. If UFW is active, the UFW status shows a list of rules. 2.To enable UFW, enter the following command: sudo ufw enableIf you got a Status: inactive message when running ufw status, it means the firewall is not yet enabled on the system. You’ll need to run a command to enable it.
  • 3. 3. To allow communication through port 21, enter the following command: sudo ufw allow 21 This will open port 21 in ufw and allow traffic through this port. Port 21 is used for FTP traffic and must be open if you’re running a FTP server through the default port. 4. To remove the communication rule, enter the following command: sudo ufw delete allow 21
  • 4. 5. To allow the communication through port 21 and accept UDP, enter the following command: sudo ufw allow 21/udp 6.To remove it, enter the following command: sudo ufw delete allow 21/udp
  • 5. 7. To deny the protocol SMTP, enter the following command: sudo ufw deny smtp 8. To remove the rule, enter the following command: sudo ufw delete deny smtp
  • 6. 9. Finally, to disable the firewall, enter the following command: sudo ufw disable