Friday, October 01, 2021

Re: BGPD and source interface

If you want more fine-grained control (for example if you don't have
full out-of-band console access across your network and might need to
hop between local network addresses to reach other routers during an
IGP failure), you can alternatively use PF to nat to the preferred
address just in the places where you specifically want it.


On 2021-10-01, Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch> wrote:
> Super, thanks !
>
> Laura
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
> On Friday, October 1st, 2021 at 13:39, Theo de Raadt <deraadt@openbsd.org> wrote:
>
>> route [-T rtable] sourceaddr [-inet|-inet6] [address]
>> route [-T rtable] sourceaddr [-inet|-inet6] -ifp interface
>> Set the preferred source address. If address is the word
>> "default", 0.0.0.0 or ::, source address will be chosen by
>> the kernel for the matching address family. When address is
>> omitted, preferred source address is printed if set. If -ifp
>> is used, source will use IP assigned to interface. The
>> preferred source will not be used when:
>>
>>
>> o destination is on-link
>>
>> o source address is assigned to a disabled interface
>>
>> This is best used as a !route command in a hostname.* file.
>>
>> Laura Smith n5d9xq3ti233xiyif2vp@protonmail.ch wrote:
>>
>> > Could somebody kindly remind me how to force OpenBSD to use the lo0 alias for outbound traffic ?
>> >
>> > I've got an OpenBSD instance which is getting its default route via bgpd.
>> >
>> > ping 8.8.8.8 does not work
>> >
>> > but
>> >
>> > ping -I $lo0_alias works
>> >
>> > How can I tell OpenBSD to use the lo0 as default outbound interface instead of the LAN IP ?
>
>


--
Please keep replies on the mailing list.

No comments:

Post a Comment