Thread (8 messages) 8 messages, 3 authors, 2014-05-12

Re: [RFC net-next 0/4] Support UID range routing.

From: David Miller <davem@davemloft.net>
Date: 2014-05-02 19:24:42

From: Lorenzo Colitti <redacted>
Date: Sat, 3 May 2014 04:15:38 +0900
On Tue, Apr 29, 2014 at 4:01 AM, Lorenzo Colitti [off-list ref] wrote:
quoted
Basically, what this patch calls "UID" is what the xt_owner module and
xt_LOG iptables modules consider to be the "owner" of a socket, what
nfqueue presents as the user ID, what shows up in
/proc/net/{udp,tcp,raw} in the "uid" column, etc. In most cases this
is the effective UID that made the call to socket() or accept().

This patch allows using that concept in routing. This can be done
today with "iptables -m owner --uid-owner 12345 -j MARK --set-mark
0xbeef; ip rule from fwmark 0xbeef lookup 100", but that has the
limitations I set out in my original message (e.g., incorrect source
address).
did that help clarify what I'm proposing here? Does this patch still
seem misguided to you even though its semantics match existing
functionality?
I understand what you're trying to achieve, but it still leaves a very
bad taste in my mouth.

And I question whether you absolutely cannot get the desired source
address set with appropriate adjustments to the netfilter config,
netfilter can mangle the packet any way you desire it to so why can't
it do so to the source address?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help