Due to increased ‘online security risks’ in past few years, Firewall is a mandatory application/software these days, for everybody. When you’re using Ubuntu 11.10 (or any other Linux based operating system such as Debian, Linux Mint, openSUSE, Fedora etc) then you shouldn’t worry much about security because a packet filtering system called – ‘netfilter‘ is already there (shipped with Linux kernel) by default. iptables provides a complete suite of commands to configure/control each incoming/outgoing packets – thus it provides a highly flexible and powerful firewall solution.
iptables has only command line interface (and it’s not so easy to become a Guru of iptables), which creates some difficulties for newbies who just want to use some basic features of it’s underlying packet filtering system (I mean – netfilter). That’s why there are lot of front end applications available with graphical user interface (GUI) for iptables, and it’s really very helpful for absolute beginners. So this post is written for beginner users – who want to get started with Firewall on Ubuntu. Firewall configuration allows you to configure individual ports, common p2p, allow/block default ports for programs etc.
In Ubuntu, one such application is installed by default – named as – Uncomplicated Firewall (ufw). So all you need to do is to install its front end. gufw is the front end for ufw, it has very simple GUI with a lot of powerful features and it’s available in official package repository – you can install it in a click – from Ubuntu Software Center or by using a simple command.
Install firewall in Ubuntu (11.10 – Oneiric Ocelot)
To install gui for uncomplicated firewall – fire up a terminal (Ctrl+Alt+t) and execute the command –
sudo apt-get install gufw
That’s all.. now you’re ready to play with the firewall. have Fun!
Warning! The above application is intended for common users, so if you’re looking for a complete firewall solution for a server (running Ubuntu server edition or some other Linux distro such as CentOS or RedHat or…) then you should consider using iptables instead of ufw.
This blog is better than a lot of the forums out there well done
I’m very happy to know ‘you liked it’ and thanks for appreciation 🙂
Thanks for your article. What is the default behavior of the Ubuntu’s firewall after a stock install of 11.10? Does it block all incoming traffic and allow outgoing one? All is open?
Thank you. I hate feeling like an idiot. I put Ubuntu on my HP netbook and freakin’ love it. Unfortunately, some people leaned me towards other os back in the days. I wish I woulda stuck with it. Learned them all.
That was very cool. Thanks again. :o)