Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Blocking network for an app
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
delone
n00b
n00b


Joined: 03 Dec 2006
Posts: 5

PostPosted: Fri Aug 31, 2007 1:03 am    Post subject: Blocking network for an app Reply with quote

Hi friends,

I need to cut off internet access to some applications. I wonder if there is some program like a wrapper which disables network access for applications running inside it. I don't need to select ports nor protocols, I only want to avoid the application using tcp/ip.

Thanks in advance!
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Fri Aug 31, 2007 3:27 am    Post subject: Reply with quote

This is just a hint, but you can do so with an iptables firewall I'm almost sure. I know you could block a particular port, which would be the easiest, but if you want to get into the more complicated side of things you could also block all access by a particular program I think.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
salam
Apprentice
Apprentice


Joined: 29 Sep 2005
Posts: 227

PostPosted: Sun Sep 02, 2007 7:51 am    Post subject: Reply with quote

maybe iptables -m owner --cmd-owner should do the work. bud i was never able to make it work. anybody who knows how to enable --pid-owner --sid-owner and --cmd-owner?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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