d5cba0126ecc06b72dcef1860a741889f8cfc5a7
howto/wireguard.md
... | ... | @@ -124,6 +124,15 @@ Name=<ifname> |
124 | 124 | DHCP=no |
125 | 125 | IPv6AcceptRA=false |
126 | 126 | |
127 | +# for networkd >= 244 KeepConfiguration stops networkd from |
|
128 | +# removing routes on this interface when restarting |
|
129 | +KeepConfiguration=yes |
|
130 | + |
|
131 | +# for networkd < 244 the CriticalConnection parameter achieves |
|
132 | +# the same thing |
|
133 | +[DHCP] |
|
134 | +CriticalConnection=true |
|
135 | + |
|
127 | 136 | # if using link local addresses for peering |
128 | 137 | [Address] |
129 | 138 | Address=fe80::xx:xx:xx:xx/64 |
... | ... | @@ -139,4 +148,3 @@ Address=<your IPv4 address>/32 |
139 | 148 | Peer=<your peer's IPv4 address>/32 |
140 | 149 | ``` |
141 | 150 | |
142 | - |