Results 1 to 5 of 5
  1. #1

    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.

  2. #2
    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

  3. #3
    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)

  4. #4
    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

  5. #5
    The problem has been solved. Thanks for your suggestions.

Similar Threads

  1. OpenVPN forwarding ports
    By AdiSecibovic in forum Hosting Security and Technology
    Replies: 7
    Last Post: 09-28-2013, 04:13 PM
  2. Open ports with OpenVPN? How do I do it?
    By hik4t in forum Hosting Security and Technology
    Replies: 14
    Last Post: 07-15-2013, 10:17 PM
  3. Changing Apache non-SSL & SSL ports in WHM
    By kangaru in forum Hosting Security and Technology
    Replies: 3
    Last Post: 11-13-2010, 09:48 AM
  4. Changing the ports of MS SQL 2005
    By boonchuan in forum Hosting Security and Technology
    Replies: 4
    Last Post: 05-11-2007, 12:01 PM
  5. changing ports on a Raq2??
    By robo456 in forum Dedicated Server
    Replies: 10
    Last Post: 10-09-2003, 07:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •