Raghib avatar

Tutorial Installation UFW Firewall for Linux

raghib

Published: 24 Dec 2017 › Updated: 24 Dec 2017Tutorial Installation UFW Firewall for Linux

Tutorial Installation UFW Firewall for Linux

Tutorial Install UFW firewall for Linux

What is a firewall?
The firewall is a fortress of a job, where the fortress is made up of high walls and heavily guarded, and only has an entrance, so that whatever approaching / passing through the door to enter into, must go through the first inspection.
On the computer's operating system, this firewall is the same function as above, anyone who wants to get into the system must pass a door, and the firewall's task closes and opens the entrance. if there are users who want to enter, then there must be permission in advance of the firewall, if allowed then the door is opened.
in its scientific language Firewall is a system designed to prevent unauthorized access from outside or from within a computer network.
For example there are others trying to log in to the server by using brute force attack method that attacks port 23 telnet, this of course can threaten the security of server and existing network, hence with firewall, we can take by blocking port 23 so that user can not connect to server.
UFW (Uncomplicated Firewall) is an application released from IPtables and created with the aim of simplifying the firewall configuration process on Linux based operating system
Here's How to Install UFW in Kali Linux
Turn Linux Times up to normal position

1.jpg

Open Terminal and type
first you must update repository
#nano /etc/apt/sourcelist.txt
3.jpg

then, write this sourclist.
deb http://ftp.de.debian.org/debian sid main
4.jpg

# apt-get install ufw

2.jpg

After the installation is complete, we configure ufw in the appropriate way of image
# cd /etc/default/
# ls
show all file, must be found file ufw

3.jpg

Now, we configuration file ufw
# nano ufw

4.jpg

Remove the symbol # on ipv6 = yes
5.jpg

Check the status, default status is not active, then the next activate
# ufw status

6.jpg

enable status ufw
# ufw enable

open access from ssh
# ufw allow ssh

open access from telnet
# ufw allow telnet

open access from port 22
#ufw allow 22

open access from port 23
#ufw allow 23

open access from http
#ufw allow htpp

open access from http
#ufw allow htpp

7.jpg

Basic configuration is complete, if you want to add other settings like blocking ip or blocking certain port, you can do it as above step.

so many tutorials, hopefully useful.



Posted on Utopian.io - Rewarding Open Source Contributors

Leave Tutorial Installation UFW Firewall for Linux to:

Written by

I am a Teacher

Read more #utopian-io posts


Best Posts From Raghib

We have not curated any of raghib's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Raghib