Sunday, April 28, 2024
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 1289  / 3 Years ago, tue, november 9, 2021, 3:30:15

I've used Ubuntu since more than a year now, as the Oneiric Ocelot has more than exceeded my expectations and provides most things out of the box. However, there is one feature that both Windows and Fedora provides - a network firewall that allows us to block specific incoming/outgoing ports such as HTTP(80), FTP(21), etc. I've seen it on Fedora17.



Since I'm going to learn some network programming, such a firewall will be very much useful for my development and testing.



Is there any such equivalent (and reliable) package in Ubuntu repository? I'm aware that I cannot fetch anything from the Fedora repo as they are in RPM formats, and also don't want to mess something with my Ubuntu deb packaging.


More From » software-recommendation

 Answers
2

UFW - Uncomplicated Firewall




The default firewall configuration tool for Ubuntu is ufw. Developed to ease iptables firewall configuration, ufw provides a user friendly way to create an IPv4 or IPv6 host-based firewall. By default UFW is disabled.



Gufw is a GUI that is available as a frontend.




UFW is installed by default but inactve:



sudo ufw status
Status: inactive


Enable:



sudo ufw enable


Disable:



sudo ufw disable


Examples




sudo ufw allow /
sudo ufw allow 53
sudo ufw allow 53/tcp
sudo ufw allow 53/udp
sudo ufw deny /
sudo ufw deny 53
sudo ufw deny 53/tcp
sudo ufw deny 53/udp


enter image description here



More info in the 1st link.


[#36486] Wednesday, November 10, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lowstonnequ

Total Points: 279
Total Questions: 125
Total Answers: 123

Location: Finland
Member since Sun, Dec 5, 2021
2 Years ago
lowstonnequ questions
Wed, Oct 26, 22, 14:40, 2 Years ago
Tue, Feb 28, 23, 01:39, 1 Year ago
Wed, Dec 1, 21, 23:44, 2 Years ago
Thu, Apr 21, 22, 13:13, 2 Years ago
;