Re: per-FIB socket binding

2025-01-13 Thread Mark Johnston
On Sun, Jan 12, 2025 at 07:17:48AM +, Paul Vixie wrote: > On Saturday, January 11, 2025 4:51:07 PM UTC Mark Johnston wrote: > > On Sat, Jan 11, 2025 at 06:25:22AM +, Paul Vixie wrote: > > > ... the SYN|ACK will always use the FIB from the interface where > > > the SYN arrived (this is in tc

Re: per-FIB socket binding

2025-01-11 Thread Paul Vixie
On Saturday, January 11, 2025 4:51:07 PM UTC Mark Johnston wrote: > On Sat, Jan 11, 2025 at 06:25:22AM +, Paul Vixie wrote: > > On Monday, January 6, 2025 3:56:55 PM UTC Mark Johnston wrote: > > > On Fri, Dec 27, 2024 at 08:48:48AM +, Paul Vixie wrote: > > ... > > > > x = y || z; > >

Re: per-FIB socket binding

2025-01-11 Thread Mark Johnston
On Sat, Jan 11, 2025 at 06:25:22AM +, Paul Vixie wrote: > On Monday, January 6, 2025 3:56:55 PM UTC Mark Johnston wrote: > > On Fri, Dec 27, 2024 at 08:48:48AM +, Paul Vixie wrote: > > > ... > > > I think the patch is probably a good idea, and the trick of only > > inheriting the packet's

Re: per-FIB socket binding

2025-01-10 Thread Paul Vixie
On Monday, January 6, 2025 3:56:55 PM UTC Mark Johnston wrote: > On Fri, Dec 27, 2024 at 08:48:48AM +, Paul Vixie wrote: > > ... > I think the patch is probably a good idea, and the trick of only > inheriting the packet's FIB if the socket's is non-zero would avoid > breaking compatibility for

Re: per-FIB socket binding

2025-01-06 Thread Mark Johnston
On Fri, Dec 27, 2024 at 08:48:48AM +, Paul Vixie wrote: > On Tuesday, December 24, 2024 3:34:45 AM UTC Santiago Martinez wrote: > > Hi, > > here’s another user of fibs. Each of our servers have multiple fibs and > > jails with fibs. I like the proposed. > > Santi > > Cool. Read on. > > On Tue

Re: per-FIB socket binding

2024-12-30 Thread paul
Julian <> For UDP one must already scan the interface list both initially and periodically to find possible source addresses and bind a socket to each. This is what makes it possible to answer a DNS request from the source address if the request's destination address. While it would be sim

Re: per-FIB socket binding

2024-12-30 Thread Julian Elischer
On 12/24/24 1:06 PM, Jamie Landeg-Jones wrote: Paul Vixie wrote: i've been thinking along these lines for a few years now, since my vm server is multi-fib. each interface has a fib, mostly zero. for incoming TCP SYNs, i'd like to carry that fib# into the resulting PCB so that that fib's rout

Re: per-FIB socket binding

2024-12-27 Thread Paul Vixie
> On 21.12.2024 19:34, Bjoern A. Zeeb wrote: > > How much use are FIBs still these days? Half of the original use cases > > I can think of could easily and better be overcome by using vnet jails > > with a physical or virtual interface (e.g, vcc) being delegated to the > > vnet. Among the other h

Re: per-FIB socket binding

2024-12-27 Thread Paul Vixie
On Tuesday, December 24, 2024 3:34:45 AM UTC Santiago Martinez wrote: > Hi, > here’s another user of fibs. Each of our servers have multiple fibs and > jails with fibs. I like the proposed. > Santi Cool. Read on. On Tuesday, December 24, 2024 5:06:32 AM UTC Jamie Landeg-Jones wrote: > Paul Vixie

Re: per-FIB socket binding

2024-12-23 Thread Jamie Landeg-Jones
Paul Vixie wrote: > i've been thinking along these lines for a few years now, since my vm server > is multi-fib. > each interface has a fib, mostly zero. for incoming TCP SYNs, i'd like to > carry that fib# into > the resulting PCB so that that fib's routing table and especially its default

Re: per-FIB socket binding

2024-12-23 Thread Santiago Martinez
Hi, here’s another user of fibs. Each of our servers have multiple fibs and jails with fibs. I like the proposed. Santi > On 23 Dec 2024, at 16:46, Paul Vixie wrote: > >  > On Monday, December 23, 2024 7:23:35 PM UTC Bjoern A. Zeeb wrote: > > On Sat, 21 Dec 2024, Bjoern A. Zeeb wrote: > >

Re: per-FIB socket binding

2024-12-23 Thread Paul Vixie
On Monday, December 23, 2024 7:23:35 PM UTC Bjoern A. Zeeb wrote: > On Sat, 21 Dec 2024, Bjoern A. Zeeb wrote: > >> Any thoughts/comments? > > > > That all said with your opt-in approach if the code itself doesn't bring > > too many new complications I'd be happy with it (assuming FIBs still > > h

Re: per-FIB socket binding

2024-12-23 Thread Bjoern A. Zeeb
On Sat, 21 Dec 2024, Bjoern A. Zeeb wrote: Any thoughts/comments? That all said with your opt-in approach if the code itself doesn't bring too many new complications I'd be happy with it (assuming FIBs still have a use case). Seems there's plenty people using multi-FIB in various scenarios s

Re: per-FIB socket binding

2024-12-23 Thread Vadim Goncharov
On Mon, 23 Dec 2024 13:29:01 +0300 "Andrey V. Elsukov" wrote: > On 21.12.2024 19:34, Bjoern A. Zeeb wrote: > > How much use are FIBs still these days?  Half of the original use cases > > I can think of could easily and better be overcome by using vnet jails > > with a physical or virtual interfac

Re: per-FIB socket binding

2024-12-23 Thread Andrey V. Elsukov
On 21.12.2024 19:34, Bjoern A. Zeeb wrote: How much use are FIBs still these days?  Half of the original use cases I can think of could easily and better be overcome by using vnet jails with a physical or virtual interface (e.g, vcc) being delegated to the vnet. I wonder if anyone on FreeBSD is

Re: per-FIB socket binding

2024-12-21 Thread Jamie Landeg-Jones
"Bjoern A. Zeeb" wrote: > I wonder if anyone on FreeBSD is using FIBs to actually have multi-FIB > forwardig but that very little touches your use case apart from the mgmt > which again can be factored out better (or inversely, factoring out the > forwarding). > > I would honestly know who and h

Re: per-FIB socket binding

2024-12-21 Thread Marek Zarychta
W dniu 21.12.2024 o 17:34, Bjoern A. Zeeb pisze: On Tue, 17 Dec 2024, Mark Johnston wrote: Lately I've been working on adding FIB awareness to bind(2) and inpcb lookup. Below I'll describe the project a bit.  Any feedback/comments/suggestions would be appreciated. Today, a TCP or UDP socket

Re: per-FIB socket binding

2024-12-21 Thread Vadim Goncharov
On Sat, 21 Dec 2024 16:34:25 + (UTC) "Bjoern A. Zeeb" wrote: > On Tue, 17 Dec 2024, Mark Johnston wrote: > > > Lately I've been working on adding FIB awareness to bind(2) and > > inpcb lookup. Below I'll describe the project a bit. Any > > feedback/comments/suggestions would be appreciated.

Re: per-FIB socket binding

2024-12-21 Thread Mark Johnston
On Sat, Dec 21, 2024 at 04:34:25PM +, Bjoern A. Zeeb wrote: > On Tue, 17 Dec 2024, Mark Johnston wrote: > > > Lately I've been working on adding FIB awareness to bind(2) and inpcb > > lookup. > > Below I'll describe the project a bit. Any feedback/comments/suggestions > > would > > be appre

Re: per-FIB socket binding

2024-12-21 Thread Konstantin Belousov
On Sat, Dec 21, 2024 at 04:34:25PM +, Bjoern A. Zeeb wrote: > On Tue, 17 Dec 2024, Mark Johnston wrote: > > > Lately I've been working on adding FIB awareness to bind(2) and inpcb > > lookup. > > Below I'll describe the project a bit. Any feedback/comments/suggestions > > would > > be appre

Re: per-FIB socket binding

2024-12-21 Thread Bjoern A. Zeeb
On Tue, 17 Dec 2024, Mark Johnston wrote: Lately I've been working on adding FIB awareness to bind(2) and inpcb lookup. Below I'll describe the project a bit. Any feedback/comments/suggestions would be appreciated. Today, a TCP or UDP socket can receive connections or datagrams from any FIB.