Re: What determines source IP of traffic from OpenBSD box ?

2021-02-28 Thread David Gwynne
On Sun, Feb 28, 2021 at 01:17:01PM +0100, Rachel Roch wrote: > > > > 28 Feb 2021, 11:28 by s...@spacehopper.org: > > > On 2021/02/28 11:46, Rachel Roch wrote: > > > >> Thank you all for the suggestions, I am currently testing a few of them. > >> > >> Incase it makes any difference, the

Re: What determines source IP of traffic from OpenBSD box ?

2021-02-28 Thread Rachel Roch
28 Feb 2021, 11:28 by s...@spacehopper.org: > On 2021/02/28 11:46, Rachel Roch wrote: > >> Thank you all for the suggestions, I am currently testing a few of them. >> >> Incase it makes any difference, the underlying problem I have is I have two >> firewalls with BGP upstreams, one acting as

Re: What determines source IP of traffic from OpenBSD box ?

2021-02-28 Thread Rachel Roch
Thank you all for the suggestions, I am currently testing a few of them. Incase it makes any difference, the underlying problem I have is I have two firewalls with BGP upstreams, one acting as primary, one as standby.  So the problem I am seeing is the age-old problem of asymmetric traffic to

Re: What determines source IP of traffic from OpenBSD box ?

2021-02-28 Thread Stuart Henderson
On 2021/02/28 11:46, Rachel Roch wrote: > Thank you all for the suggestions, I am currently testing a few of them. > > Incase it makes any difference, the underlying problem I have is I have two > firewalls with BGP upstreams, one acting as primary, one as standby.  So the > problem I am seeing

Re: What determines source IP of traffic from OpenBSD box ?

2021-02-26 Thread Stuart Henderson
On 2021-02-26, Daniel Jakots wrote: > On Fri, 26 Feb 2021 11:53:40 +0100 (CET), Rachel Roch > wrote: > >> Let's say I'm running "pkg_add -u" on a OpenBSD-based router with >> multiple interfaces. >> >> What determines the source IP ? > > On -current there is > route [-T rtable] sourceaddr

Re: What determines source IP of traffic from OpenBSD box ?

2021-02-26 Thread Ashton Fagg
Remco writes: > I've never used this myself, so this is just an idea, Maybe setting up > a routing domain and running pkg_add using route(8)'s "exec" command > will do the job ? Yup. route -T exec works well. I use it for one my home servers that serves stuff out over a Wireguard tunnel.

What determines source IP of traffic from OpenBSD box ?

2021-02-26 Thread Rachel Roch
Hi Let's say I'm running "pkg_add -u" on a OpenBSD-based router with multiple interfaces. What determines the source IP ? Building on that, there is no "source interface" flag for pkg_add like there is for ping and certain others.  Is there a way for me to configure a default interface for

Re: What determines source IP of traffic from OpenBSD box ?

2021-02-26 Thread Remco
On 26-02-2021 11:53, Rachel Roch wrote: Hi Let's say I'm running "pkg_add -u" on a OpenBSD-based router with multiple interfaces. What determines the source IP ? Building on that, there is no "source interface" flag for pkg_add like there is for ping and certain others.  Is there a way for

Re: What determines source IP of traffic from OpenBSD box ?

2021-02-26 Thread Daniel Jakots
On Fri, 26 Feb 2021 11:53:40 +0100 (CET), Rachel Roch wrote: > Let's say I'm running "pkg_add -u" on a OpenBSD-based router with > multiple interfaces. > > What determines the source IP ? On -current there is route [-T rtable] sourceaddr [-inet|-inet6] [address] route [-T rtable]

Re: What determines source IP of traffic from OpenBSD box ?

2021-02-26 Thread Zé Loff
On Fri, Feb 26, 2021 at 11:53:40AM +0100, Rachel Roch wrote: > Hi > > Let's say I'm running "pkg_add -u" on a OpenBSD-based router with > multiple interfaces. > > What determines the source IP ? I'd say the routing table. > Building on that, there is no "source interface" flag for pkg_add

Re: What determines source IP of traffic from OpenBSD box ?

2021-02-26 Thread Fred Crowson
Hi, pkg_add uses the $PKG_PATH environment variable to determine which source to use for packages, eg: wolf:fred ~: env |grep -i pkg PKG_PATH=https://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/ The interface used will be determined by the boxes routing table, so to specify an