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

    Open VPN Server

    Scheduled Pinned Locked Moved OpenVPN
    9 Posts 3 Posters 670 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.
    • C
      codechurn
      last edited by

      I have followed the OpenVPN Remote Access Configuration Example recipe.

      Tunnel Network: 172.17.0.0/24
      WAN Address: x.y.z.65
      LAN Address: 192.168.0.254
      LAN Subnet: 192.168.0.0/24
      DNS #1: 192.168.0.110
      DNS #2: 192.168.0.111

      I have configured Network Policy on Windows Server and set OpenVPN Server to use Radius Authentication. I have validated that Radius Authentication is working by using Diagnostics | Authentication and it returns a successful response from the RADIUS server.

      I am using an ACME issued certificate for the OpenVPN server. I also use this same certificate for the WebGUI and it works fine. The certificate is for gateway.xxxx.org and is in Certificate store and the ACME cert is in the Certificate Authorities store.

      Hostname: gateway.xxxx.org
      External DNS has A record of x.y.z.65 pointing to gateway.xxxx.org
      Internal DNS has A record of 192.168.0.254 pointing to gateway.xxxx.org

      OpenVPN Configuration:

      c6c01ed8-4b62-41cf-b666-77616d801ca6-image.png
      5e601d24-e7c7-4a6a-9373-f39a260756c6-image.png
      d7d1dcc1-2556-423c-8ddb-cc7578fa991c-image.png
      30d56bc5-bc9c-402f-92d5-5db10f9e937e-image.png
      58265916-6f43-475d-8424-c7d57da6d693-image.png
      6897d810-da25-429e-9093-d037752fd089-image.png
      922194e0-3d89-4157-bf97-a3fc0acfc8f3-image.png
      00f61266-326d-4962-8537-86a3af06893f-image.png

      WAN Firewall Rule:
      bab7cf09-cf31-4a5e-8b3e-45b45bbaf240-image.png

      OpenVPN Firewall Rule:
      1f603416-6315-4cfc-9376-225d7d5eadd2-image.png

      Problem:

      Both on Android (connected to a public network) and my Windows 11 machine (connected to a private network, on the 192.168/.0.0/24 network I cannot establish a VPN connection. I'm stuck and need some help.

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

        @codechurn
        What exactly shows the client log?

        Something in the OpenVPN log on pfSense?

        C 1 Reply Last reply Reply Quote 0
        • C
          codechurn @viragomann
          last edited by codechurn

          @viragomann
          Here is what I see Client side, starting with the earliest:

          0cfd2f0a-3703-44ce-b225-ad516e389f2a-image.png

          fa276d09-677a-44c8-acb4-1a4ceb5c8a18-image.png

          77cf7503-064d-4f96-9005-464489a4fe8f-image.png

          8c997c4c-699c-43c4-a26a-95db1dc256e4-image.png

          16b84ea7-3f19-444e-b829-a3fb92e559b3-image.png

          d2a7e723-66f2-421e-badd-1e9c03dc1603-image.png

          d6dbc262-7104-410c-81e1-3dafd1cd4626-image.png

          b1486c81-122a-4821-980f-be68fe314c6d-image.png

          1fd7ade7-5039-49f7-ae2d-09e960d21b69-image.png

          9c3927cd-ae00-428a-82f6-0a313eea2bd0-image.png

          Where would I find the Open VPN Server System Logs? When I look under Status | System Logs | Open VPN all I see is activity from the Open VPN Client I have configured, which is working properly.

          I'm not convinced I am getting to the OpenVPN Server, even though the event log says it established a connection via IKEv2 since it keeps trying to connect using other protocols. Perhaps this is just the RADIUS authentication confirming I am authorized?

          V GertjanG 2 Replies Last reply Reply Quote 0
          • V
            viragomann @codechurn
            last edited by

            @codechurn
            Yes, you need an OpenVPN client.
            Just install the client export utility on pfSense and download the proper client package from it.

            C 1 Reply Last reply Reply Quote 0
            • C
              codechurn @viragomann
              last edited by

              @viragomann Thanks for the info. I was hoping to setup a VPN on the gateway that would work with the out of the box client on modern versions of Windows and Android. I guess I can't do this with OpenVPN. Would IPsec be a better solution?

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

                @codechurn
                OpenVPN isn't less eligible at all. But yes, you have to install a client software to use it. However, the OpenVPN connect apps work pretty well on Windows and mobile phones and it's easy to use.

                IPSec is integrated in Windows out of the box. If there is no possibility to install a client software you can go with this.

                C 1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @codechurn
                  last edited by Gertjan

                  @codechurn said in Open VPN Server:

                  Where would I find the Open VPN Server System Logs?

                  In the same log.

                  This is a paret of the server startup :

                  a802b486-9a56-4106-9b8a-5f6cad11fa93-image.png

                  Btw : not really important, but :

                  Switch to IPv4 (only) :

                  364a81c8-6c8a-4912-a462-8744120c74ad-image.png

                  Remove IPv6 here :

                  70ded1c3-0ebc-484e-86d4-994e25217c44-image.png

                  because right now, you announce IPv6 capabilities, but in reality : you have none.
                  Client devices will, of course, prefer IPv56 over IPv4, so if your VPN announces : IPv6 ok, you'll hit the wall.

                  @codechurn said in Open VPN Server:

                  I am using an ACME issued certificate for the OpenVPN server. I also use this same certificate for the WebGUI and it works fine.

                  Cool.
                  Bit not really needed.
                  I've created a self signed cert for 10 years, and be done with it (KIS principle).

                  Some random observations :

                  5d4ddc1c-ee02-49d9-96b2-473f8fb5e373-image.png

                  Just "User auth" and not "SSL+TLS + User auth" ? You don't want your VPN to be encrypted ?

                  This one :

                  cd0f1d2d-3f0d-4d09-a328-4a9e665034bb-image.png

                  ACME places a SAN (host name) in the certificate, not a 'user login name'. Not sure how this can ever match.

                  Here : https://www.youtube.com/@NetgateOfficial/videos are some old and very old pfSense OpenVPN server setup guides. They are still very valid, just keep in mind they were made with an old version of OpenVPN server.

                  d7402a32-38a6-4177-b59a-28e3f934ee22-image.png

                  "Instantiate" the ovpns1 "OpenVPN" into a (example) MYSERVERVPN - like you did with the EXPESSVPN (VPN client)à interface
                  Move the firewall rule present on "OpenVPN" to this new "MYSERVERVPN".

                  What pfSense version ?

                  edit : and yes : The OpenVPN client exporter is needed.
                  Install the free, official OpenVPN Android Apple Windows App.
                  https://openvpn.net/client/

                  This one logs just fine and is easy to handle, and works the same on every platform.
                  If that one works, only then try to tackle the Windows version (didn't even know it existed, and the way it looks, who want to use it ^^)

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  1 Reply Last reply Reply Quote 0
                  • C
                    codechurn @viragomann
                    last edited by

                    @viragomann, @Gertjan

                    Thanks for the feedback guys! I didn't realize that OpenVPN required me to install a client to use it. I'm going to switch over to IPSec and see if I can get that going.

                    GertjanG 1 Reply Last reply Reply Quote 0
                    • GertjanG
                      Gertjan @codechurn
                      last edited by

                      @codechurn said in Open VPN Server:

                      I didn't realize that OpenVPN required me to install a client to use it

                      Not really needed, but as Microsoft products like to talk with Microsoft Products, its the same for OpenVPN product.
                      You can of course use any 'OpenVPN' client, as long as it is compatible with OpenVPN, and you manage to make it work ^^

                      But it works, and during massive home works situations around 2020/2021/2022 it was fully tested.
                      Half the planet was using it.

                      No "help me" PM's please. Use the forum, the community will thank you.
                      Edit : and where are the logs ??

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