|
Next: Using PCAnywhere with OpenLDAP
|
| Author |
Message |
External

Since: Jan 24, 2006 Posts: 3
|
(Msg. 1) Posted: Tue Jan 24, 2006 10:22 pm
Post subject: Desktop Firewall or Application-Packetfilter Archived from groups: comp>os>linux>networking (more info?)
|
|
|
Hi,
i am looking for a way to control which application gets access to the
internet under linux. the solution should be very similar to desktop
firewalls under windows. i dont want to close specific ports to the
internet. i want to filter the packets depending on the application name
or the applications process id.
and by the way, i dont want to talk about the sense of desktop
firewalls. i am only looking for a solution under linux (if there is one).
thanks!
Ralf Näke |
|
| Back to top |
|
 |  |
External

Since: Nov 13, 2003 Posts: 73
|
(Msg. 2) Posted: Wed Jan 25, 2006 12:50 pm
Post subject: Re: Desktop Firewall or Application-Packetfilter [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Tue, 24 Jan 2006 22:22:08 +0100, Ralf Näke <ralf.naeke DeleteThis @gmx.de>
wrote:
>Hi,
>
>i am looking for a way to control which application gets access to the
>internet under linux. the solution should be very similar to desktop
>firewalls under windows. i dont want to close specific ports to the
>internet. i want to filter the packets depending on the application name
>or the applications process id.
>
>and by the way, i dont want to talk about the sense of desktop
>firewalls. i am only looking for a solution under linux (if there is one).
>
>thanks!
>
>Ralf Näke
Ralf,
To the best of my knowledge, there is nothing in Linux like what you
describe.
A potential alternative may be possible if the program uses wrappers.
Then you could DENY everything except the allowed daemon(s) by
altering /etc/hosts.allow and hosts,deny.
On the other hand, I fail to see why blocking ports won't do. Why are
you specifically saying NO to that?
--
buck |
|
| Back to top |
|
 |  |
External

Since: Dec 20, 2005 Posts: 42
|
(Msg. 3) Posted: Wed Jan 25, 2006 4:01 pm
Post subject: Re: Desktop Firewall or Application-Packetfilter [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Ralf Näke wrote:
> Hi,
>
> i am looking for a way to control which application gets access to the
> internet under linux. the solution should be very similar to desktop
> firewalls under windows. i dont want to close specific ports to the
> internet. i want to filter the packets depending on the application name
> or the applications process id.
But there is nothing in a packet that says which application it belongs to.
Could you give an example of what you really need.
Robert
>
> and by the way, i dont want to talk about the sense of desktop
> firewalls. i am only looking for a solution under linux (if there is one).
>
> thanks!
>
> Ralf Näke |
|
| Back to top |
|
 |  |
External

Since: Jan 24, 2006 Posts: 3
|
(Msg. 4) Posted: Wed Jan 25, 2006 8:26 pm
Post subject: Re: Desktop Firewall or Application-Packetfilter [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Robert Harris schrieb:
> Ralf Näke wrote:
>
>> Hi,
>>
>> i am looking for a way to control which application gets access to the
>> internet under linux. the solution should be very similar to desktop
>> firewalls under windows. i dont want to close specific ports to the
>> internet. i want to filter the packets depending on the application
>> name or the applications process id.
>
> But there is nothing in a packet that says which application it belongs to.
>
> Could you give an example of what you really need.
>
> Robert
>
>>
>> and by the way, i dont want to talk about the sense of desktop
>> firewalls. i am only looking for a solution under linux (if there is
>> one).
>>
>> thanks!
>>
>> Ralf Näke
Hi Robert,
thanks for yor response. i want to take control over the rights of
applications for internet access. i hope i can describe it clearly with
the following example:
imagine you have two internet browsers installed under linux. the first
browser should have the rights to connect to the internet and the second
browser should not have this rights. in reality i want to test this
with ohter applications but i think this is a beautiful example. this is
for the case that i only want to test one application without let them
connect to the internet. but at the same time i want to stay online with
other applications so that i dont want to cut my internet connection.
also i dont want to close specific ports because i dont know what ports
the test-application uses.
i hope this example is a little bit more useful. thank you for your help!
greetings ralf |
|
| Back to top |
|
 |  |
External

Since: Dec 20, 2005 Posts: 42
|
(Msg. 5) Posted: Wed Jan 25, 2006 8:26 pm
Post subject: Re: Desktop Firewall or Application-Packetfilter [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Ralf Näke wrote:
> Robert Harris schrieb:
>> Ralf Näke wrote:
>>
>>> Hi,
>>>
>>> i am looking for a way to control which application gets access to
>>> the internet under linux. the solution should be very similar to
>>> desktop firewalls under windows. i dont want to close specific ports
>>> to the internet. i want to filter the packets depending on the
>>> application name or the applications process id.
>>
>> But there is nothing in a packet that says which application it
>> belongs to.
>>
>> Could you give an example of what you really need.
>>
>> Robert
>>
>>>
>>> and by the way, i dont want to talk about the sense of desktop
>>> firewalls. i am only looking for a solution under linux (if there is
>>> one).
>>>
>>> thanks!
>>>
>>> Ralf Näke
> Hi Robert,
>
> thanks for yor response. i want to take control over the rights of
> applications for internet access. i hope i can describe it clearly with
> the following example:
>
> imagine you have two internet browsers installed under linux. the first
> browser should have the rights to connect to the internet and the second
> browser should not have this rights. in reality i want to test this
> with ohter applications but i think this is a beautiful example. this is
> for the case that i only want to test one application without let them
> connect to the internet. but at the same time i want to stay online with
> other applications so that i dont want to cut my internet connection.
> also i dont want to close specific ports because i dont know what ports
> the test-application uses.
>
> i hope this example is a little bit more useful. thank you for your help!
>
> greetings ralf
Well, if you have two browsers, there is no filter that will allow one
to reach the internet but not the other: they both generate the same
types of packet. You must build the internet access permissions into the
applications themselves.
Or you could discover what ports your test application uses.
Robert |
|
| Back to top |
|
 |  |
External

Since: Jan 25, 2006 Posts: 27
|
(Msg. 6) Posted: Wed Jan 25, 2006 9:45 pm
Post subject: Re: Desktop Firewall or Application-Packetfilter [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Ralf Näke wrote:
> Robert Harris schrieb:
>
>> Ralf Näke wrote:
>>
>>> Hi,
>>>
>>> i am looking for a way to control which application gets access to
>>> the internet under linux. the solution should be very similar to
>>> desktop firewalls under windows. i dont want to close specific ports
>>> to the internet. i want to filter the packets depending on the
>>> application name or the applications process id.
>>
>>
>> But there is nothing in a packet that says which application it
>> belongs to.
>>
>> Could you give an example of what you really need.
>>
>> Robert
>>
>>>
>>> and by the way, i dont want to talk about the sense of desktop
>>> firewalls. i am only looking for a solution under linux (if there is
>>> one).
>>>
>>> thanks!
>>>
>>> Ralf Näke
>
> Hi Robert,
>
> thanks for yor response. i want to take control over the rights of
> applications for internet access. i hope i can describe it clearly with
> the following example:
>
> imagine you have two internet browsers installed under linux. the first
> browser should have the rights to connect to the internet and the second
> browser should not have this rights. in reality i want to test this
> with ohter applications but i think this is a beautiful example. this is
> for the case that i only want to test one application without let them
> connect to the internet. but at the same time i want to stay online with
> other applications so that i dont want to cut my internet connection.
> also i dont want to close specific ports because i dont know what ports
> the test-application uses.
>
> i hope this example is a little bit more useful. thank you for your help!
>
> greetings ralf
To do this, you would have to do what ZoneAlarm or the other Windows firewalls does by putting a
psuedo driver ahead of the network driver and intercept every outgoing network transaction. AKAIK,
this type of interceptor does not exist in Linux. In addition, it is not needed because it is much
more difficult for spyware to be introduced into a Linux system, particularly if you are almost
never logged in as root. On the other hand, a Windows system barely functions unless you are logged
into an account with Administrative Rights, their nomenclature for root.
Larry |
|
| Back to top |
|
 |  |
External

Since: Jan 24, 2006 Posts: 3
|
(Msg. 7) Posted: Wed Jan 25, 2006 11:02 pm
Post subject: Re: Desktop Firewall or Application-Packetfilter [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
buck schrieb:
> On Tue, 24 Jan 2006 22:22:08 +0100, Ralf Näke <ralf.naeke.RemoveThis@gmx.de>
> wrote:
>
>> Hi,
>>
>> i am looking for a way to control which application gets access to the
>> internet under linux. the solution should be very similar to desktop
>> firewalls under windows. i dont want to close specific ports to the
>> internet. i want to filter the packets depending on the application name
>> or the applications process id.
>>
>> and by the way, i dont want to talk about the sense of desktop
>> firewalls. i am only looking for a solution under linux (if there is one).
>>
>> thanks!
>>
>> Ralf Näke
>
> Ralf,
>
> To the best of my knowledge, there is nothing in Linux like what you
> describe.
>
> A potential alternative may be possible if the program uses wrappers.
> Then you could DENY everything except the allowed daemon(s) by
> altering /etc/hosts.allow and hosts,deny.
>
> On the other hand, I fail to see why blocking ports won't do. Why are
> you specifically saying NO to that?
> --
> buck
>
Hi buck,
you wrote:
> On the other hand, I fail to see why blocking ports won't do. Why are
> you specifically saying NO to that?
if i want to test a application i want to block all trafic from this
application to the internet. but in the first moment i do not have any
idea which ports this apllication will use. furthermore i will be shure
that this application not uses the port 80 for exsample to phone at
home. but if i close the port 80 i will not be able to use my browser.
i know that i can change the port for my browser but in general i dont
want to close all my ports for testing a application because at the same
time i want to be able to use other applications which could be using
the same ports. |
|
| Back to top |
|
 |  |
External

Since: Jul 03, 2003 Posts: 131
|
(Msg. 8) Posted: Wed Jan 25, 2006 11:02 pm
Post subject: Re: Desktop Firewall or Application-Packetfilter [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Wed, 25 Jan 2006 23:02:27 +0100, Ralf Näke
<ralf.naeke.TakeThisOut@gmx.de> wrote:
>
> if i want to test a application i want to block all trafic from this
> application to the internet. but in the first moment i do not have any
> idea which ports this apllication will use. furthermore i will be shure
> that this application not uses the port 80 for exsample to phone at
> home. but if i close the port 80 i will not be able to use my browser.
>
> i know that i can change the port for my browser but in general i dont
> want to close all my ports for testing a application because at the same
> time i want to be able to use other applications which could be using
> the same ports.
Maybe what you want is to run the application in a virtual machine or
User Mode Linux.
--
A handful of friends is worth more than a wagon of gold. |
|
| Back to top |
|
 |  |
External

Since: Jan 26, 2006 Posts: 4
|
(Msg. 9) Posted: Thu Jan 26, 2006 7:47 am
Post subject: Re: Desktop Firewall or Application-Packetfilter [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Am Mittwoch, den 25.01.2006, 20:26 +0100 schrieb Ralf Näke:
> thanks for yor response. i want to take control over the rights of
> applications for internet access. i hope i can describe it clearly with
> the following example:
>
> imagine you have two internet browsers installed under linux. the first
> browser should have the rights to connect to the internet and the second
> browser should not have this rights. in reality i want to test this
> with ohter applications but i think this is a beautiful example. this is
> for the case that i only want to test one application without let them
> connect to the internet. but at the same time i want to stay online with
> other applications so that i dont want to cut my internet connection.
> also i dont want to close specific ports because i dont know what ports
> the test-application uses.
>
> i hope this example is a little bit more useful. thank you for your help!
>
> greetings ralf
You can do this with LIDS (Linux Intrusion Detection System)
It's configurable to mark packets of a certain process and then you can
filter with iptables in the OUTPUT-Chain.
http://www.lids.org/document/lids_worm-2.html |
|
| Back to top |
|
 |  |
External

Since: Nov 17, 2005 Posts: 3
|
(Msg. 10) Posted: Thu Jan 26, 2006 1:39 pm
Post subject: Re: Desktop Firewall or Application-Packetfilter [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Wed, 25 Jan 2006 22:23:34 -0500, Bill Marcum <bmarcum.RemoveThis@iglou.com> wrote:
> On Wed, 25 Jan 2006 23:02:27 +0100, Ralf Näke
> <ralf.naeke.RemoveThis@gmx.de> wrote:
> >
> > if i want to test a application i want to block all trafic from this
> > application to the internet. but in the first moment i do not have any
> > idea which ports this apllication will use. furthermore i will be shure
> > that this application not uses the port 80 for exsample to phone at
> > home. but if i close the port 80 i will not be able to use my browser.
>
> Maybe what you want is to run the application in a virtual machine or
> User Mode Linux.
The grsecurity kernel patches advertise GID based socket restrictions
(http://www.grsecurity.net/features.php). You could make one browser
setgid (with a dedicated group) and deny it the ability to open
network sockets.
Along similar lines, you could probably do what you want with a custom
selinux policy, but I've never heard of anyone getting any joy out of
trying to handcraft a policy.
Mike
--
Michael Zawrotny
Institute of Molecular Biophysics
Florida State University | email: zawrotny.RemoveThis@sb.fsu.edu
Tallahassee, FL 32306-4380 | phone: (850) 644-0069 |
|
| Back to top |
|
 |  |
| Related Topics: | Http Client application - Hi all, I am searching for simple C/C++ based open source HTTP Client application. Please send me the link. Thanks & Regards, Vinay
Network application design question - I need a little help getting started in the right direction: I'm developing an application that has a server side and a client side. It's possible that multiple servers and multiple clients could all be on the same network. Whenever the server..
bind application to ip address (eg browsers) - i am interested in binding an application, especially one of the browsers w3m or lynx to a specific ip address owned by the system. it is possible in irssi and BitchX with parameter -h i really need such option, because i use a freebsd shell on a serve...
What is a firewall? - Ive used iptables SNAT (and DNAT) with a LAN, used ipf, ipfilter and others on Solaris, FreeBSD and most frequently, Linux. Also used squid for http proxy in one location. Used a cisco 2514 router for both NAT and http proxy as well. But I get baffled....
Firewall and Webserver - I'm having an interesting problem between my firewall and webserver right now and I'm hoping some one can explain the reason for why it's happening. Both my firewall and webserver are currently connected directly to the internet as well as an interna... |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|