Port 1194 (OpenVPN)

Port 1194 is the default port of OpenVPN, VPN software that creates an encrypted tunnel between computers and networks.

Key facts

Port
1194
Protocols
TCP, UDP
Range
Registered port, 1024-49151
IANA service name
openvpn

IANA assigns ports in this range to services on request, under RFC 6335.

About port 1194

Port 1194 is the default port of OpenVPN, VPN software that creates an encrypted tunnel between computers and networks. By default, the service runs over UDP, and you can also set it to run over TCP.

IANA registers port 1194 for the openvpn service, over TCP and UDP. The software uses TLS for authentication and key exchange, with certificates for the server and the clients.

What port 1194 is used for

  • Remote access for employees: computers and phones connect to the office network or to servers through an encrypted tunnel.
  • Connecting networks: two offices, or an office and a server, are linked by a permanent tunnel.
  • Protecting management interfaces: the server's management ports, such as SSH, are opened only to VPN addresses.
  • Restricted networks: when a network blocks unfamiliar ports, you can run the server over TCP on a different port, for example port 443.

Port 1194 in the firewall

On an OpenVPN server, open the port and protocol set in the server configuration file, usually UDP port 1194:

  • UFW: ufw allow 1194/udp
  • firewalld: firewall-cmd --permanent --add-service=openvpn

Employees usually connect from changing addresses, so the port is open to all addresses, and protection comes from the certificates and the server settings. When clients browse the internet through the server, routing and NAT settings are also needed on the server.

Risks and security

According to the OpenVPN documentation, the best protection against denial-of-service attacks on the server comes from combining UDP with the tls-crypt or tls-auth option. With these options, the server ignores packets that aren't signed with the shared key. A few more settings round out the protection:

  • Issue each user their own certificate, and revoke the certificate of an employee who has left right away, with a certificate revocation list (CRL).
  • Keep the certificate authority key off the VPN server.
  • Allow only current TLS versions and encryption algorithms.
  • Install security updates for the software regularly.

Commands to check and configure

  • ss -tulnp | grep ':1194 '

    Checks whether OpenVPN is listening on port 1194, and over which protocol.

  • systemctl status openvpn-server@server

    Shows whether the OpenVPN service is running with the server.conf configuration file.

  • journalctl -u openvpn-server@server -f

    Shows the service log in real time, including user connections and errors.

  • openvpn --genkey secret ta.key

    Creates a shared key for use with tls-crypt or tls-auth.

  • ufw allow 1194/udp

    Opens UDP port 1194 to incoming traffic (UFW).

  • firewall-cmd --permanent --add-service=openvpn

    Opens UDP port 1194 to incoming traffic in firewalld. Then run firewall-cmd --reload.

Port 1194 in the IANA registry

Port Protocol Service IANA registry description
1194 TCP openvpn OpenVPN
1194 UDP openvpn OpenVPN

Data source: IANA Service Name and Transport Protocol Port Number Registry (opens in a new tab)

Port 1194 FAQ

Does OpenVPN run over UDP or TCP?

It supports both protocols. The default is UDP, which is better suited to carrying traffic through a tunnel and usually gives better performance. The TCP option is useful on networks that block UDP. The server and the clients must be set to the same protocol and the same port.

Can I run OpenVPN on port 443?

Yes. Set the server to TCP and port 443, and update the clients. That way you can connect even from networks that only allow regular browsing. When a website also runs on port 443 on the server, choose a different port or use the port-share option, which passes connections that aren't OpenVPN on to the web server.

What's the difference between OpenVPN and IPsec?

Both create an encrypted tunnel. OpenVPN runs on a single port, so it passes through firewalls easily, but it needs client software. IPsec with IKEv2 has a built-in client in many operating systems, and it uses port 500, port 4500, and the ESP protocol.

How do I restrict access to the server so it's only through a VPN?

In the firewall, allow the management ports, such as SSH on port 22, only from the address range the server assigns to VPN clients, and block them for all other addresses. For a VPS or a dedicated server, you can also order a VPN user on our external firewall and restrict access to the server so it's only through the VPN, without setting up a VPN server of your own. Details are on the firewall and VPN page.

Shopping cart

Your cart is emptyYou can start with one of our popular plans.

Site search

Accessibility

Text size
100%
Accessibility statement