Super, thanks ! Laura
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Friday, October 1st, 2021 at 13:39, Theo de Raadt <[email protected]> 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 [email protected] 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 ?

