![]() |
|
|
Thread Tools |
|
#1
|
|
|
Join Date: Mar 2007
Age: 30
Posts: 4,270
|
Is it possible to do this on Linux?
Hi,
I'm having the following situation on my linux server and don't know how to fix it I have 3 users that log on remotly to the server using TightVNC. My server has one network card but three different IPs available. So far, i've configure the server to respond to the primary IP and the two aliases by configuring the eth0 interface. But i would like to bind one IP to one user, the other Ip to another one etc... so they would all appear like having different IP while browsing the web with firefox for example. Is it something possible? i have no clue how to do it after looking for that for a while. I managed to bind specific IP in utorrent without problem though, this is just a variable to fill. Thx for the help, i'm sure there is a Linux god out there to help me
|
|
|
| Click to Register | Registering will remove these ads. |
|
Sponsored Links
|
|
Linux Software
-
#2
|
|
|
Join Date: Mar 2007
Age: 30
Posts: 4,270
|
Had my answer on a linux forum, thx anyway!
|
|
|
|
Linux Software
-
#3
|
|
|
Join Date: Nov 2002
Posts: 3,694
BT Rep: +3
|
So what is the answer?
__________________
BIGCRUMBS You deserve a BITE. |
|
|
|
Linux Software
-
#4
|
|
|
Join Date: Mar 2007
Age: 30
Posts: 4,270
|
the way i found is by using iptables
you can NAT the ip address of each outgoing packet to a certain IP address and that, by user id. Exactly, what i wanted to do that would be something like that : iptables -t nat -A POSTROUTING -m owner --uid-owner 1100 -j SNAT --to 192.168.100.100 easy to do ain't it?
|
|
|
|
Linux Software
-
#5
|
||
|
Join Date: Jul 2007
Posts: 627
|
Quote:
Linux is hard work... That's why like it.
|
|
|
||
|
Linux Software
-
#6
|
|
|
Join Date: Mar 2007
Age: 30
Posts: 4,270
|
linux is great fun
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|