{"id":645,"date":"2020-02-07T09:52:47","date_gmt":"2020-02-07T08:52:47","guid":{"rendered":"http:\/\/www.tinone71.com\/wp\/?p=645"},"modified":"2020-02-07T09:52:48","modified_gmt":"2020-02-07T08:52:48","slug":"traffic-shaping-for-voip-on-pfsense-2-3","status":"publish","type":"post","link":"https:\/\/www.tinone71.com\/wp\/?p=645","title":{"rendered":"Traffic Shaping for VOIP on pfSense 2.3"},"content":{"rendered":"<div style=\"\" class=\"ssag-opads-main     \" ><\/div>\n<p>Time to prioritize our VOIP Traffic on pfSense! Follow this very short step-by-step tutorial for Traffic Shaping for VOIP on pfSense 2.3!It\u2019s time to set some bandwidth aside for our VOIP traffic. Why would you want to do that?<\/p>\n\n\n\n<p>Because let\u2019s assume you have a 50\/10 (Up\/Down)Mbit Internet connection and you use VOIP.<\/p>\n\n\n\n<p>Now a few clients start downloading some stuff or syncing Cloud Data and at the same time, a few people start to do a call.<\/p>\n\n\n\n<p>If you do not have Traffic Shaping, or Quality of Service as you will, set-up in your pfSense Firewall, you will likely experience a loss of quality or even a complete interruption of your phone connection.<\/p>\n\n\n\n<p>To avoid this we can use pfSense\u2019s own version of QOS: The Traffic Shaper.<\/p>\n\n\n\n<p>In this tutorial, I will show you in just a few steps how to set up Traffic Shaping using pfSense\u2019s Traffic Shaping Wizard.<\/p>\n\n\n\n<p>If you want some background information about the different protocols and how everything works or how to do everything from scratch, go ahead and&nbsp;<a href=\"https:\/\/www.youtube.com\/watch?v=rF46PNid1Mo&amp;t=3847s\" data-rel=\"lightbox-video-0\">watch Mark Furneaux\u2019s excellent Video on Traffic Shaper<\/a>&nbsp;(Also check out his other videos, they are incredible).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Part 1: Creating a Firewall Alias for your VOIP provider\u2019s Network<\/h3>\n\n\n\n<p>Alright, let\u2019s get started.<\/p>\n\n\n\n<p>Log in to your pfSense Firewall and Navigate to: Firewall \/ Aliases \/ IP<\/p>\n\n\n\n<p>Click on +Add.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_06_20.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_06_20-300x100.png?ezimgfmt=rs:292x157\/rscb5\/ng:webp\/ngcb5\" alt=\"Creating an Alias\" class=\"wp-image-1457\"\/><\/a><figcaption>Creating an Alias<\/figcaption><\/figure>\n\n\n\n<p>The Name you Enter under Name will be the Name of your Alias. So when we choose an IP Address or Alias later in our Traffic Shaper Wizard, you would enter the Name of the Alias.<\/p>\n\n\n\n<p>Fill everything out accordingly. Find out the Network your VOIP Provider uses and enter it under Network or FQDN.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_10_04.png\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_10_04-300x145.png?ezimgfmt=rs:292x201\/rscb5\/ng:webp\/ngcb5\" alt=\"Creating an Alias\" class=\"wp-image-1458\"\/><\/a><figcaption>Creating an Alias<\/figcaption><\/figure>\n\n\n\n<p>Click on Save and on Apply Changes once you are done.<\/p>\n\n\n\n<p>You should end up with something along those lines:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_12_40.png\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_12_40-300x132.png?ezimgfmt=rs:292x188\/rscb5\/ng:webp\/ngcb5\" alt=\"Creating an Alias\" class=\"wp-image-1459\"\/><\/a><figcaption>Creating an Alias<\/figcaption><\/figure>\n\n\n\n<p>That\u2019s it. Alias creation is done. I encourage you to use Aliases as much as possible for your Firewall Rules. Saves a ton of time. Play around with it a bit, it\u2019s really easy.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Part 2: Configuring the Traffic Shaper Wizard<\/h3>\n\n\n\n<p>Alright, time for some Wizardry (~_~). Navigate to Firewall \/ Traffic Shaper \/ Wizards and click on Multiple Lan\/Wan traffic_shaper_wizard_multi_all.xml<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_16_52.png\" data-rel=\"lightbox-image-3\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_16_52-300x113.png?ezimgfmt=rs:292x170\/rscb5\/ng:webp\/ngcb5\" alt=\"Running the Traffic Shaper Wizard\" class=\"wp-image-1461\"\/><\/a><figcaption>Running the Traffic Shaper Wizard<\/figcaption><\/figure>\n\n\n\n<p>Depending on your setup, adjust this accordingly.<\/p>\n\n\n\n<p>I have just 1 WAN and one LAN interface, so I select 1 and 1, click on Next.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_18_29.png\" data-rel=\"lightbox-image-4\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_18_29-300x139.png?ezimgfmt=rs:292x195\/rscb5\/ng:webp\/ngcb5\" alt=\"Running the Traffic Shaper Wizard\" class=\"wp-image-1462\"\/><\/a><figcaption>Running the Traffic Shaper Wizard<\/figcaption><\/figure>\n\n\n\n<p>Make sure your Upload and Download speed is set correctly, if you have an internet connection established on your pfSense, it should be set automatically.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_20_19.png\" data-rel=\"lightbox-image-5\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_20_19-300x186.png?ezimgfmt=rs:292x241\/rscb5\/ng:webp\/ngcb5\" alt=\"Running the Traffic Shaper Wizard\" class=\"wp-image-1463\"\/><\/a><figcaption>Running the Traffic Shaper Wizard<\/figcaption><\/figure>\n\n\n\n<p>The next Step really depends on how many users you have on your network. In my network, it\u2019s highly unlikely that more than 5 people will have a phone call at the same time. So I set the limits to 1Mbit\/s Up\/Down.<\/p>\n\n\n\n<p>It\u2019s really hard to generalize but by the rule of thumb you can assume the following traffic rules:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td><strong>Number of Concurrent Calls<\/strong><\/td><td><strong>Minimum Required Bandwith<\/strong><\/td><td><strong>Recommended Speed<\/strong><\/td><\/tr><tr><td>1<\/td><td>100 Kbps Up and Down<\/td><td>3 MBps Up and Down<\/td><\/tr><tr><td>3<\/td><td>300 Kbps Up and Down<\/td><td>3 MBps Up and Down<\/td><\/tr><tr><td>5<\/td><td>500 Kbps Up and Down<\/td><td>5 MBps Up and Down<\/td><\/tr><tr><td>10<\/td><td>1 MBps Up and Down<\/td><td>5-10 MBps Up and Down<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Source: phone.com (Although I find the Recommended speeds set way too high, so just take it with a grain of salt.<\/p>\n\n\n\n<p>Next, we gonna set the bandwidth we want to reserve for our VOIP traffic.<\/p>\n\n\n\n<p>For Upstream SIP Server enter the Name of the Alias you created earlier for your VOIP Provider\u2019s Network.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_29_18.png\" data-rel=\"lightbox-image-6\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_29_18-300x188.png?ezimgfmt=rs:292x243\/rscb5\/ng:webp\/ngcb5\" alt=\"Running the Traffic Shaper Wizard\" class=\"wp-image-1464\"\/><\/a><figcaption>Running the Traffic Shaper Wizard<\/figcaption><\/figure>\n\n\n\n<p>Click Next and Click on Next until you come to the End of the Wizard. All the rest stays on default. Again, for an explanation of each page watch Mark\u2019s Video&nbsp;<\/p>\n\n\n\n<p>When the Filter was reloaded, Navigate to Firewall \/ Rules \/ Floating<\/p>\n\n\n\n<p>You should have 2 rules in here now if all went well.<\/p>\n\n\n\n<p>You can now start a phone call and check if the States Size is going to move. If it does, you are set.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_33_34.png\" data-rel=\"lightbox-image-7\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"https:\/\/www.ceos3c.com\/wp-content\/uploads\/2017\/09\/2017-09-13-14_33_34-300x117.png?ezimgfmt=rs:292x174\/rscb5\/ng:webp\/ngcb5\" alt=\"Running the Traffic Shaper Wizard\" class=\"wp-image-1465\"\/><\/a><figcaption>Running the Traffic Shaper Wizard<\/figcaption><\/figure>\n\n\n\n<p>And that\u2019s it! You have now prioritized your VOIP Traffic using Traffic Shaper.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Time to prioritize our VOIP Traffic on pfSense! Follow this very short step-by-step tutorial for Traffic Shaping 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\/645"}],"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=645"}],"version-history":[{"count":1,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/645\/revisions"}],"predecessor-version":[{"id":646,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/645\/revisions\/646"}],"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=645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}