Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to restrict use of IP address (alias) on outgoing connection ??

Reply
Thread Tools Display Modes

How to restrict use of IP address (alias) on outgoing connection ??

 
 
Rohit
Guest
Posts: n/a

 
      01-18-2007, 01:36 PM
Hi all,

I have following set up on my system.

eth0 : IP : A.B.C.D and
eth0:1 IP W.X.Y.Z (this is an alias . I am using FC5 -32
bit linux)

What i want to do is , hide this IP address (one with eth0:1 ) from
all the outgoing connections from this machine if this request is from
a process other than my process.
Also all of my processes should use only W.X.Y.Z
How do i achieve this ?? I have a kernel module inserted onto this
system.
Any ideas what i need to do , so for rest of processes there is not
such ip address W.X.Y.Z. and kernel wont select this ip address for
any outgoing connection ???

Thanks in advance

TellMeMore

 
Reply With Quote
 
 
 
 
Allen Kistler
Guest
Posts: n/a

 
      01-19-2007, 06:29 PM
Rohit wrote:
> Hi all,
>
> I have following set up on my system.
>
> eth0 : IP : A.B.C.D and
> eth0:1 IP W.X.Y.Z (this is an alias . I am using FC5 -32
> bit linux)
>
> What i want to do is , hide this IP address (one with eth0:1 ) from
> all the outgoing connections from this machine if this request is from
> a process other than my process.
> Also all of my processes should use only W.X.Y.Z
> How do i achieve this ?? I have a kernel module inserted onto this
> system.
> Any ideas what i need to do , so for rest of processes there is not
> such ip address W.X.Y.Z. and kernel wont select this ip address for
> any outgoing connection ???


There is no per-user routing. The best thing I could suggest is look
into per-user netfilter mangling using the --uid-owner match. I've
never done it. "man iptables" for more info.
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How the selection of IP address is done for a tcp socket on client side if there are multiple alias configured Rohit Linux Networking 0 01-22-2007 11:34 AM
How the selection of IP address is done for a tcp socket on client side if there are multiple alias configured Rohit Linux Networking 0 01-22-2007 11:34 AM
IP Alias default outgoing interface? agentbullvi@gmail.com Linux Networking 3 12-28-2005 06:25 PM
sending packets from alias address peter.glover@dsl.pipex.com Linux Networking 1 02-02-2005 02:48 PM
Setting the outgoing IP-Address Ulrich Wurst Linux Networking 2 07-07-2003 06:09 PM



1 2 3 4 5 6 7 8 9 10 11