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.

Now let's imagine that after running the tests, we received the following results:

  1.  Download 97Mbps / Upload 79Mbps
  2.  Download 90Mbps / Upload 84Mbps
  3.  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'll 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 this command lines, please only use the two first lines, then the download rule, the upload rule, and finish with the commit and save commands.

configure
top
# Setup of the aircall Download policy

set traffic-policy shaper DlAircall description "Aircall Download QoS policy"

set traffic-policy shaper DlAircall bandwidth 79Mbit

set 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 5000Kbit

set traffic-policy shaper DlAircall class 2 ceiling 100%

set traffic-policy shaper DlAircall class 2 priority 7

set traffic-policy shaper DlAircall class 2 match Aircall1 ip source address 54.252.254.64/26

set traffic-policy shaper DlAircall class 2 match Aircall2 ip source address 52.65.191.160/27

set traffic-policy shaper DlAircall class 2 match Aircall3 ip source address 52.65.127.160/27

set traffic-policy shaper DlAircall class 2 match Aircall4 ip source address 52.205.63.192/26

set traffic-policy shaper DlAircall class 2 match Aircall5 ip source address 177.71.206.192/26

set traffic-policy shaper DlAircall class 2 match Aircall6 ip source address 54.233.255.192/27

set traffic-policy shaper DlAircall class 2 match Aircall7 ip source address 54.233.191.0/27

set traffic-policy shaper DlAircall class 2 match Aircall8 ip source address 54.171.127.192/26

set traffic-policy shaper DlAircall class 2 match Aircall9 ip source address 52.215.127.0/24

set traffic-policy shaper DlAircall class 2 match Aircall10 ip source address 35.156.191.128/25

set traffic-policy shaper DlAircall class 2 match Aircall11 ip source address 52.58.255.224/27

set traffic-policy shaper DlAircall class 2 match Aircall12 ip source address 52.59.63.224/27

set traffic-policy shaper DlAircall class 2 match Aircall13 ip source address 54.65.63.192/26

set traffic-policy shaper DlAircall class 2 match Aircall14 ip source address 54.169.127.128/26

set traffic-policy shaper DlAircall class 2 match Aircall15 ip source address 52.220.63.128/26

set traffic-policy shaper DlAircall class 2 match Aircall16 ip source address 54.172.60.0/23

set traffic-policy shaper DlAircall class 2 match Aircall17 ip source address 34.203.250.0/23

set traffic-policy shaper DlAircall class 2 match Aircall18 ip source address 52.9.254.64/26

set traffic-policy shaper DlAircall class 2 match Aircall19 ip source address 3.122.181.0/24

# Remaining of your bandwidth come here

set traffic-policy shaper DlAircall default bandwidth 74Mbit

set traffic-policy shaper DlAircall default ceiling 100%

 

#Setup of the aircall Upload policy

set traffic-policy shaper UlAircall description "Aircall Download QoS policy"

set traffic-policy shaper UlAircall bandwidth 74Mbit

set 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 5000Kbit

set traffic-policy shaper UlAircall class 2 ceiling 100%

set traffic-policy shaper UlAircall class 2 priority 7

set traffic-policy shaper UlAircall class 2 match Aircall1 ip destination address 54.252.254.64/26

set traffic-policy shaper UlAircall class 2 match Aircall2 ip destination address 52.65.191.160/27

set traffic-policy shaper UlAircall class 2 match Aircall3 ip destination address 52.65.127.160/27

set traffic-policy shaper UlAircall class 2 match Aircall4 ip destination address 52.205.63.192/26

set traffic-policy shaper UlAircall class 2 match Aircall5 ip destination address 177.71.206.192/26

set traffic-policy shaper UlAircall class 2 match Aircall6 ip destination address 54.233.255.192/27

set traffic-policy shaper UlAircall class 2 match Aircall7 ip destination address 54.233.191.0/27

set traffic-policy shaper UlAircall class 2 match Aircall8 ip destination address 54.171.127.192/26

set traffic-policy shaper UlAircall class 2 match Aircall9 ip destination address 52.215.127.0/24

set traffic-policy shaper UlAircall class 2 match Aircall10 ip destination address 35.156.191.128/25

set traffic-policy shaper UlAircall class 2 match Aircall11 ip destination address 52.58.255.224/27

set traffic-policy shaper UlAircall class 2 match Aircall12 ip destination address 52.59.63.224/27

set traffic-policy shaper UlAircall class 2 match Aircall13 ip destination address 54.65.63.192/26

set traffic-policy shaper UlAircall class 2 match Aircall14 ip destination address 54.169.127.128/26

set traffic-policy shaper UlAircall class 2 match Aircall15 ip destination address 52.220.63.128/26

set traffic-policy shaper UlAircall class 2 match Aircall16 ip destination address 54.172.60.0/23

set traffic-policy shaper UlAircall class 2 match Aircall17 ip destination address 34.203.250.0/23

set traffic-policy shaper UlAircall class 2 match Aircall18 ip destination address 52.9.254.64/26

set traffic-policy shaper UlAircall class 2 match Aircall19 ip destination address 3.122.181.0/24

# Remaining of your bandwidth come here

set traffic-policy shaper UlAircall default bandwidth 69Mbit

set 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 interface

set interfaces ethernet eth1 traffic-policy out UlAircall

set interfaces ethernet eth0 traffic-policy out DlAircall
commit
save

Your router is now set to prioritize your Aircall communication!

Still in need of assistance? Please feel free to reach out to the Support Team and we’ll be happy to assist!

Did this answer your question?