tailscale: log added/removed routes
This commit is contained in:
@@ -127,13 +127,13 @@ in
|
||||
sleep 2
|
||||
done
|
||||
for addr in ${lib.concatStringsSep " " routableSubnets}; do
|
||||
${ip} route add table main "$addr" dev tailscale0 scope global
|
||||
(set -x ; ${ip} route add table main "$addr" dev tailscale0 scope global)
|
||||
done
|
||||
'')
|
||||
];
|
||||
systemd.services.tailscaled.preStop = ''
|
||||
for addr in ${lib.concatStringsSep " " routableSubnets}; do
|
||||
${ip} route del table main "$addr" dev tailscale0 scope global || true
|
||||
(set -x ; ${ip} route del table main "$addr" dev tailscale0 scope global) || true
|
||||
done
|
||||
'';
|
||||
# systemd.network.networks."50-tailscale" = {
|
||||
|
Reference in New Issue
Block a user