Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Is there any Linux firewall like ZoneAlarm, Keiro or Comodo in Windows environment?

I like to to able to monitor and block any Linux program from making in/out TCP/UDP connections on per application base.

netfilter, ipfilter can only handle it on system level.

More details on my ideal "Big Brother" Security Monitor.

I like to setup the following security policy:

Only Apache is allowed to accept connections from everything. 

MySQL can accept connections from only a select few IPs.

If any other application tries to accept / make any connections, 
    log it and flags it for analysis.  
       Log the time, app name, user, to where, amount of traffic xfer, 
       trigger script to do stack dump, strace on the pid, etc).

 X GUI config is nice, but I am not a GUI person. 
 Prefer web or XML base configuration and logging for ease of analysis.

 Should be able to track app even if the user is root. 

 Track app base on name/path 
     Validate the app's size, date, first and last 32 bytes value 
     (Optionally, md5/shar sig of the whole app.)
share|improve this question

closed as off-topic by Tog, Journeyman Geek May 15 '14 at 10:38

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – Tog, Journeyman Geek
If this question can be reworded to fit the rules in the help center, please edit the question.

Any particular distro you're using? – invert Dec 4 '09 at 8:46
I am using both FC 8 - 11 and ubnuntu 9.4 - 9.10. – tony-p-lee Dec 4 '09 at 14:56
At least some of what you describe can be handled by AppArmor. SELinux may also be worth looking into. I don't know enough to say much more than this, though. BTW - somehow this comment got added to an answer rather than the question earlier - sorry about that. – Steve314 Nov 19 '10 at 21:10

Well, there is the owner match:

   This module attempts to match various characteristics of the packet creator, for locally-generated packets. 

   --uid-owner userid
          Matches if the packet was created by a process with the given effective user id.

   --gid-owner groupid
          Matches if the packet was created by a process with the given effective group id.

   --pid-owner processid
          Matches if the packet was created by a process with the given process id.

   --sid-owner sessionid
          Matches if the packet was created by a process in the given session group.

   --cmd-owner name
          Matches if the packet was created by a process with the given command name.  (this option  is  present  only  if
          iptables was compiled under a kernel supporting this feature)

This may be not as mighty as the windows counterpart. But I am not a friend of per application/process firewall rules. Thats something windows needs ;)

share|improve this answer
Too many apps (even) the open source app are phoning their owner's website today. I like to know when and why they are doing it. netstat -anp tells me someone is doing it. I like to know how to block them easily. – tony-p-lee Dec 4 '09 at 8:51
I see what you mean. But IMHO this won´t be easy to implement under linux, beacause you need a strong UI (eg. Desktop) and System interaction. Thats one of the advantages of windows, as it comes all from a single source. – Flow Dec 4 '09 at 9:08

Are you looking for something like the Linux-Firewall app?
I think iptables can do these things and most tools are wrappers over them.

share|improve this answer
This app is closed source. Not an option for security software on Linux. – Denis Nikolaenko Sep 5 '11 at 19:45

Have a look at Uncomplicated Fire Wall, which is a GUI for IPTables.

Edit: Read here for more technical details on IPTables.

share|improve this answer
It does not have per process control. – Denis Nikolaenko Sep 5 '11 at 19:45
Perhaps for such fine grained control, see here: – invert Sep 12 '11 at 18:49

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