On Thu, Jan 04, 2024 at 09:04:59AM +0100, Solène Rapenne wrote: > Le 03/01/2024 à 21:21, Alexander Okonnikov a écrit : > > Hi, > > Bonus: the third problem - while I use flag -n in 'netstat' command, > > default route is nevertheless displayed as 'default' rather than > > '0.0.0.0/0'. > > > > > > obsd-02# netstat -r -f inet | grep default > > default 100.64.5.254 UGS 0 415 - 8 vio0 > > obsd-02# netstat -rn -f inet | grep default > > default 100.64.5.254 UGS 0 419 - 8 vio0 > > obsd-02# > > Thanks in advance. > > > > IIRC In OpenBSD there is a difference between a route 0.0.0.0/0 and default > route, so if you have a default route and use netstat -n it will still be > displayed as default.
There should be no difference between the two. The netstat and route code just always uses 'default' no matter if -n is in use or not. > I noticed it when using OpenVPN, the traffic was going through the VPN with > its route 0.0.0.0/0 which seems to have a higher priority than default, and > within pf, egress refers to default which can be misleading in this > situation. I think that has more todo with route priorities. This is the way to ensure which route is preferred. -- :wq Claudio