Tutorial Installation UFW Firewall for Linux

in utopian-io •  7 years ago  (edited)

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

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Best tutorial

Thanks brother

Your contribution cannot be approved yet. See the Utopian Rules. Please edit your contribution to reapply for approval.

  • Can you put the code in the code block. Like this.

You may edit your post here, as shown below:

You can contact us on Discord.
[utopian-moderator]

Ok, I was edit my post, please review again

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @raghib I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x