Quote:> I am running Linux with Redhat6.2. I need to create a routing table
> based on userid.
> /sbin/route doesn't seem to have the option.
That is because it doesn't support what you want. ;)
Routing by user-ID should be possible in an indirect way but only
for traffic originating from the local host:
The new Netfilter which is part of Linux 2.4.x has a module which
can match the owner of a local socket/port. You may be able to use
that to give the packet a ``firewall-mark'' and then use that as
per the Advanced Routing Howto.
For packets which originate at a different host there is no ready
solution because IP, TCP and UDP packets do not carry any user-id
information as part of the protocol. I suppose you could devise
some sort of encapsulation protocol up to your router, but you'd
be on your own. ... Don't let that stop you :)
Quote:> The Advanced Routing Howto mentioned it is capable with /sbin/ip
> route, but didn't give more details. I could find any manpage or
> other detailed info on /sbin/ip.
Information on Advanced Routing is still a bit thin. You'll just
have to keep looking. Often you will find very useful comments and
tips in the source code of the relevant software.
Here are some of my bookmarks:
<http://snafu.freedom.org/linux2.2/iproute-notes.html>
<http://icawww1.epfl.ch/linux-diffserv/>
<http://qos.ittc.ukans.edu/>
--
Manfred
---------------------------------------------------------------
ipchainsLogAnalyzer, NetCalc, whois at: <http://logi.cc/linux/>