In other words, nat-helper cannot be easily run as a systemd service on Linux because of this. Normally, systemd connects the stdin of the program to /dev/null. However, nat-helper immediately exits when run as systemd service. You can emulate the systemd behavior when running nat-helper like this:
In other words, nat-helper cannot be easily run as a systemd service on Linux because of this. Normally, systemd connects the stdin of the program to
/dev/null
. However, nat-helper immediately exits when run as systemd service. You can emulate the systemd behavior when running nat-helper like this:If there is no need to read something from stdin, nat-helper shouldn't care to what kind of stdin it is connected to. It should simply run.
As a work-ardound, this can be added to the systemd service unit file to make nat-helper run under systemd:
(as documented here ).
BTW: this is the whole systemd service unit file I use for nat-helper: