A Step-by-Step Guide to Port Forwarding on MikroTik Router for Vicidial Remote Agents
In today’s remote work landscape, maintaining a seamless connection between your Vicidial call center software and remote agents is crucial. One way to achieve this is by correctly configuring port forwarding on your MikroTik router. This guide will walk you through the process, ensuring your remote agents can access Vicidial without any hiccups.
Why Port Forwarding Matters
Port forwarding is essential for enabling external access to specific devices or services within your local network. In the context of Vicidial, it allows remote agents to connect to the call center software securely. Without proper port forwarding, remote access can be challenging or impossible.
Prerequisites
Before diving into the configuration, make sure you have the following:
- A MikroTik router.
- Access to the router’s web interface or Winbox.
- Vicidial already set up and running within your local network.
Step 1-1: Determine the Port Numbers
Vicidial relies on various ports for its operations. Common ports you need to forward include:
- Port TCP 80: For HTTP access to the Vicidial web interface.
- Port TCP 443: For HTTPS access (recommended for security).
- Port TCP 8089 : for Agent Web Phone.
- Port UDP 5060: For SIP signaling.
- Port UDP 5061: For secure SIP signaling (optional but recommended).
- Port UDP 10000-20000: For voice RTP packets.
Its recommemded to change SIP 5060 port to any other port number for example I have changed to 6566
Step 1-2: Determine the IP Address for VICIDIAL & Public IP we are going to map.
MY public IP address is 11.22.33.44
Vicidial server IP address is 192.168.88.220
Step 2: Access Your MikroTik Router
- Open a winbox
- Log in with your administrator credentials.
Step 3: Navigate to the New Terminal
In the MikroTik router interface, navigate to the “New Terminal” and click on it
Copy and paste below command and modify IP address as per your requiremnet
/ip firewall nat add action=dst-nat chain=dstnat dst-address=11.22.33.44 dst-port=80 protocol=tcp to-addresses=192.168.88.220 to-ports=80 add action=dst-nat chain=dstnat dst-address=11.22.33.44 dst-port=22 protocol=tcp to-addresses=192.168.88.220 to-ports=22 add action=dst-nat chain=dstnat dst-address=11.22.33.44 dst-port=443 protocol=tcp to-addresses=192.168.88.220 to-ports=443 add action=dst-nat chain=dstnat dst-address=11.22.33.44 dst-port=8089 protocol=tcp to-addresses=192.168.88.220 to-ports=8089 add action=dst-nat chain=dstnat dst-address=11.22.33.44 dst-port=10000-20000 protocol=udp to-addresses=192.168.88.220 to-ports=10000-20000 add action=dst-nat chain=dstnat dst-address=11.22.33.44 dst-port=6566 protocol=udp to-addresses=192.168.88.220 to-ports=6566
If you have not changed 5060 port then
use below lines
add action=dst-nat chain=dstnat dst-address=11.22.33.44 dst-port=5060 protocol=udp to-addresses=192.168.88.220 to-ports=5060 add action=dst-nat chain=dstnat dst-address=11.22.33.44 dst-port=5061 protocol=udp to-addresses=192.168.88.220 to-ports=5061
Step 4: Test the Configuration
To ensure that port forwarding is working correctly, try accessing Vicidial from a remote location using the external IP address of your router.
Conclusion
Port forwarding on a MikroTik router is a crucial step in ensuring that remote agents can seamlessly access your Vicidial call center software. By following these steps, you’ll provide your agents with a secure and reliable connection, enabling them to deliver top-notch service from anywhere in the world.