What is Linux firewall? Do you need? How to set up and configure it. Everything in this video.

In addition, you will learn how to setup and configure the Uncomplicated Firewall (ufw) both graphically and through the terminal. And how to configure a simple stateful firewall through iptables for more advanced users.

You can also read a text version of this video

Commands used in the video:
sudo ufw enable
sudo ufw status verbose
sudo ufw allow ssh
man ufw
sudo iptables -N TCP
sudo iptables -N UDP
sudo systemctl enable iptables.service
chmod +x iptables_ArchLinux.sh
sudo ./iptables_ArchLinux.sh

Iptables script:

Tags: #AverageLinuxUser #Linux #firewall

################################################

Support on Patreon:

Donate through PayPal:

################################################

More cool Linux stuff at other social media:

Google+ – Best Linux Stuff:
Facebook – Top Linux Tips:
Twitter – Daily Linux News:

Website:

Nguồn: https://codeigniterbrasil.com

Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-linux/

23 Comments

Punch Gamer بنش جيمر

April 21, 2020

my gufw opening many ports in Reports and when i enable the gufw its blocking my internet please help

Reply

Professor Moriarty

April 21, 2020

They are building a tower block the bottom of the tower block is loosely locked it only needs to look after two things. All the other floors have balcony doors that have many things in them like a desktop GUI. Some of the GUI can be seen and contacted by the outside. Linux the kernel the firewall only knows what it should keep out it is a one-way firewall. GUI without a firewall can be logged onto the GUI can be seen and brute force can be used for password guessing. The longer you can be seen the longer they have a chance of eventually cracking this password. A firewall hides your desktop GUI from the outside world. It protects your desktop from other desktops.

Sometimes in an office environment you can see somebody else's computer try it just select network and you may see a computer name. It is probably the same name as the user: fred-HP-Z840-workstation.
So you have the name which is fred you now only need the password most passwords are simple easy to remember and easy to brute force. If Fred had the firewall switched on I would not be able to log onto his computer.

Reply

Kimi Tuukkanen

April 21, 2020

Thank you very much for this video about firewalls. Enabling firewall makes me feel safe. 🙂

Reply

new view

April 21, 2020

does it make sense if I have guwf installed on parrot os?

Reply

Casperian

April 21, 2020

I activate a firewall through my vpn service. Is that the same as use a Linux firewall?? Can and if so, should I run both a Linux firewall and my VPN’s firewall??

Reply

Aitch Pea

April 21, 2020

Just a note. UFW is installed and enabled by default in Ubuntu 16.04 and later, but gufw shows the service as disabled. Enabling it with gufw doesn't seem to affect it, but does allow you to then actually use the GUI.

Reply

Yasin Yasar

April 21, 2020

I use windows firewall. Is better than iptables

Reply

Mouldy CPU

April 21, 2020

I need iptables because I use a script to control my packet filtering settings.

Reply

Ralph W

April 21, 2020

I'm running Ubuntu 18.04 LTS with cinnamon on 3 machines all connected to my home wifi network. However I can't see or connect the machines on the network. I haven't enabled a firewall. When I was running 16.04 without cinnamon, I was able to connect my machines and transfer files over the network. Any ideas?

Reply

Kevin Quinn

April 21, 2020

Three steps to improve your security:

1. Run Linux
2. Activate GUFW
3. Run your browser in Firejail

Reply

debeeriz

April 21, 2020

i found the firewall got in the way when sharing files, so i disabled it back in 2012 never had a problem

Reply

Musical Neptunian

April 21, 2020

"What a big, beautiful Wall! This wall is a fire wall! Better than steel or concrete! Anyone who does not like my bigly fire wall is an enemy of the people!"
– Donald

Reply

Georgios Roumeliotis

April 21, 2020

@Average Linux User I just bought the new hp spectre x360 and I have a really bad time trying to fix touchscreen and trackpad issues (I use Debian) can you tell me how i can fix it ?

Reply

Prakhar Dev Gupta

April 21, 2020

This music is so nice!! How can I have it?? Thanks in advance 🙂

Reply

Mr Sammotube

April 21, 2020

Thanks for this – it is amazingly reassuring to just switch on the firewall with gufw!

Reply

Виталий Труфанов

April 21, 2020

Good job! Can you make a small tutorial about bash scripting?

Reply

Hasibur Rahman Jitu

April 21, 2020

(off Topic) Do review on MX Linux. (its popularity is rising increasingly)

Reply

liOnux

April 21, 2020

Hi,
Do you know how to test firewall job ?

Reply

Ovid Llorito

April 21, 2020

Hello Average Linux User, can do an install and review of the new version Refracta? =)

Reply

jawad mansoor

April 21, 2020

Thanks

Reply

0x Ovi

April 21, 2020

How to fast Linux?
I use in vm wear
I useing Kali linux vm image
Plzz reply

Reply

Farukh Al-Bashir

April 21, 2020

To have gufw or ufw always enabled at startup you need : #sudo su #systemctl enable ufw.service

Reply

Serge

April 21, 2020

Hello ALU,
Recommending the Arch script is a bad idea. If you don't understand what iptables does don't use it!
By the way iptables is deprecated and will be replaced by nftables.
There are Linux distributions which have a detailed iptables enabled OOTB like Fedora and Linux Lite for instance.
You need a deep understanding of networking to be able to use iptables correctly. So in doubt be cautious!!!
Cheers

Reply

Leave a Reply