OPNsense Forum

English Forums => Hardware and Performance => Topic started by: trottoluccia on December 03, 2017, 09:08:38 am

Title: Speed test plugin
Post by: trottoluccia on December 03, 2017, 09:08:38 am
Hi guys,
I'm noob of OPNsense...just installed...coming from Ubiquiti USG gateway and I'm trying to find a way to have a speed test in the OPNsense interface. Is it possible? I understand there are plugins but I don't understand ho to install them:-(
Thanks, M
Title: Re: Speed test plugin
Post by: fabian on December 03, 2017, 11:00:20 am
There is currently only a preview of an iperf3 plugin by me. In the next release a preview can be installed via the shell.

Code: [Select]
pkg install os-iperf-devel
It will create a server instance and you can connect via iperf in client mode using
Code: [Select]
iperf3 -c opnsense_ip -p port_given_in_gui
Please note that the firewall port will be only opened if an anchor is present in pf (reload pf rules once) and you are connecting from the right interface.
Title: Re: Speed test plugin
Post by: elektroinside on January 11, 2018, 12:51:18 am
Works great, i just needed to create the fw rule.

Thank you!
Title: Re: Speed test plugin
Post by: eblot on October 16, 2019, 06:02:18 pm
I'm not sure to understand how it works.

"Create instance" did work once, I ran one single test from a remote client.
Since then, "Create instance" does nothing, and no error is reported, not even in the logs...

Title: Re: Speed test plugin
Post by: eblot on October 16, 2019, 06:07:18 pm
... seeems to be a serious glitch with the web interface, as once logged w/ ssh on the firewall:


$ sudo ps ax | grep iperf
 5166  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 47228
 6810  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 21620
10044  -  Is        0:00.01 daemon: /usr/local/opnsense/scripts/iperf/ruby_iperf.rb[31907] (daemon)
13766  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 49993
18040  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 56380
24861  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 18637
29671  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 46277
31907  -  I         0:16.21 /usr/local/bin/ruby /usr/local/opnsense/scripts/iperf/ruby_iperf.rb (ruby25)
34005  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 45323
41878  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 21219
42206  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 60840
49153  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 50122
55355  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 8534
56201  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 50059
57661  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 13506
67526  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 60716
70999  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 18412
73970  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 7686
74117  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 17445
79278  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 19337
85331  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 57130
89359  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 50095
91130  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 29445
91260  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 22068
93542  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 17365
96449  -  I         0:00.01 iperf3 -J -f M -V -s -1 -p 57864
Title: Re: Speed test plugin
Post by: fabian on October 16, 2019, 06:45:48 pm
This are all running instances - you create them when you click on the create button. I guess you never connected them.