Results 1 to 5 of 5
Thread: OpenVPN: Changing Ports
-
10-31-2013, 01:06 AM #1Newbie
- Join Date
- Aug 2012
- Posts
- 19
OpenVPN: Changing Ports
OpenVPN was working fine until I needed to change ports from 1194 to 443. I changed the port number in the server.conf on my VPS and client files too. However the connection hangs but doesn't connect. The error messages I got from the logs in particular are these:
tls key negotiation failed to occur within 60 seconds
tls handshake failed
I even turned off my firewall but no luck. The last message on the log reads
Wed Oct 30 22:04:26 2013 MANAGEMENT: >STATE:1383195866,WAIT,,,
Then it just stops at that point.
-
10-31-2013, 04:22 AM #2Web Hosting Master
- Join Date
- Mar 2011
- Location
- Edinburgh, UK
- Posts
- 567
Is openvpn listening on the correct port? Are you sure the service has been started? Do you have another service listening on 443, https listens on this port, so that might be why.
Check the output from this:
lsof -i
that should tell you if it is listening on 443 or not.██ ViralVPS.com - Linux & Windows Xen VPS Servers
██ 10Gbps Connection | Netherlands Location | IPv4 & IPv6
██ SSD Cached RAID10 Storage | Instant Setup! | Bitcoin Accepted
-
10-31-2013, 08:24 AM #3Newbie
- Join Date
- Aug 2012
- Posts
- 19
root@xxxx:/etc/openvpn# lsof -i
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sshd 1575 root 3u IPv4 960424683 0t0 TCP
*sh (LISTEN)
sshd 1575 root 4u IPv6 960424685 0t0 TCP
*sh (LISTEN)
sendmail- 1809 root 4u IPv4 960452779 0t0 TCP
localhost.localdomainmtp (LISTEN)
sendmail- 1809 root 5u IPv4 960452780 0t0 TCP
localhost.localdomainubmission (LISTEN)
apache2 1909 root 3u IPv4 960453495 0t0 TCP *:http (LISTEN)
openvpn 3921 nobody 5u IPv4 962666406 0t0 UDP
xxxxpenvpn
apache2 10534 www-data 3u IPv4 960453495 0t0 TCP
*:http (LISTEN)
apache2 11191 www-data 3u IPv4 960453495 0t0 TCP *:http (LISTEN)
apache2 11975 www-data 3u IPv4 960453495 0t0 TCP *:http (LISTEN)
apache2 11976 www-data 3u IPv4 960453495 0t0 TCP *:http (LISTEN)
-
10-31-2013, 08:26 AM #4Web Hosting Master
- Join Date
- Mar 2011
- Location
- Edinburgh, UK
- Posts
- 567
You can see from that that open VPN is listening on port 3921.
openvpn 3921 nobody 5u IPv4 962666406 0t0 UDP
xxxxpenvpn██ ViralVPS.com - Linux & Windows Xen VPS Servers
██ 10Gbps Connection | Netherlands Location | IPv4 & IPv6
██ SSD Cached RAID10 Storage | Instant Setup! | Bitcoin Accepted
-
10-31-2013, 09:42 AM #5Newbie
- Join Date
- Aug 2012
- Posts
- 19
The problem has been solved. Thanks for your suggestions.
Similar Threads
-
OpenVPN forwarding ports
By AdiSecibovic in forum Hosting Security and TechnologyReplies: 7Last Post: 09-28-2013, 04:13 PM -
Open ports with OpenVPN? How do I do it?
By hik4t in forum Hosting Security and TechnologyReplies: 14Last Post: 07-15-2013, 10:17 PM -
Changing Apache non-SSL & SSL ports in WHM
By kangaru in forum Hosting Security and TechnologyReplies: 3Last Post: 11-13-2010, 09:48 AM -
Changing the ports of MS SQL 2005
By boonchuan in forum Hosting Security and TechnologyReplies: 4Last Post: 05-11-2007, 12:01 PM -
changing ports on a Raq2??
By robo456 in forum Dedicated ServerReplies: 10Last Post: 10-09-2003, 07:51 AM