{"id":647,"date":"2020-02-07T10:00:04","date_gmt":"2020-02-07T09:00:04","guid":{"rendered":"http:\/\/www.tinone71.com\/wp\/?p=647"},"modified":"2020-02-07T10:00:06","modified_gmt":"2020-02-07T09:00:06","slug":"pfsense-speedtest-from-gui","status":"publish","type":"post","link":"https:\/\/www.tinone71.com\/wp\/?p=647","title":{"rendered":"pfsense speedtest from GUI"},"content":{"rendered":"<div style=\"\" class=\"ssag-opads-main     \" ><\/div>\n<h1 class=\"wp-block-heading\">STEP BY STEP<\/h1>\n\n\n\n<p>.<\/p>\n\n\n\n<p>Login into pfSense and Go to&nbsp;<strong>Diagnostics &gt; Command Prompt.<\/strong><\/p>\n\n\n\n<p>Install SpeedTest-CLI command-line interface for testing internet bandwidth using speedtest.net.<ins><\/ins><\/p>\n\n\n\n<p>We\u2019ll do this by pasting the following command into the&nbsp;<strong>\u2018Execute Shell Command\u2019<\/strong>&nbsp;box and press the&nbsp;<strong>\u2018Execute\u2019<\/strong>&nbsp;button.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>1<\/td><td>pkg update ; pkg install -y py27-speedtest-cli<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.joe0.com\/wp-content\/uploads\/2019\/11\/img_5dd12fb82f9df.png\" alt=\"\" class=\"wp-image-4407\"\/><\/figure>\n\n\n\n<p><a href=\"https:\/\/github.com\/sivel\/speedtest-cli\" target=\"_blank\" rel=\"noreferrer noopener\">Speedtest-CLI<\/a>&nbsp;package will be installed into<strong>&nbsp;\/usr\/local\/bin<\/strong>&nbsp;directory, which (by default) is already on PATH in FreeBSD.<\/p>\n\n\n\n<p>So once the above is done, we can simply clear the \u2018Execute Shell Command\u2019 box, type in the \u2018<em>speedtest<\/em>\u2018 command and press the \u2018Execute\u2019 button.<ins><\/ins><\/p>\n\n\n\n<p>The result of the SpeedTest.net test executed directly on your pfSense router\u2019s WAN connection will be displayed on the screen:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.joe0.com\/wp-content\/uploads\/2019\/11\/img_5dd131489a7ec.png\" alt=\"\" class=\"wp-image-4408\"\/><\/figure>\n\n\n\n<p>And that\u2019s pretty much it.<\/p>\n\n\n\n<p>Note: If you do not want to do this through GUI, run the same commands directly in the command-line interface of pfSense, by using the command line option #8:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.joe0.com\/wp-content\/uploads\/2019\/11\/img_5dcab5b7bb566.png\" alt=\"\" class=\"wp-image-4361\"\/><\/figure>\n\n\n\n<p>It\u2019s just 3 commands:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>12345<\/td><td>pkg update&nbsp;pkg install -y py27-speedtest-cli&nbsp;speedtest<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>I hope this helped.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>If you\u2019re planning to configure it as a cron job and output the results into CSV, you can run it as a parsed result file<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>1<\/td><td>speedtest | awk -v FS=&#8221;(: | ms| Mbit\/s)&#8221; &#8216;{print $2}&#8217; | tr &#8216;\\n&#8217; &#8216;,&#8217; | sed &#8216;s\/^&#8230;..\/\/&#8217; | sed &#8216;s\/.\\{2\\}$\/\/&#8217; | sed &#8216;s\/,\\{2,\\}\/,\/g&#8217;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The results will show as a comma-separated output with three values (PING in milliseconds, DOWNLOAD in Mbps and UPLOAD in Mbps):<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.joe0.com\/wp-content\/uploads\/2019\/11\/img_5dd23ebe7824c.png\" alt=\"\" class=\"wp-image-4414\"\/><\/figure>\n\n\n\n<p>This could set someone with a little more time on the right path. Just append \u2018&gt;&gt; speedtest.txt\u2019 to the end of the above command and it\u2019ll save the result to a text file.Or another way is to simply use the native CSV output and run:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>1<\/td><td>speedtest &#8211;csv-header; speedtest &#8211;csv<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.joe0.com\/wp-content\/uploads\/2019\/11\/img_5dd2cb7868197.png\" alt=\"\" class=\"wp-image-4417\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>STEP BY STEP . Login into pfSense and Go to&nbsp;Diagnostics &gt; Command Prompt. Install SpeedTest-CLI command-line interface for<\/p>\n","protected":false},"author":1,"featured_media":639,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[11,27],"tags":[],"_links":{"self":[{"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/647"}],"collection":[{"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=647"}],"version-history":[{"count":1,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/647\/revisions"}],"predecessor-version":[{"id":648,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/647\/revisions\/648"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/media\/639"}],"wp:attachment":[{"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}