OpenVPN client opens a random UDP port

openvpnportudp

We are noticing this on a number of our openvpn clients:

[root@box ~]# netstat -tulpn | grep openvpn
udp        0      0 0.0.0.0:53950               0.0.0.0:*                               1562/openvpn
[root@box ~]#

I am having a hard time finding any info via google regarding what is causing openvpn to open this random UDP port.

This port is random as it differs on each box, and when one restarts openvpn.

Any ideas?

Best Answer

We have found the issue causing this.

We had nobind in our openvpn client conf.

After removing nobind, and adding the following:

bind
local {OUR LAN IP}

The 0.0.0.0:PORT listen has changed to whatever IP we provide in "local".

Related Topic