fix
This commit is contained in:
parent
d547d2f567
commit
69d24d2e7f
4 changed files with 12 additions and 23 deletions
|
|
@ -29,4 +29,15 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
systemd.services.hotspot-routing = {
|
||||
after = [ "wg-quick-awg0.service" ];
|
||||
path = [ pkgs.iproute2 ];
|
||||
preStop = "ip rule del from 10.1.0.0/16 lookup main";
|
||||
requiredBy = [ "wg-quick-awg0.service" ];
|
||||
script = "ip rule add from 10.1.0.0/16 lookup main";
|
||||
serviceConfig = {
|
||||
RemainAfterExit = true;
|
||||
Type = "oneshot";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue