Setting up the QoS on your Ubiquiti EdgeRouter means that you will first need to test your bandwidth.
Please make sure to launch your tests outside of your business hours in order to obtain a proper evaluation of your bandwidth.
If you have any traffic shaping or firewall rules already set, you should deactivate them before launching this test.
-
Go to speedtest.net and launch three different tests in a row.
Now let's imagine that after running the tests, we received the following results:
-
Download 97Mbps / Upload 79Mbps
-
Download 90Mbps / Upload 84Mbps
-
Download 98Mbps / Upload 76Mbps
We will then take into consideration the lowest result, and keep 90Mbps in Download, and 76Mbps as the Upload speed.
Next, you will need to access your Ubiquiti EdgeRouter Pro CLI through the web interface, or using the ssh access.
ssh ubnt@192.168.1.1
Please write these rules:
If you do copy/paste these command lines, please only use the two first lines, then the download rule, the upload rule, and finish with the commit and save commands.
configuretop
# Setup of the aircall Download policyset traffic-policy shaper DlAircall description 'Aircall Download QoS policy'set traffic-policy shaper DlAircall bandwidth 79Mbitset traffic-policy shaper DlAircall class 2 description 'Class for Aircall servers IP address'# The value of your class must be at least -> (nb of aircall users) x (100Kbit)set traffic-policy shaper DlAircall class 2 bandwidth 5000Kbitset traffic-policy shaper DlAircall class 2 ceiling 100%set traffic-policy shaper DlAircall class 2 priority 7set traffic-policy shaper DlAircall class 2 match Aircall1 ip source address 54.252.254.64/26set traffic-policy shaper DlAircall class 2 match Aircall2 ip source address 52.65.191.160/27set traffic-policy shaper DlAircall class 2 match Aircall3 ip source address 52.65.127.160/27set traffic-policy shaper DlAircall class 2 match Aircall4 ip source address 52.205.63.192/26set traffic-policy shaper DlAircall class 2 match Aircall5 ip source address 177.71.206.192/26set traffic-policy shaper DlAircall class 2 match Aircall6 ip source address 54.233.255.192/27set traffic-policy shaper DlAircall class 2 match Aircall7 ip source address 54.233.191.0/27set traffic-policy shaper DlAircall class 2 match Aircall8 ip source address 54.171.127.192/26set traffic-policy shaper DlAircall class 2 match Aircall9 ip source address 52.215.127.0/24set traffic-policy shaper DlAircall class 2 match Aircall10 ip source address 35.156.191.128/25set traffic-policy shaper DlAircall class 2 match Aircall11 ip source address 52.58.255.224/27set traffic-policy shaper DlAircall class 2 match Aircall12 ip source address 52.59.63.224/27set traffic-policy shaper DlAircall class 2 match Aircall13 ip source address 54.65.63.192/26set traffic-policy shaper DlAircall class 2 match Aircall14 ip source address 54.169.127.128/26set traffic-policy shaper DlAircall class 2 match Aircall15 ip source address 52.220.63.128/26set traffic-policy shaper DlAircall class 2 match Aircall16 ip source address 54.172.60.0/23set traffic-policy shaper DlAircall class 2 match Aircall17 ip source address 34.203.250.0/23set traffic-policy shaper DlAircall class 2 match Aircall18 ip source address 52.9.254.64/26set traffic-policy shaper DlAircall class 2 match Aircall19 ip source address 3.122.181.0/24 # Remaining of your bandwidth come hereset traffic-policy shaper DlAircall default bandwidth 74Mbitset traffic-policy shaper DlAircall default ceiling 100%
#Setup of the aircall Upload policyset traffic-policy shaper UlAircall description 'Aircall Download QoS policy'set traffic-policy shaper UlAircall bandwidth 74Mbitset traffic-policy shaper UlAircall class 2 description 'Class for Aircall servers IP address'# The value of your class must be at least -> (nb of aircall users) x (100Kbit)set traffic-policy shaper UlAircall class 2 bandwidth 5000Kbitset traffic-policy shaper UlAircall class 2 ceiling 100%set traffic-policy shaper UlAircall class 2 priority 7set traffic-policy shaper UlAircall class 2 match Aircall1 ip destination address 54.252.254.64/26set traffic-policy shaper UlAircall class 2 match Aircall2 ip destination address 52.65.191.160/27set traffic-policy shaper UlAircall class 2 match Aircall3 ip destination address 52.65.127.160/27set traffic-policy shaper UlAircall class 2 match Aircall4 ip destination address 52.205.63.192/26set traffic-policy shaper UlAircall class 2 match Aircall5 ip destination address 177.71.206.192/26set traffic-policy shaper UlAircall class 2 match Aircall6 ip destination address 54.233.255.192/27set traffic-policy shaper UlAircall class 2 match Aircall7 ip destination address 54.233.191.0/27set traffic-policy shaper UlAircall class 2 match Aircall8 ip destination address 54.171.127.192/26set traffic-policy shaper UlAircall class 2 match Aircall9 ip destination address 52.215.127.0/24set traffic-policy shaper UlAircall class 2 match Aircall10 ip destination address 35.156.191.128/25set traffic-policy shaper UlAircall class 2 match Aircall11 ip destination address 52.58.255.224/27set traffic-policy shaper UlAircall class 2 match Aircall12 ip destination address 52.59.63.224/27set traffic-policy shaper UlAircall class 2 match Aircall13 ip destination address 54.65.63.192/26set traffic-policy shaper UlAircall class 2 match Aircall14 ip destination address 54.169.127.128/26set traffic-policy shaper UlAircall class 2 match Aircall15 ip destination address 52.220.63.128/26set traffic-policy shaper UlAircall class 2 match Aircall16 ip destination address 54.172.60.0/23set traffic-policy shaper UlAircall class 2 match Aircall17 ip destination address 34.203.250.0/23set traffic-policy shaper UlAircall class 2 match Aircall18 ip destination address 52.9.254.64/26set traffic-policy shaper UlAircall class 2 match Aircall19 ip destination address 3.122.181.0/24# Remaining of your bandwidth come hereset traffic-policy shaper UlAircall default bandwidth 69Mbitset traffic-policy shaper UlAircall default ceiling 100%# Apply policies to your interfaces # Here we assume eth1 is you internet interface and eth0 is your LAN interfaceset interfaces ethernet eth1 traffic-policy out UlAircallset interfaces ethernet eth0 traffic-policy out DlAircall
commitsave
Your router is now set to prioritize your Aircall communication! 🎉