View previous topic :: View next topic |
Author |
Message |
l_bratch Guru
Joined: 08 Feb 2005 Posts: 494 Location: Jersey
|
Posted: Thu Oct 06, 2005 8:58 pm Post subject: enviroment variable to disable network interfaces? |
|
|
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 |
|
|
jpl888 Guru
Joined: 13 Apr 2005 Posts: 337 Location: Piltown, Co. Kilkenny, Ireland.
|
Posted: Thu Oct 06, 2005 10:47 pm Post subject: |
|
|
Why do you want to do that, security is it? |
|
Back to top |
|
|
l_bratch Guru
Joined: 08 Feb 2005 Posts: 494 Location: Jersey
|
Posted: Fri Oct 07, 2005 6:39 am Post subject: |
|
|
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 |
|
|
jpl888 Guru
Joined: 13 Apr 2005 Posts: 337 Location: Piltown, Co. Kilkenny, Ireland.
|
Posted: Fri Oct 07, 2005 8:31 am Post subject: |
|
|
Would you not just shut the interface down while you are doing the test? |
|
Back to top |
|
|
l_bratch Guru
Joined: 08 Feb 2005 Posts: 494 Location: Jersey
|
Posted: Fri Oct 07, 2005 8:38 am Post subject: |
|
|
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 |
|
|
jpl888 Guru
Joined: 13 Apr 2005 Posts: 337 Location: Piltown, Co. Kilkenny, Ireland.
|
Posted: Fri Oct 07, 2005 9:26 am Post subject: |
|
|
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 |
|
|
|