Super User is a question and answer site for computer enthusiasts and power users. 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've read the ubuntu developer docs regarding the ufw here, but couldn't find what I was looking for. It allows me to set rules for controlling in/out traffic based on source IP or port numbers, but what I want is to restrict based on applications. For example:

(1) only firefox.exe allowed to communicate on port 80 - outgoing

(2) only apache.exe/httpd.exe allowed to communicate on port 80 - incoming, etc.

(Hope you get what I'm trying to imply - this is possible in windows firewall).

I'm not able to see how I can achieve this with ufw firewall? Or is there a better alternative to ufw which is able to do this on linux?

share|improve this question
up vote 0 down vote accepted

I re-implemented the firewall entirely from scratch using iptables. Iptables gives more control and the rules are very simple to assign such as:

/sbin/iptables -A OUTPUT -o ppp0 -p tcp --dport 80 -j ACCEPT #http

Having do so, I've bid farewell to the ufw firewall:

sudo apt-get remove ufw
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .