Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Netgate 6100 pfSense 23.09.1 - can I get the iperf3 server to always start on system boot?

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 4 Posters 751 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      ChrisJenk
      last edited by ChrisJenk

      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.

      P 1 Reply Last reply Reply Quote 0
      • P Offline
        Popolou @ChrisJenk
        last edited by Popolou

        @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?

        1 Reply Last reply Reply Quote 0
        • stephenw10S Offline
          stephenw10 Netgate Administrator
          last edited by

          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

          C 1 Reply Last reply Reply Quote 2
          • C Offline
            ChrisJenk @stephenw10
            last edited by

            @stephenw10 @Popolou Thanks, shellcmd seems the way to go.

            1 Reply Last reply Reply Quote 1
            • B Offline
              bpmartin
              last edited by

              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. 😆

              1 Reply Last reply Reply Quote 2
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.