On 2021-02-26, Daniel Jakots <danj@chown.me> wrote:
> On Fri, 26 Feb 2021 11:53:40 +0100 (CET), Rachel Roch
><rroch@tutanota.de> 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] sourceaddr [-inet|-inet6] -ifp interface
Use with care though, this can be a footgun (especially if you are
connecting from there to other local machines with "strict host model").
If you want something more targetted then nat-to is one option.
No comments:
Post a Comment