Your Ad Here Your Ad Here
Results 1 to 6 of 6

Thread: Is it possible to do this on Linux?

  1. #1
    KFlint's Avatar ... BT Rep: +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35
    Join Date
    Mar 2007
    Posts
    5,642
    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

  2. Software & Hardware   -   #2
    KFlint's Avatar ... BT Rep: +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35
    Join Date
    Mar 2007
    Posts
    5,642
    Had my answer on a linux forum, thx anyway!

  3. Software & Hardware   -   #3
    zapjb's Avatar Computer Abuser BT Rep: +3
    Join Date
    Nov 2002
    Posts
    3,694
    So what is the answer?

  4. Software & Hardware   -   #4
    KFlint's Avatar ... BT Rep: +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35
    Join Date
    Mar 2007
    Posts
    5,642
    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?

  5. Software & Hardware   -   #5
    dbmp's Avatar ubuntu <3 BT Rep: +13BT Rep +13BT Rep +13
    Join Date
    Jul 2007
    Posts
    627
    Quote Originally Posted by KFlint View Post
    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?
    No... Linux is hard work... That's why like it.

  6. Software & Hardware   -   #6
    KFlint's Avatar ... BT Rep: +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35
    Join Date
    Mar 2007
    Posts
    5,642
    linux is great fun

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •