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

    Iperf not working between client and pfsense (server)

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 3.6k Views
    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.
    • K
      kevindd992002
      last edited by

      So I installed the iperf package on my pfsense server (pf1) and verified that it uses iperf v2.0.9. I installed the same package on another pfense server (pf2) located on another location. I ran iperf as a server on pf1, configured iperf to run as a client on pf2 and connect to pf1 to measure the bandwidth. Everything worked out just fine.

      I then downloaded the iperf v2.0.9 for Windows binaries so that I can run it as a client on a client machine in the same network/location as pf1. I run the iperf package again on pf1 manually in shell (iperf -s) so that I can see client connections. I opened command prompt in the client machine to run iperf, invoked "iperf -c <pfsense lan="" ip="">" and hit Enter. Nothing happens and it just returns to the prompt. There is also no output in the pfsense shell.

      When I try to invoke "telnet <pfsense lan="" ip="">5001" from the same command prompt, it successfully connects and I see an output in the pfsense shell. I've added iperf.exe in the Windows Firewall to make sure that no outgoing connections from it are blocked and still a no go.

      Any thoughts?</pfsense></pfsense>

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        So this client running iperf is on the actual lan of pfsense?

        Do a simple sniff (diag, packet capture) on pfsense lan, and try to connect from your client box running iperf.. Do you see the packets? If not then you have something blocking it on the client machine (software firewall) or something in the path between pfsense and the client blocking it.

        edit:
        I like to be current, so I just installed the current iperf 3.1.7 from the freebsd repository.  Seems the pfsense has 3.14.. anyway.. I don't show any issues connecting to iperf from lan client.

        [2.3.3-RELEASE][root@pfsense.local.lan]/tmp: iperf3 -s
        –---------------------------------------------------------
        Server listening on 5201

        Accepted connection from 192.168.9.7, port 37568
        [  5] local 192.168.9.253 port 5201 connected to 192.168.9.7 port 37570

        Iperf3 listens and uses 5201 vs 5001.  Maybe your windows client is actually iperf3 version and your server is the old 2.0.9..

        Have to post for pfsense to update their repository for current stuff ;)

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • K
          kevindd992002
          last edited by

          @johnpoz:

          So this client running iperf is on the actual lan of pfsense?

          Do a simple sniff (diag, packet capture) on pfsense lan, and try to connect from your client box running iperf.. Do you see the packets? If not then you have something blocking it on the client machine (software firewall) or something in the path between pfsense and the client blocking it.

          edit:
          I like to be current, so I just installed the current iperf 3.1.7 from the freebsd repository.  Seems the pfsense has 3.14.. anyway.. I don't show any issues connecting to iperf from lan client.

          [2.3.3-RELEASE][root@pfsense.local.lan]/tmp: iperf3 -s
          –---------------------------------------------------------
          Server listening on 5201

          Accepted connection from 192.168.9.7, port 37568
          [  5] local 192.168.9.253 port 5201 connected to 192.168.9.7 port 37570

          Iperf3 listens and uses 5201 vs 5001.  Maybe your windows client is actually iperf3 version and your server is the old 2.0.9..

          Have to post for pfsense to update their repository for current stuff ;)

          Correct, the actual client is on the LAN of pfsense.

          Yeah, let me do a packet capture and check. It could be the Trend Micro Antivirus Security that causes it too so I'll concentrate on that.

          Oh, believe me I also want to keep things always updated. Initially, I downloaded iperf3 for Windows but realized that the version included in the pfsense iperf package is v2.0.9 so I had to download the iperf for Windows with the same version. So, I'm sure they're of the same version :)

          Yes, please have them update their repository, it's always one step behind (which I guess is normal).

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            Nice to see freebsd having 3.17 of iperf, but there was not real change from 3.1.6 - .7 was just some typo/doc changes nothing operational.

            If you want the current windows version I compile a new version when it comes out and make it open to the public internet.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

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