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

    CONNECTION WITH REMOTE SERVER NOT ESTABLISHED BECAUSE OF A SERVER VERIFICATION METHOD ERROR

    Scheduled Pinned Locked Moved OpenVPN
    45 Posts 6 Posters 3.4k 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.
    • GertjanG
      Gertjan @romantik70
      last edited by

      @romantik70 said in CONNECTION WITH REMOTE SERVER NOT ESTABLISHED BECAUSE OF A SERVER VERIFICATION METHOD ERROR:

      a french provider sgpv.fr , cheap one but in doesnt give much cupport on pfsense

      That must be shpv.fr ....
      True, no doc on there site - nothing.

      They should have send you a ovpn file.
      Something like this :

      dev tun
      tun-ipv6
      persist-tun
      persist-key
      cipher AES-256-CBC
      ncp-ciphers AES-256-GCM:AES-128-GCM
      auth SHA256
      tls-client
      client
      resolv-retry infinite
      remote  ovpn-20.shpv.fr 1194 udp
      setenv opt block-outside-dns
      lport 0
      verify-x509-name "ovpn-20.shpv.fr" name
      remote-cert-tls server
      
      <ca>
      -----BEGIN CERTIFICATE-----
      MIIEejCCA2KgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBhTELMAkGA1UEBhMCRlIx
      CzAJBgNVBAgTAkxHMQ8wDQYDVQQHEwZDdXpvcm4xEDAOBgNVBAoTB015IENvbXAx
      ....
      1MfwfMdquqHOhL5g50oNQx2IPzEAxQYFN50ldEa2UISrFAT1XTEzt4WColWm6BVN
      KTRaTO1TFK6r0vBduzLKT6+67L1d94R7PhDmxlo+iHFAxGQZ+0j47kNreXd+cpPA
      31jwp8xl3G6sP5uzEgjDhpXsLJDWxA8+91hNB+SzRJIHO/KoUulIOW0yKDAzBg==
      -----END CERTIFICATE-----
      </ca>
      <cert>
      -----BEGIN CERTIFICATE-----
      MIIFyzCCBLOgAwIBAgIBCDANBgkqhkiG9w0BAQsFADCBhTELMAkGA1UEBhMCRlIx
      CzAJBgNVBAgTAkxHMQ8wDQYDVQQHEwZDdXpvcm4xEDAOBgNVBAoTB015IENvbXAx
      .....
      bPdyJELvVKb2R1KmSeIhZWD35DTXFXLFWjrqMNGEK9IS1BI0tKBe9d65AG6Wa4Fm
      vprkfrgTJXzgpwn0IvQuKywX6SiTSsXNdKQguRlW6IXRRjYgSa/zzGRcGhM4Tbc=
      -----END CERTIFICATE-----
      </cert>
      <key>
      -----BEGIN PRIVATE KEY-----
      MIIJQwIBADANBgkqhkiG9w0BAQEFAASCCS0wggkpAgEAAoICAQCiCfugEqEwwYLt
      WB30IU69/WyuNmie6u+8BuB/YqCrvaw+OE/k9CfBOPSnz6uTdhXzNuVsCEgohYx5
      ......
      ofYH48jmh0k7phi7NIpUOX3p6p6lZzfAKwIcWL02sUsYl0Ksq/t4FcOxfjM5SMCs
      1DUju9boXwK3W0iYaN840z458YshdVJswNBea+pXUrxThZAwignlF1D5X2APBgCj
      +w1macvEpWG5bEVWLk+F15ynoBSdqWQ=
      -----END PRIVATE KEY-----
      </key>
      <tls-crypt>
      #
      # 2048 bit OpenVPN static key
      #
      -----BEGIN OpenVPN Static key V1-----
      893c76e84187bb1e40f987c83db4d256
      ....
      ece32853d36402fe32c384500c0baa5d
      d98ddda17568898ed19b75671bb24467
      8c5a6102dc6ab3275c6fa36d8853b668
      -----END OpenVPN Static key V1-----
      </tls-crypt>
      

      The <ca> .... </ca> has to be imported in the System > Certificate Manager > CAs : : click on "Add" and then select "Import an existing Certificate Authority" - Don't fille in the "Certificate Private Key (optional)", just the "Certificate data".
      The <cert> .... </cert> and <key> ... </key> jhave to be imported into System Certificate Manager > Certificates : click on "Add" and then select "Import an existing Certificate"

      Now create a OPVN client.
      Over there, you'll be copy pasting the <tls-crypt>, also present in the ovpn file.
      Most of the settings can be set directly, some ned to be set after trail-and-error testing.

      Btw : it is highly advisable to choose a provider that gives details about how to set openvpn - as a client - on your side.
      This often boils down to installing https://www.ovpn.com/en/guides/windows-openvpn-gui - and then 'import' the ovpn file your supplier gave you => done. Millions are using OpenVPN like that, we all need this app so we can connect from "home" to our company infrastructure a safe way.
      I advise you strongly to test this first. Still the OpenVPN GUI client and connect it to your VPN provider.
      Take note of the logs .... and when all works as aspected, try implementing aan openvpn client on pfSense.

      Note : confirm that you want to connect your entire network to this VPN ...

      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
      • R
        romantik70 @kiokoman
        last edited by

        @kiokoman man thank you for all … but your believes stay with you and keep them with you ….. dont answer any more to my topics it's not either the right way or the right tone to do it i will be on my own…. bye

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Hmm. He really did just ask you to post one thread, which is reasonable. I think there's just a misunderstanding here. 😕

          Steve

          1 Reply Last reply Reply Quote 0
          • R
            romantik70
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • R
              romantik70
              last edited by

              he is a red neck ....do you understand what is a red neck a peasant with peaseant behaviours that's it ....much thank to you guidance but still i havent solved the issue ...i will try again

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

                As for the questions :
                What did your receive from sgpv.fr ? is it really in reality shpv.fr ? A ovpn file ? Something else ?
                What do they propose to actually use your connection ?

                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
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  @romantik70 said in CONNECTION WITH REMOTE SERVER NOT ESTABLISHED BECAUSE OF A SERVER VERIFICATION METHOD ERROR:

                  WARNING: No server certificate verification method has been enabled.

                  That shouldn't stop you from connecting, that is just a warning..
                  I suggest you up your logging level to get more info on why exactly your not connecting

                  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.7.2, 24.11

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    What is you current OpenVPN client config after making those changes?

                    What is the provider asking for?

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • R
                      romantik70
                      last edited by

                      i am only certain about a thing : the vpn works becuse i have tried to connect an vm with the windows openvpn program . on that vm there is a server web and i have put an html page .Connecting to that web server's page through an other connection i can load correctly the web page , so i am sure that the vpn connection has no mulfunction.. What i cannot do is to make it work with pfsense , but i need it , because my network has multiple VMs , that need to share that public static ip address that the vpn offers to me. In the picture attached there is a schetch of my network . The first time i did it , almost 1 year ago with the same provider shpv.fr it worked.After a period of time they changed configuration and i got that error. i quitted the service for one year because they told me that they didnt give pfsense support , the same answer they have given now , afterall , and i didnt manage to use the service any more.i have searched other privider that provides similar services at the same cheap price but i havent been able to find one similar so i have decide to return with them , but the support is scarce , after all they are french .my network.png .

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

                        That drawing is pretty useless to be honest..

                        What is the ovpn file they gave you to connect with?

                        Going to state again that warning has is not the reason your failing to connect.. Its a warning that your not validating the server cert.. That is all... its not a failure reason..

                        I see the same error when I connect to my openvpn AS,

                        Dec 17 12:20:05 	openvpn 	94221 	WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info. 
                        

                        Connects just fine...

                        Dec 17 12:20:11 	openvpn 	94221 	Initialization Sequence Completed
                        Dec 17 12:20:11 	openvpn 	94221 	WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
                        Dec 17 12:20:06 	openvpn 	94221 	/usr/local/sbin/ovpn-linkup ovpnc3 1500 1553 172.27.240.11 255.255.240.0 init
                        Dec 17 12:20:06 	openvpn 	94221 	/sbin/route add -net 172.27.240.0 172.27.240.1 255.255.240.0
                        Dec 17 12:20:06 	openvpn 	94221 	/sbin/ifconfig ovpnc3 172.27.240.11 172.27.240.1 mtu 1500 netmask 255.255.240.0 up 
                        

                        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.7.2, 24.11

                        R 1 Reply Last reply Reply Quote 0
                        • R
                          romantik70
                          last edited by

                          whatever warnig or error it is the vpn it's not working i dont have the inner nat address it's a 172.etc.tct.etc address for translating tcp pockets inside my network . overall the vpn it's not working . and i cannot find the reason it isnt .

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

                            UP our log level in your client!! So you can see more detail.

                            loglevel.jpg

                            If need be take it past 5 into the debug level..

                            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.7.2, 24.11

                            1 Reply Last reply Reply Quote 0
                            • R
                              romantik70 @johnpoz
                              last edited by

                              @johnpoz i didnt draw it for any other reason to show my network i didnt meant to show it to you for explanatory reasons . however , if you see my last screenshot there shvpn failure.png ould be an ip address instead of that n/a. to the OPT interface .

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

                                Well our not going to get an IP if you don't connect, we can not see WHY your not connecting without up your log level to give us detail on the connection attempt that warning of not verify server cert has nothing to do with why the connection is failing.

                                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.7.2, 24.11

                                1 Reply Last reply Reply Quote 0
                                • PippinP
                                  Pippin
                                  last edited by

                                  Not providing asked info, no help...

                                  I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
                                  Halton Arp

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    romantik70
                                    last edited by

                                    these are the logs it gives out when i try to connect man if you van help you are the best in the forum.logs.png

                                    1 Reply Last reply Reply Quote 0
                                    • stephenw10S
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      The client tries to connect and the other side does not respond at all. After 1 min it gives up and starts again.
                                      Something there is completely mismatched.

                                      We need to see the info the provider sent you to connect to. Not the password, cert etc.

                                      And the current config in pfSense of the OpenVPN client.

                                      Steve

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        romantik70
                                        last edited by johnpoz

                                        "zip removed by mod" here is the file they provided to me

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

                                          Not related (edit : but will totally break everything) : Correct this :

                                          17de2e7a-98f8-4a27-a2b4-8c05a421f0b0-image.png

                                          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
                                          • stephenw10S
                                            stephenw10 Netgate Administrator
                                            last edited by

                                            Ok! Now we're getting somewhere.

                                            The server is at ovpn-20.shpv.fr on port 443 and you're connecting to port 1194.
                                            It's also using TCP and you're connecting using UDP. So not surprisingly it's not responding!

                                            You should use the host name there rather than the IP directly as you have in the earlier screenshot. That IP might change.

                                            Correct those things on the client. Post a new screenshot of the client setup.
                                            Re-test.

                                            Steve

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