Re: load balancing with rdomains

2023-12-18 Thread Marko Cupać
On Mon, 18 Dec 2023 14:08:04 +0100 Claudio Jeker wrote: > On Mon, Dec 18, 2023 at 01:53:50PM +0100, Marko Cupać wrote: > > What OpenBSD FAQ https://www.openbsd.org/faq/faq6.html#Multipath > > says for a bit different scenario applies to some extent for this > > one as well: > > > > "It's worth

Re: load balancing with rdomains

2023-12-18 Thread Claudio Jeker
On Mon, Dec 18, 2023 at 01:53:50PM +0100, Marko Cupać wrote: > On Sat, 16 Dec 2023 18:53:29 +0100 > Petr Ročkai wrote: > > > Hi, > > > > On Sat, Dec 16, 2023 at 06:37:54PM +0100, Marko Cupać wrote: > > > pass in on em0 from (em0:network) to probability 50% > > > rtable 1 pass in on em0 from

Re: load balancing with rdomains

2023-12-18 Thread Marko Cupać
On Sat, 16 Dec 2023 18:53:29 +0100 Petr Ročkai wrote: > Hi, > > On Sat, Dec 16, 2023 at 06:37:54PM +0100, Marko Cupać wrote: > > pass in on em0 from (em0:network) to probability 50% > > rtable 1 pass in on em0 from (em0:network) to probability > > 50% rtable 2 > > IIUIC these two only add

Re: load balancing with rdomains

2023-12-17 Thread Stuart Henderson
On 2023-12-16, Petr Ročkai wrote: > Hi, > > On Sat, Dec 16, 2023 at 06:37:54PM +0100, Marko Cupać wrote: >> pass in on em0 from (em0:network) to probability 50% rtable 1 >> pass in on em0 from (em0:network) to probability 50% rtable 2 > > IIUIC these two only add up to 75% probability – you

Re: load balancing with rdomains

2023-12-16 Thread Petr Ročkai
Hi, On Sat, Dec 16, 2023 at 06:37:54PM +0100, Marko Cupać wrote: > pass in on em0 from (em0:network) to probability 50% rtable 1 > pass in on em0 from (em0:network) to probability 50% rtable 2 IIUIC these two only add up to 75% probability – you presumably want probability 50% on the second

Re: load balancing with rdomains

2023-12-16 Thread Nowarez Market
Normally, standard pc conf, I would suggest to browse Peter or my blog suggestion: 20230929 15:16 ( https://bsdload.com/bsd/?blogSP=30 ) My solution taken from "Building Linux and OpenBSD Firewalls" (see Internet Archive) to solve the no traffic prb caused by inserting the default "block in

Re: load balancing with rdomains

2023-12-16 Thread Marko Cupać
On Sat, 16 Dec 2023 10:25:07 - (UTC) Stuart Henderson wrote: > See "probability" in pf.conf(5). Thank you for the tip. My test ruleset: ---start--- block log all pass in on em0 from (em0:network) to pass in on em0 from (em0:network) to probability 50% rtable 1 pass in on em0 from

Re: load balancing with rdomains

2023-12-16 Thread Stuart Henderson
On 2023-12-15, Marko Cupać wrote: > Hi, > > I have a router whose LAN interface is in default rdomain 0, ISP1 in > rdomain 1 and ISP2 in rdomain 2. Reason for this is a bit complicated, > involves wireguard tunneling, I will give more details if needed. > > LAN hosts can access Internet over ISP1

load balancing with rdomains

2023-12-15 Thread Marko Cupać
Hi, I have a router whose LAN interface is in default rdomain 0, ISP1 in rdomain 1 and ISP2 in rdomain 2. Reason for this is a bit complicated, involves wireguard tunneling, I will give more details if needed. LAN hosts can access Internet over ISP1 by means of: pass in on $if_lan from