Whenever a VPN initiates to connect your traffic to one of their servers, the VPN port that they use depends on the VPN protocol that they are using during the process of connecting your traffic to their servers. In short, these protocols that they are using is essential in establishing a VPN connection. Moreover, these protocols use different ports as well. Hence, if you are trying to set up your own system you will have to ensure that firewall rules will allow connections to the VPN ports that are listed below.
|PPTP (TCP)||1723||PPTP control path|
|PPTP (GRE)||47||PPTP data path|
|OpenVPN (UDP)||1194||OpenVPN connections|
|OpenVPN (TCP)||443||OpenVPN connections|
|L2TP (ESP)||50||IPSec data path|
|L2TP (UDP)||500, 4500||IKEv1 (IPSec control path)|
|IKEv2 (ESP)||50||IPSec data path|
|IKEv2 (UDP)||500, 4500||IKEv2 (IPSec control path|
|SSTP (TCP)||443||SSTP control and data path|
|Wineguard (UDP)||51820||Incoming connections|
A VPN port depends on the VPN protocol that your VPN uses. The data above indicates the port number of each VPN protocol. If you are setting up your own system, it is important to consider these ports for you to be able to ensure that your firewall rules will not block them and would allow you to connect to the mentioned port numbers. We hope that through this article, we were able to provide you sufficient information and help you in setting up your own system.