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.

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.

Reply via email to