Subject: Re: [Bugme-new] [Bug 16216] New: wrong source addr of UDP packets when using policy routing

From: Patrick McHardy <[email-masked]>
Date: Wed, 16 Jun 2010 19:43:16 +0200

Eric Dumazet wrote:
> Le mercredi 16 juin 2010 à 18:46 +0200, Patrick McHardy a écrit :
>
>   
>> This is know behaviour, fwmarks don't work for source address selection
>> since before the source address is chosen, you don't even have a packet
>> which could be marked.
>>     
>
> We know have sk->sk_mark routing (socket based), so we might change
> sk->sk_mark with appropriate iptables target when one packet is
> received... not very clean but worth to mention...
>   
That would still be too late. The proper way would be to have the 
application
set the socket mark.