From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Szewczyk Subject: Re: re-routing multicast pkts after mangle table marking Date: Wed, 2 Dec 2020 19:04:38 +0100 Message-ID: References: <001f01d6c8a4$0faac590$2f0050b0$@gmail.com> <002e01d6c8c3$d4fa4e00$7eeeea00$@gmail.com> <004f01d6c8d1$7c068350$741389f0$@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: <004f01d6c8d1$7c068350$741389f0$@gmail.com> List-ID: Content-Type: text/plain; charset="utf-8" To: Eliezer Croitor Cc: 'Netfilter Users Mailing list' On Wed, Dec 02, 2020 at 07:35:07PM +0200, Eliezer Croitor wrote: > There is a difference between packets which are dropped to the nic itself > and traffic which is bounded to a specific ip address. > From what I remember( and my memory is not the best as it was..) the last > time I checked on Debian jessie you couldn't do any routing > decision on a bounded socket. > Maybe on newer versions of the kernel or another OS it's not the same. But remember that `ip rule dport…` works (available in Buster) and it interacts with the same sockets as fwmark does but `ip rule fwmark…` doesn't work. So evidence suggest that there are indeed routing decisions being made for those sockets. Also note that I have done tests on sockets with sendto() without explicit binding with any address or interface. -- Marcin Szewczyk http://wodny.org