tailscale: log added/removed routes
This commit is contained in:
@@ -127,13 +127,13 @@ in
|
|||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
for addr in ${lib.concatStringsSep " " routableSubnets}; do
|
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
|
done
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
systemd.services.tailscaled.preStop = ''
|
systemd.services.tailscaled.preStop = ''
|
||||||
for addr in ${lib.concatStringsSep " " routableSubnets}; do
|
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
|
done
|
||||||
'';
|
'';
|
||||||
# systemd.network.networks."50-tailscale" = {
|
# systemd.network.networks."50-tailscale" = {
|
||||||
|
Reference in New Issue
Block a user