Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    OpenVPN server behind the provider's PAT

    Scheduled Pinned Locked Moved OpenVPN
    7 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      k.z.l.
      last edited by

      Hi!
      I've set up an OpenVPN Remote Access server, but it is timing out.
      My provider wasn't able to give me a public IP, only some ports for the TCP connection were redirected.
      Now, in Android I've set up the OpenVPN client with the provider's public IP and port (which is redirected
      to my WAN IP.), but the connection is always timing out.
      Any ideas are appreciated: how should I start troubleshooting?
      (Yet another thing: I'm using a multi-WAN connection.)
      Thank you very much.

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by

        Have you set your server and client to use TCP?

        For troubleshooting use packet capture on pfSense, you find it in the Diagnostic menu. Check if the packets arrive on the WAN interface while trying to establish a connection from your phone.

        1 Reply Last reply Reply Quote 0
        • K
          k.z.l.
          last edited by

          It is set to use only TCP packets.

          The diagnostic showed, that the client was trying to establish connection, without success. See capture.txt Private and bogon networks were on my system previously blocked. After unblocking the reserved networks, I've got closer to success. The connection was established, but disconnected after a little bit of time. It seams to be bouncing, but I don't now why. capture2.txt contains the captured packets and client.txt log from my openvpn client.

          capture.txt
          capture2.txt
          client.txt

          1 Reply Last reply Reply Quote 0
          • V
            viragomann
            last edited by

            Obviously your provider do also source-NAT. 10.10.48.254 is a private address. So of course, you have to allow private access on WAN.

            capture2.txt shows nothing but outbound traffic. However, this is irrelevant here anyway.

            What shows the server log?

            1 Reply Last reply Reply Quote 0
            • K
              k.z.l.
              last edited by

              After a bunch of unsuccessfull tryings:

              serverlog.txt

              1 Reply Last reply Reply Quote 0
              • V
                viragomann
                last edited by

                Obviously there is something wrong with the client certificat.

                OpenSSL: error:140890B2:SSL routines:SSL3_GET_CLIENT_CERTIFICATE:no certificate returned
                
                1 Reply Last reply Reply Quote 0
                • K
                  k.z.l.
                  last edited by

                  Yes, the problem was, that I haven't created a certificate for the user itself, but used the VPN's CA…
                  After the modifications everything goes well now.
                  Thank you for your help and I wish you a happy new year!

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.