VPN for VoIP | Ping Delay

This forum is for general conversation and user-user networking.
Post Reply
OpenVpn Newbie
Posts: 2
Joined: Wed Jun 24, 2020 11:22 am

VPN for VoIP | Ping Delay

Post by sohaib » Sat Jun 27, 2020 4:47 pm

Hi there,

I have setup a openvpn server on clound (digital ocean). and my vpn client connects from local internet.

My goal is to use SIP (VOIP) over the VPN and my SIP server is also the same OpenVPN server.

My VPN get connected successfully and I can ping server from client perfectly fine. and I can register SIP User on client successfully. But the issue is when i dial the number from client my voice start breaking and at the same time when call is connected I check the ping it show big delay first and then timeout.

Can any tell me whats wrong with my configuration.

Server config

port 1194
proto udp
dev tun
tun-mtu 1500
mssfix 1340
;dev tap
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh.pem
client-config-dir /etc/openvpn/ccd
;pull-filter ignore "redirect-gateway"
;push "redirect-gateway def1 bypass-dhcp"
;push "redirect-gateway def1"
;push "redirect-gateway"
push "dhcp-option DNS"
push "dhcp-option DNS"
;keepalive 10 120
keepalive 20 60
;tls-auth ta.key 0 # This file is secret
;cipher AES-128-CBC
user nobody
group nogroup
status /var/log/openvpn/openvpn-status.log
log /var/log/openvpn/openvpn.log
log-append /var/log/openvpn/openvpn.log
verb 4

Client config

proto udp
verb 3
dev tun
remote 1xx.xxx.xxx.xxx
;cipher AES-128-CBC
;cipher BF-128-CBC
cipher BF-CBC
port 1194
ca ca.crt
cert alkhidmatkh.crt
key alkhidmatkh.key
resolv-retry infinite

Please guide me if there is anything wrong.

Thanks in advance.

Sohaib Khan
Last edited by Pippin on Sat Jun 27, 2020 10:14 pm, edited 1 time in total.
Reason: Formatting

Post Reply