The world seen from the eyes of a penguin

Category: OpenVPN

The OpenVPN GUI configuration of my DS209 and DS109 has limited options. For instance, it is not possible to change the port and protocol, but we can manually modify its configuration file. My purposes is to change the port from 1194 to 1199 and the protocol from UDP to TCP.

Mainly everything is located here: /usr/syno/etc/packages/VPNCenter/openvpn, there is the configuration file and the keys folder.

Open openvpn.conf and

to change the default port add the line “port <n>” where <n> is the port number

You can now restart the OpenVPN server using the DSM GUI or manually as follows. Verify where the script openvpn.sh is located, in fact on previous versions of Synology DSMs the command was completely different (VPNCenter.sh)