flu0r1ne / wg2nd

wg2nd Mirror - This is an automatically maintained mirror of https://git.flu0r1ne.net/wg2nd/.
https://git.flu0r1ne.net/wg2nd/
GNU General Public License v2.0
1 stars 0 forks source link

Set `Scope=link` on ipv4 routing entries #5

Closed flu0r1ne closed 11 months ago

flu0r1ne commented 11 months ago

ipv4 routing entries should probably have Scope=link set.

Contributed by @itoffshore on aurweb

flu0r1ne commented 11 months ago

Either networkd or the kernel seems to set the scope to link on my machine, both for IPv4 and IPv6 routes. Here are some examples:

ip route show table 2088138254
default dev remote-net proto static scope link
ip route show main
192.168.112.0 dev flu0r1ne-net proto static scope link
192.168.112.0/30 dev flu0r1ne-net proto kernel scope link src 192.168.112.1

wg-quick doesn't seem to manually specify the scope. If the scope set by wg-quick and the networkd configuration do not match, please let me know and I will look into it further.

itoffshore commented 11 months ago

ok - it must be a default setting nowadays by networkd (previously the Arch wiki showed it as being needed)

I mentioned it after looking back at my old systemd-networkd config files

checking my route table wg-quick also sets the scope as link (so this issue can probably be closed)

flu0r1ne commented 11 months ago

Great. Thanks.