Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some systems running on Ubuntu in the private IP range . These systems are connected to a switch and the switch is connected to the ISP's modem.

Neither the switch nor the modem support firewall options. I don't have any firewall device and I'm not willing to individually configure firewalls on all the systems (via gui/iptables).

Is it possible to make an Ubuntu system into something like a software firewall, so that all the traffic/packets sent to or from the WAN(internet) would be allowed/denied based on its firewall rules?

share|improve this question
sudo ufw enable – Anonymous Nov 17 '11 at 20:52
up vote 4 down vote accepted

AFAIK almost every distribution can be set as a firewall. And also there are some distro specifically built for this purpose such as zentyal, clearos etc. 'zentyal' is based on Ubuntu while 'clearos' is based on Centos.

share|improve this answer
I"ll give a try of them – user3215 Feb 24 '11 at 1:28

Firestarter Install Firestarter

Firestarter is an Open Source visual firewall program. The software aims to combine ease of use with powerful features, therefore serving both Linux desktop users and system administrators.

You can use Firestarter on your...

... desktop or laptop. Our philosophy of simplicity has made Firestarter the most widely used Linux desktop firewall software available today.

... server. Firestarter can be installed onto individual servers and managed graphically over SSH or using the shell.

... gateway or dedicated firewall. Firestarter will set up Internet connection sharing for you with a minimum of fuss. Want DHCP for the clients? Sure you could configure it yourself, but we know you never get around to doing it, with Firestarter it only takes one click.

Firestarter features

* Open Source software, available free of charge
* User friendly, easy to use, graphical interface
* A wizard walks you through setting up your firewall on your first time
* Suitable for use on desktops, servers and gateways
* Real-time firewall event monitor shows intrusion attempts as they happen
* Enables Internet connection sharing, optionally with DHCP service for the clients
* Allows you to define both inbound and outbound access policy
* Open or stealth ports, shaping your firewalling with just a few mouse clicks
* Enable port forwarding for your local network in just seconds
* Option to whitelist or blacklist traffic
* Real time firewall events view
* View active network connections, including any traffic routed through the firewall
* Advanced Linux kernel tuning features provide protection from flooding, broadcasting and spoofing
* Support for tuning ICMP parameters to stop Denial of Service (DoS) attacks
* Support for tuning ToS parameters to improve services for connected client computers
* Ability to hook up user defined scripts or rulesets before or after firewall activation
* Supports Linux Kernels 2.4 and 2.6
* Translations available for many languages (38 languages as of November 2004)
share|improve this answer
Is it possible to manage or administer remote computer firewall setting rules with firestarter? – user3215 Feb 24 '11 at 1:27

You can install Gufw it's an easy to use free software to configure the internal Ubuntu's firewall (Netfilter).

share|improve this answer
Please note that this will ONLY be effective if the computer sits between the modem and the switch. You can't just have it hanging off the switch like all the other boxes and expect it to be able to block packets heading towards them. #obvious-but-worth-stating – Jeremy Oct 14 '10 at 7:24
Also, you will have to check if netfilter sets the ip_forwarding option in the kernel. If not, please see this: – Jeremy Oct 14 '10 at 7:25
One more thing. Not all software firewalls are equal, depending on what you want to be doing. It's worth looking into the differences between iptables, netfilter and pf. – Jeremy Oct 14 '10 at 7:26
Is it like that installing Gufw on a single system I can handle the firewall settings on remote systems which are on the same network?. – user3215 Oct 14 '10 at 8:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.