i have an openvpn server which was working perfectly until a few days ago. it just suddenly stopped working. i can connect without any error but there is no data going through. i kept on changing ports and checking all the configurations from server.conf to ip routing and UFW but nothing worked and still the same problem. until i was checking the log file real-time while connecting to the server and i found out something strange. the port on the connection from my ip to the server is different as the port i assigned in the server.conf and the client conf file. is this normal or something strange is going on here?
Nov 17 13:46:41 ubuntu-1vcpu-1gb-ams3-01 ovpn-server[4155]: *.***.***.113:15317 TLS: Initial packet from [AF_INET]*.***.***.113:15317, sid=7963fdbf a19cacc9
Nov 17 13:46:42 ubuntu-1vcpu-1gb-ams3-01 ovpn-server[4155]: *.***.***.113:15317 VERIFY OK: depth=1, C=US, ST=CA, L=SanFrancisco, O=CebuToday.com, OU=community, CN=CebuToday.com CA, name=server, emailAddress=admin@cebutoday.com
Nov 17 13:46:42 ubuntu-1vcpu-1gb-ams3-01 ovpn-server[4155]: *.***.***.113:15317 VERIFY OK: depth=0, C=US, ST=CA, L=SanFrancisco, O=CebuToday.com, OU=community, CN=client1, name=server, emailAddress=admin@cebutoday.com
Nov 17 13:46:42 ubuntu-1vcpu-1gb-ams3-01 ovpn-server[4155]: *.***.***.113:15317 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Nov 17 13:46:42 ubuntu-1vcpu-1gb-ams3-01 ovpn-server[4155]: *.***.***.113:15317 Data Channel Encrypt: Using 256 bit message hash 'SHA256' for HMAC authentication
Nov 17 13:46:42 ubuntu-1vcpu-1gb-ams3-01 ovpn-server[4155]: *.***.***.113:15317 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Nov 17 13:46:42 ubuntu-1vcpu-1gb-ams3-01 ovpn-server[4155]: *.***.***.113:15317 Data Channel Decrypt: Using 256 bit message hash 'SHA256' for HMAC authentication
Nov 17 13:46:42 ubuntu-1vcpu-1gb-ams3-01 ovpn-server[4155]: *.***.***.113:15317 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 DHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Nov 17 13:46:42 ubuntu-1vcpu-1gb-ams3-01 ovpn-server[4155]: *.***.***.113:15317 [client1] Peer Connection Initiated with [AF_INET]*.***.***.113:15317
Nov 17 13:46:42 ubuntu-1vcpu-1gb-ams3-01 ovpn-server[4155]: client1/*.***.***.113:15317 MULTI_sva: pool returned IPv4=10.8.0.6, IPv6=(Not enabled)
Nov 17 13:46:42 ubuntu-1vcpu-1gb-ams3-01 ovpn-server[4155]: client1/*.***.***.113:15317 MULTI: Learn: 10.8.0.6 -> client1/*.***.***.113:15317
Nov 17 13:46:42 ubuntu-1vcpu-1gb-ams3-01 ovpn-server[4155]: client1/*.***.***.113:15317 MULTI: primary virtual IP for client1/*.***.***.113:15317: 10.8.0.6
Nov 17 13:46:42 ubuntu-1vcpu-1gb-ams3-01 ovpn-server[4155]: client1/*.***.***.113:15317 PUSH: Received control message: 'PUSH_REQUEST'
Nov 17 13:46:42 ubuntu-1vcpu-1gb-ams3-01 ovpn-server[4155]: client1/*.***.***.113:15317 send_push_reply(): safe_cap=940
Nov 17 13:46:42 ubuntu-1vcpu-1gb-ams3-01 ovpn-server[4155]: client1/*.***.***.113:15317 SENT CONTROL [client1]: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 208.67.222.222,dhcp-option DNS 208.67.220.220,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5' (status=1)
int his log shows im connected via port 15317 but the port in the server.conf and the client config file is 43729.
funny is that port 15317 is not even open in UFW.