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

    Issue Connecting pfsense as a client to OpenVPN Access Server

    Scheduled Pinned Locked Moved OpenVPN
    20 Posts 3 Posters 3.3k 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.
    • RicoR
      Rico LAYER 8 Rebel Alliance
      last edited by Rico

      You need to setup your Rules in the Firewall -> Rules -> OpenVPN tab (pfSense WebGUI).
      For testing just do any-any and check if everything works.

      -Rico

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by johnpoz

        @shahid3507 said in Issue Connecting pfsense as a client to OpenVPN Access Server:

        tls-crypt /var/etc/openvpn/client1.tls-crypt

        I am like 99% sure that openvpn-as does not support tls-crypt.. Atleast not current 2.6.1 version..

        The AS stores its config in a db, so its a bit harder to show - but there is zero place to turn on crypt for tls in the gui. And do believe reading something about it - they did a while back enable crypt for the connect client (ios and android) but I do not believe the AS server supports it as of yet.

        When you setup the client in pfsense - did you download the client config from the AS to validate what you need to set?

        example - just download my client config from my AS

         Automatically generated OpenVPN client config file
        # Generated on Mon Feb  4 07:15:51 2019 by ns1
        # Note: this config file contains inline private keys
        #       and therefore should be kept confidential!
        # Note: this configuration is user-locked to the username below
        

        Certs will all be inline

        And its just doing auth

        key-direction 1
        <tls-auth>
        #
        # 2048 bit OpenVPN static key (Server Agent)
        #
        -----BEGIN OpenVPN Static key V1-----
        12303adb7486e4ef9d4dae4742741a22
        10f785d43598499de66a7da89ee45221
        <snipped>
        235863ac6188180030d13ab6481e966c
        a8bd1f1b1c08bd009430af58ab3e0b88
        -----END OpenVPN Static key V1-----
        </tls-auth>
        

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • S
          shahid3507
          last edited by

          @johnpoz I have just downloaded the config from AS and followed this document.
          https://www.netgate.com/docs/pfsense/vpn/openvpn/connecting-pfsense-to-an-openvpn-access-server.html

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by johnpoz

            Seems you didn't follow the part where it says
            " pfSense may be configured to use the info in the .ovpn file"

            โ˜บ

            0_1549286645395_validateyourauth.png

            And not encryption and auth. Double check all your other settings.

            example here is my client config form pfsense for my openvpn-as server

            dev ovpnc3
            verb 1
            dev-type tun
            dev-node /dev/tun3
            writepid /var/run/openvpn_client3.pid
            #user nobody
            #group nobody
            script-security 3
            daemon
            keepalive 10 60
            ping-timer-rem
            persist-tun
            persist-key
            proto udp4
            cipher AES-256-CBC
            auth SHA256
            up /usr/local/sbin/ovpn-linkup
            down /usr/local/sbin/ovpn-linkdown
            local 64.53.<snipped>
            engine rdrand
            tls-client
            client
            lport 0
            management /var/etc/openvpn/client3.sock unix
            remote <snipped> 1195
            ca /var/etc/openvpn/client3.ca 
            cert /var/etc/openvpn/client3.cert 
            key /var/etc/openvpn/client3.key 
            tls-auth /var/etc/openvpn/client3.tls-auth 1
            ncp-ciphers AES-128-GCM:AES-192-GCM:AES-256-GCM:AES-128-CBC:AES-192-CBC:AES-256-CBC
            comp-lzo no
            resolv-retry infinite
            route-nopull
            fast-io
            sndbuf 524288
            rcvbuf 524288
            [2.4.4-RELEASE][root@sg4860.local.lan]/var/etc/openvpn: 
            

            notice
            tls-auth /var/etc/openvpn/client3.tls-auth 1

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • S
              shahid3507
              last edited by

              @johnpoz
              My bad, missed it.
              By the way do you know anything regarding Bidirectional ping part ?
              I have added any to any config in firewall for all interfaces still it dosen't work.

              Can you please help me in this on how to do it ?
              cc: @Rico

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                What are you trying to ping?

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 0
                • S
                  shahid3507
                  last edited by

                  The tunnel is connecting and I am able to ping the AWS side (Access server subnet) but when I am trying to ping the client side form the access server or the subnet than it's not reachable.

                  1 Reply Last reply Reply Quote 0
                  • S
                    shahid3507
                    last edited by

                    Any Idea regarding this connectivity stuff @Rico ??

                    1 Reply Last reply Reply Quote 0
                    • RicoR
                      Rico LAYER 8 Rebel Alliance
                      last edited by

                      Not atm, I don't have any experience with OpenVPN AS or AWS, sorry. ๐Ÿ˜‘
                      But my guess is @johnpoz will come back with some ideas. ๐Ÿ˜€

                      -Rico

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by

                        Ping what exactly? Can you ping the lan IP of pfsense from your aws side?

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                        1 Reply Last reply Reply Quote 0
                        • S
                          shahid3507
                          last edited by

                          No I can't @johnpoz

                          1 Reply Last reply Reply Quote 0
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator
                            last edited by

                            What is your routing on your aws side show you how to get to your lan network?

                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                            If you get confused: Listen to the Music Play
                            Please don't Chat/PM me for help, unless mod related
                            SG-4860 24.11 | Lab VMs 2.8, 24.11

                            1 Reply Last reply Reply Quote 0
                            • S
                              shahid3507
                              last edited by

                              There was a need to add route for specific traffic and change the OpenVPN settings to act as site to site VPN.
                              It is now working.

                              Thanks for your help @johnpoz @Rico

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