Setting up Quality of Service (QoS) on your Ubiquiti EdgeRouter Pro for Aircall starts with testing your available bandwidth, then applying traffic shaping rules so Aircall traffic is prioritized.
Please follow the steps below and perform tests and changes outside business hours whenever possible.
Step 1: Run bandwidth tests
Before configuring QoS, you need to measure your actual internet bandwidth.
- Launch your tests outside of your business hours to obtain a proper evaluation of your bandwidth.
- If you have any traffic shaping or firewall rules already set, deactivate them before launching this test.
Steps:
- Go to speedtest.net.
- Run three different speed tests in a row.
- Note each download and upload result.
Example results:
- Download 97 Mbps / Upload 79 Mbps
- Download 90 Mbps / Upload 84 Mbps
- Download 98 Mbps / Upload 76 Mbps
You will then take into consideration the lowest result, and keep 90 Mbps for Download and 76 Mbps as the Upload speed.
Step 2: Access the EdgeRouter Pro CLI
You can access your Ubiquiti EdgeRouter Pro CLI through the web interface, or using SSH.
Example SSH command:
ssh ubnt@192.168.1.1
Step 3: Apply QoS configuration
You will now create the download and upload QoS policies and apply them to your interfaces.
If you copy and paste the command lines, only use:
- The first two lines (
configureandtop) - The download policy block
- The upload policy block
- The final
commitandsavecommands
Download policy 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%
Upload policy commands
# 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 interfaces
# Apply policies to your interfaces
# Here we assume eth1 is your 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
Final step
Once you have run the commands above and saved the configuration, your Ubiquiti EdgeRouter Pro is set to prioritize your Aircall communication.