On 3/22/22 16:21, Anthony Carrico wrote:
      ${pkgs.miniupnpc}/bin/upnpc -e "name of service" -d port-external UDP &       ${pkgs.miniupnpc}/bin/upnpc -e "name of service" -d port-external TCP

Cut and paste error, that is actually an '&'. Obviously you also need to set the port-internal/external values...

      ${pkgs.miniupnpc}/bin/upnpc -e "name of service" -r port-internal port-external UDP port-internal port-external TCP

... and probably add your desired lease time here...

       OnUnitInactiveSec = "1m";

...and here. One minute was just for testing. And you could get fancy and put igd-nat.service on yet another timer unit to bring the whole thing up according to the day of week, time of day, etc. This is good for ssh, murmur/mumble, and other services. Embrace systemd :).

--
Anthony Carrico

Reply via email to