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

Windows firewall allows to specify a program that will accept inbound connections no matter on which port(s) is listening (instead of specifying the port(s) to allow for that program). Is this possible in Ubuntu with the default firewall? How?

share|improve this question
up vote 0 down vote accepted

You may want to take a look at this post on the firewall, particularly the "ufw Application Integration" section.

share|improve this answer
Unfortunately it is only a mapping between applications and usual port number used by them. If another application use the same port (not at the same time, obviously) the firewall cannot detect. There is no easy way to have firewall rules based on which applications use a given port. – enzotib Aug 12 '11 at 7:04
It looks like the default firewall doesn't really supports applications (if an application uses dynamic ports than this won't be of any help). Thanks. – George Ciubotaru Aug 12 '11 at 14:08

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.