LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-10-2007, 09:04 PM   #1
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Rep: Reputation: 18
assign network interfaces to linux users?


hi,
i have one ethernet with 3 ip addresses...

root# ifconfig shows (think the word vsnet0 is same as eth0 only i'm running in vps)...
venet0:0 = 75.126.18.81
venet0:1 = 75.126.18.82
venet0:2 = 75.126.18.83

i have 4 linux users:
root, user1, user2, user3


i want when user1 is logged in (through ssh or direct) then user1 can use 75.126.18.81 for internet related programs,
user2 use 75.126.18.82
and user3 use 75.126.18.83,
etc...

is this possible (i'm using CentOS 4.4 and have no GUI)?
 
Old 01-11-2007, 03:58 AM   #2
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676
Blog Entries: 7

Rep: Reputation: 32
Check out IPTABLES tutorials..you can filter upon username or ID...so block traffic for the user in question except for the interface you want him to use.
 
Old 01-11-2007, 07:26 AM   #3
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Original Poster
Rep: Reputation: 18
the thing i am trying to do is i want to run one application (say bittorrent for example) on the first ip, and then i want to run a second application (like limewire) on the second ip, and another application like an emule client on the 3rd ip.

right now they all want to run on the first ip (on different ports so it works) but i want them to run on different ips.
any suggestions?
 
Old 04-29-2007, 06:25 PM   #4
UhhMaybe
Member
 
Registered: Jul 2004
Location: Salt Lake City, Utah
Distribution: Absolute 12.0 Studio 64 1.3.0
Posts: 470

Rep: Reputation: 30
Cool

Need to set up three different Networking files. One for each user (user1, user2, and user3). Each user would be on a different I.P. ( user1 on [75.126.18.81], user2 on [75.126.18.82] and user3 on [75.126.18.83] ). Try using a shell as "root", and editing the files after creating them. Remember to save all the files that are created, and also save all the files that are modified. Good luck.
 
Old 04-29-2007, 08:04 PM   #5
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Original Poster
Rep: Reputation: 18
the problem is these network config files seems to reset to defaults when the machine is rebooted.
the machine is a VPS (dedicated server) by the way.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mac osx problems with linux samba after switching network interfaces cruiserparts Linux - Networking 2 01-22-2006 07:41 PM
assign new data partition to specific users wycolorado Linux - Newbie 2 01-01-2005 09:53 PM
how to assign users access to new partitions wycolorado SUSE / openSUSE 2 01-01-2005 09:48 PM
Where to get Linux Network Programming Interfaces information... microtrance Programming 1 11-10-2003 08:37 PM
logical network interfaces Linux !!!!!! manaskb Linux - Networking 2 10-22-2002 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration