Hello, I have a problem connecting to my Raspberry Pi based OpenVPN server (pivpn) on my college's network. However, I can connect to other openvpn servers from vpngate.net. Moreover, it successfully connected one day, but I haven't been able to since. Connecting to my server on a different network (wifi or mobile data) is also no problem. How is this possible? I've already tried changing the ports and protocols to match those of the free servers , but it still doesn't work.
My client configuration:
client
dev tun
proto udp
remote example.noip.me 2325
resolv-retry infinite
nobind
persist-key
persist-tun
key-direction 1
remote-cert-tls server
tls-version-min 1.2
verify-x509-name pivpn name
cipher AES-256-CBC
auth SHA256
comp-lzo
verb 1
Server configuration (left out ca, cert, key and tls-auth blocks):
dev tun
proto udp
port 2532
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/pivpn.crt
key /etc/openvpn/easy-rsa/keys/pivpn.key
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig 10.8.0.1 10.8.0.2
push "route 10.8.0.1 255.255.255.255"
push "route 10.8.0.0 255.255.255.0"
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
tls-version-min 1.2
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
cipher AES-256-CBC
auth SHA256
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log 20
log /var/log/openvpn.log
verb 1
Logs in the Windows GUI client (also doesn't work on android):
Tue Nov 22 09:33:54 2016 OpenVPN 2.3.13 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Nov 3 2016
Tue Nov 22 09:33:54 2016 Windows version 6.2 (Windows 8 or greater) 64bit
Tue Nov 22 09:33:54 2016 library versions: OpenSSL 1.0.1u 22 Sep 2016, LZO 2.09
Tue Nov 22 09:33:56 2016 Control Channel Authentication: tls-auth using INLINE static key file
Tue Nov 22 09:33:56 2016 UDPv4 link local: [undef]
Tue Nov 22 09:33:56 2016 UDPv4 link remote: [AF_INET]123.123.123.123:2532
Tue Nov 22 09:34:56 2016 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Nov 22 09:34:56 2016 TLS Error: TLS handshake failed
Tue Nov 22 09:34:56 2016 SIGUSR1[soft,tls-error] received, process restarting