jedisct1 / dsvpn

A Dead Simple VPN.
MIT License
5.17k stars 395 forks source link

Fix default external iface on FreeBSD #39

Closed bapt closed 5 years ago

bapt commented 5 years ago

FreeBSD netstat -rn output is different from OpenBSD, the field to use would be the 4th field and not the 8th field like on OpenBSD. FreeBSD auto allow to direct query for a given route (including default) so let's directly use the direct query instead of using netstat -rn

jedisct1 commented 5 years ago

Thanks bapt! In fact the same command works on OpenBSD, too.