Gufw Firewall

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 5

Gufw firewall

Install gufw

Sudo apt- get install gufw

Sudo ufw status

GNU/Linux firewall comes disabled by default allowing the


entirety of both incoming and outgoing traffic

To confirm that the Netfilter firewall does not have any


predefined rules we can type the following command in the
terminal:

sudo iptables -L

and the result you will obtain will be the following:

Activate firewall

sudo gufw

Trying to block Facebook iptables

-A FORWARD -p tcp -m tcp --sport 443 -m string --string


"facebook" --algo bm -j DROP

-A FORWARD -p tcp -m tcp --sport 80 -m string --string "facebook"


--algo bm -j DROP

-A FORWARD -p tcp -m tcp --dport 443 -m string --string


"facebook" --algo bm -j DROP

-A FORWARD -p tcp -m tcp --dport 80 -m string --string "facebook"


--algo bm -j DROP

You might also like