make natpmp module thing work
This commit is contained in:
parent
c6df96cfea
commit
d84d25bf0c
3 changed files with 31 additions and 37 deletions
|
|
@ -1,17 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
systemd.services.ssh-port2050-natpmp = {
|
||||
bindsTo = ["sshd.socket"];
|
||||
after = ["sshd.socket"];
|
||||
wantedBy = ["multi-user.target"];
|
||||
serviceConfig.Restart = "on-failure";
|
||||
serviceConfig.ExecStart = pkgs.writeScript "ssh-port2050-natpmp" ''
|
||||
#!${pkgs.bash}/bin/bash
|
||||
|
||||
while true
|
||||
do
|
||||
${pkgs.libnatpmp}/bin/natpmpc -a 2050 22 tcp 60
|
||||
${pkgs.coreutils}/bin/sleep 30
|
||||
done
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue