There are optional settings as well as necessary settings to setup a SonicWall appliance to allow VoIP traffic to and from RingFree’s servers. Each section that is not necessary will go be noted with “optional” in case you are having more issues with jitter or dropped packets on your network or if you want to truly separate the voice traffic from the LAN. In a simple environment or, if your network does not have managed switches, you can skip to the Enable Consistent NAT section and set the minimal settings there.
- SonicWall admin credentials
- VLAN setup for the voice network
- Accurate bandwidth numbers for the WAN (such as from speedtest.net)
- The number of phones behind the appliance
Create Voice Zone (optional)
- Login to SonicWall and navigate to Network
- Click on Zones and create a new zone for the voice traffic
- Click Add Zone and name the zone VOIP
- Set the security type to Trusted and select Allow Interface Trust
- Click OK to save
Create Interface (optional)
We need to create a VLAN tagged sub-interface (virtual interface).
- Navigate to Network and click on Interface
- Under Add Interface, select Virtual Interface
- Set the Zone to VOIP that we created earlier. Set the VLAN Tag to your voice VLAN on your switch.
- Set the Parent Interface to your XO or LAN interface or whichever one that connects to your switch.
- Change the Mode/IP Assignment to Static IP Mode
- Set an IP for the router that is not on the same subnet as the LAN. If the LAN is 192.168.1.1, set the IP to something like 192.168.2.1
- Enable management by selected HTTP or HTTPS. If you don’t want management on this interface, at the very least enable Ping for troubleshooting purposes.
- If you want QoS, go to the Advanced tag and select Enable Default 802.1p CoS. Set it to 6 – Voice
- Click OK to save
Edit/Create DHCP for the New Interface
If DHCP was already enabled on the device a DHCP scope will be created automatically to be edited for the network environment. If DHCP was disabled, create a DHCP scope.
- Navigate to Network and then to DHCP.
- Click Add Dynamic and select Interface Pre-Populate
- Select the VLAN Tagged interface and let it fill out the scope automatically
- Edit the scope as needed
Bandwidth Management (optional)
- Click on Firewall Settings and then BMW
- Set the Bandwidth Management Type to Global and click Apply
- Navigate back to Network and click on Interfaces
- Click the pencil icon next to your WAN interface and go to the Advanced tag
- Select Ingress and Egress Bandwidth Management
- Enter your Egress (upload) and Ingress (downlaod) speeds in Kbps. You can achieve that by multiplying your Mbps by 1024.
- Navigate back to Firewall Settings and then BWM
- Enable only Medium and High
We now need to calculate the amount of bandwidth the phones will require. Each call takes about 80 Kbps each direction. There is also about 15 Kbps of overhead if you are not using QoS. Simply multiply 95 Kbps by how many phones you have behind the router. Then calculate what percentage of the bandwidth that will take.
In this example, we will use a 10Mbps X 10Mbps connection with 11 phones/devices. When calculated the devices will take about 1Mbps. That is about 10% of the 10Mbps connection.
- On the High Category set the Guaranteed to 10% and the Maximum/Burst to 100%
- On the Medium Category set the Guaranteed to 0% and the Maximum to 90%
- Click Accept to apply the changes
Consistent NAT / SIP Settings
- Navigate to VoIP and click on Settings
- Enable Consistent NAT
- Disable anything else in the VoIP section, particularly SIP transformations.
- Click Apply to save
Configure Firewall Rules
- Navigate to Firewall and click on Address Objects
- Click on Add under Address Objects. Set the Zone Assignment to WAN and Type to Host
- Create an Address Object for each Ringfree IP address
Name: IP Address: ----------------------------------- Ringfree Server 1 18.104.22.168 Ringfree Server 2 22.214.171.124 Ringfree Server 3 126.96.36.199 Ringfree Server 4 188.8.131.52
- Once finished click Close
- Click Add Group and name it Ringfree Servers
- Add the four servers just created into the group and click OK to save
RTP Ports Object
- Navigate to Firewall and click on Service Objects
- Click Add under Services
- name the service RTP and set the protocol to UDP(17)
- Set the port range to 10000 – 20000 and click Add and Close
Build Firewall Rules
- Click on Firewall and then Access Rules. Click on Matrix view and then select “From VOIP to WAN” (or “LAN to WAN” if you didn’t set up the VOIP Zone)
- Click Add to add a new rule
- Make sure Allow is selected. Under Service select SIP from the drop-down
- The Source will be the interface created earlier (i.e. X0:2 Subnet)
- If an interface wasn’t set earlier, set this to LAN Primary Subnet
- Set the destination to Ringfree Servers
- Click Advanced and set the UDP timeout to 3600 seconds
- Click the Ethernet BWM tab and check inbound and outbound management
- Set the priority to High for inbound and outbound
- Click Add to save
- Just change the service to RTP and leave everything else the same
- Click Advanced and set the UDP timeout to 300 seconds
- Click Add and Close to save
If App Rules are enabled, you may run into some issues with calls as well. Simply add the RingFree Servers address group to the app rule exceptions.