LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   multiple nic's (https://www.linuxquestions.org/questions/linux-newbie-8/multiple-nics-689860/)

moverholt 12-11-2008 12:21 PM

multiple nic's
 
Hi-

I need to specify the network interface at the user level...so that all network traffic of certain users go through a different nic. Any help would be appreciated.

Thanks.
-matt o.

AwesomeMachine 12-11-2008 12:26 PM

Homework

jstephens84 12-11-2008 01:33 PM

Is school in session or something. I have been seeing a lot of these posts that ask the most random questions and don't really give any background information and anything that even comes close to saying here is what I have attempted or here is what google has said but I don't understand.

moverholt 12-11-2008 01:56 PM

well i have 2 interfaces, eth0 and eth1. I want user bob to use eth0 by default and amy to use eth1 by default.

Thanks.
-matt o.

jstephens84 12-11-2008 02:03 PM

Well the best I got at this moment is for you to create a script that launches at user startup that will shutdown one or the other based on who logs in. However I don't see the purpose of why you would even want to do this.

moverholt 12-11-2008 02:12 PM

i would need both users running at the same time. i do have a reason, but it doesn't matter.

any ideas that could put me on the right path would be appreciated.

thanks.
-matt o.

anomie 12-11-2008 02:16 PM

I'd think you would want to specify a different default router for each user. I haven't experimented with that, but that is how I would approach it.

moverholt 12-11-2008 02:26 PM

good idea, i'll look into and let you know how it goes.

thx.

-matt

jstephens84 12-11-2008 02:31 PM

Quote:

Originally Posted by anomie (Post 3372063)
I'd think you would want to specify a different default router for each user. I haven't experimented with that, but that is how I would approach it.

But that still doesn't work as that is not limiting which ethX the user can use. If say Ann still has access to both eth adapters then she can access both routed networks.

moverholt 12-11-2008 02:34 PM

i could live with ann still having access, just not using.

basically i am trying to box in a bunch of scripts that access the network into a single user instead of searching around the application level (100's of curl's, wget's, and random perl libs), where i'm likely to miss one.

thanks.
-matt

jstephens84 12-11-2008 02:42 PM

Quote:

Originally Posted by moverholt (Post 3372087)
i could live with ann still having access, just not using.

basically i am trying to box in a bunch of scripts that access the network into a single user instead of searching around the application level (100's of curl's, wget's, and random perl libs), where i'm likely to miss one.

thanks.
-matt

Ok so that is a lot different than what you are actually asking in your first post. I would just use the setuid bit on all the scripts to the same person then activate them at boot time. with the setuid they should all launch as that user.

moverholt 12-11-2008 02:56 PM

sorry, i am new here.

i want the group of scripts to use a different internet connection. instead of going through all the scripts and perl libs and specifying the network interface in 100's of locations i thought i could specify it at the user level.

-matt


All times are GMT -5. The time now is 08:09 AM.