Netgate 6100 pfSense 23.09.1 - can I get the iperf3 server to always start on system boot?
-
Netgate 6100 running 23.09.1 with iperf package installed. I want the iperf3 server to always be running, but whenever I restart the unit (not often admittedly) it 'loses' the port and interval settings and the iperf3 server does not start automatically.
Is there any way to overcome this so that the iperf3 server retains its configuration and always starts when the system boots?
Thanks.
-
@ChrisJenk Perhaps install the CRON package and add an @reboot entry with
sleep 60 && /path/to/iperf3script.sh
and add what you need in that file? -
Hmm, yeah the gui pkg doesn't ever expect to run continually like that.
You can start it at boot using a shellcmd or rc script:
https://docs.netgate.com/pfsense/en/latest/development/boot-commands.html -
@stephenw10 @Popolou Thanks, shellcmd seems the way to go.
-
Regarding using shellcmd to start the iperf3 server ... be sure to include the "-D" option or your boot-up will hang in difficult-to-identify ways. My start-up command in shellcmd is
iperf3 -s -D
If you look at your firewall console and don't see your usual menu or login prompt after setting iperf3 to start on boot, a Ctrl-C will get you unstuck. If this sounds like the result of a painful experience ... well, yes.