Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
enviroment variable to disable network interfaces?
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
l_bratch
Guru
Guru


Joined: 08 Feb 2005
Posts: 494
Location: Jersey

PostPosted: Thu Oct 06, 2005 8:58 pm    Post subject: enviroment variable to disable network interfaces? Reply with quote

Is there an enviroment variable I can pass to an application, to hide any network interfaces from it?

eg something like:
HIDE_IFACE="eth0" myapp

to hide eth0?
Back to top
View user's profile Send private message
jpl888
Guru
Guru


Joined: 13 Apr 2005
Posts: 337
Location: Piltown, Co. Kilkenny, Ireland.

PostPosted: Thu Oct 06, 2005 10:47 pm    Post subject: Reply with quote

Why do you want to do that, security is it?
Back to top
View user's profile Send private message
l_bratch
Guru
Guru


Joined: 08 Feb 2005
Posts: 494
Location: Jersey

PostPosted: Fri Oct 07, 2005 6:39 am    Post subject: Reply with quote

I want to test various network apps in an enviroment where they have no network access, without actually having to disable the interfaces on the machine.
Back to top
View user's profile Send private message
jpl888
Guru
Guru


Joined: 13 Apr 2005
Posts: 337
Location: Piltown, Co. Kilkenny, Ireland.

PostPosted: Fri Oct 07, 2005 8:31 am    Post subject: Reply with quote

Would you not just shut the interface down while you are doing the test?
Back to top
View user's profile Send private message
l_bratch
Guru
Guru


Joined: 08 Feb 2005
Posts: 494
Location: Jersey

PostPosted: Fri Oct 07, 2005 8:38 am    Post subject: Reply with quote

I can, and that would work, but it would be more convenient to have a way to disable network for an invidual application.

I will do that if there is no alternative, but ideally I'd like to do it this way.
Back to top
View user's profile Send private message
jpl888
Guru
Guru


Joined: 13 Apr 2005
Posts: 337
Location: Piltown, Co. Kilkenny, Ireland.

PostPosted: Fri Oct 07, 2005 9:26 am    Post subject: Reply with quote

Maybe one of the developers knows different but I would say the chances of you being able to do that are slim.
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