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

    Setting up OpenVPN to connect from an external source

    Scheduled Pinned Locked Moved OpenVPN
    10 Posts 5 Posters 4.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.
    • N
      netrefer
      last edited by

      Hi,

      I've been struggling to make this work for a long time now.  I am trying to configure OpenVPN with the tutorial pasted below:

      http://www.scribd.com/doc/8142908/pfSense-OpenVPN-Tutorial

      For some reason it's being stuck somewhere.  Everything has been set according to the tutorial i went through.  Attached you can find the logs which are being listed during the attempt of connecting to Pfsense.  What can be the problem?

      Chris
      pfsense_1.JPG
      pfsense_1.JPG_thumb
      pfsense_2.JPG
      pfsense_2.JPG_thumb
      pfsense_3.JPG
      pfsense_3.JPG_thumb

      1 Reply Last reply Reply Quote 0
      • N
        netrefer
        last edited by

        Can somebody reply or shall I submit another ticket?

        1 Reply Last reply Reply Quote 0
        • C
          cougarmaster
          last edited by

          Threats are not a great thing in forums. I think you need to really google harder and do lots of test. Then it might help you understand what to ask.

          1 Reply Last reply Reply Quote 0
          • GruensFroeschliG
            GruensFroeschli
            last edited by

            Your screenshots dont really say anything.

            1: What is your goal.
            2: How is it not working the way you want.
            3: How do you test.

            We do what we must, because we can.

            Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

            1 Reply Last reply Reply Quote 0
            • A
              afvadmin
              last edited by

              try checking to see if both the client and the server are using the same protocol  tcp or udp settings it looks like you may have the wrong protocol on you client remember udp is better or so i have heard, you can check the settings in the config folder in the open vpn directory and open the ovpn file with notepad check and ensure that the protocol matches your server

              1 Reply Last reply Reply Quote 0
              • N
                netrefer
                last edited by

                i set the port as UDP.  Can someone tell me if i can use telnet on UDP ports by any chance as i am curious why i cannot telnet the server with the udp port 1194?  i went through a tutorial again and when trying to connect it stops when it's trying to authenticate with the server.

                The error occurring is different from the one I posted previously.

                1 Reply Last reply Reply Quote 0
                • N
                  netrefer
                  last edited by

                  below is the error that's being displayed everytime it tries to reconnect/restart..

                  Fri Nov 06 15:43:58 2009 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
                  Fri Nov 06 15:43:58 2009 TLS Error: TLS handshake failed
                  Fri Nov 06 15:43:58 2009 TCP/UDP: Closing socket
                  Fri Nov 06 15:43:58 2009 SIGUSR1[soft,tls-error] received, process restarting
                  Fri Nov 06 15:43:58 2009 Restart pause, 2 second(s)
                  Fri Nov 06 15:44:00 2009 NOTE: OpenVPN 2.1 requires '–script-security 2' or higher to call user-defined scripts or executables
                  Fri Nov 06 15:44:00 2009 Re-using SSL/TLS context
                  Fri Nov 06 15:44:00 2009 LZO compression initialized
                  Fri Nov 06 15:44:00 2009 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
                  Fri Nov 06 15:44:00 2009 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
                  Fri Nov 06 15:44:00 2009 Local Options hash (VER=V4): '41690919'
                  Fri Nov 06 15:44:00 2009 Expected Remote Options hash (VER=V4): '530fdded'
                  Fri Nov 06 15:44:00 2009 Socket Buffers: R=[8192->8192] S=[8192->8192]
                  Fri Nov 06 15:44:00 2009 UDPv4 link local: [undef]
                  Fri Nov 06 15:44:00 2009 UDPv4 link remote: my ip address:1194

                  1 Reply Last reply Reply Quote 0
                  • N
                    netrefer
                    last edited by

                    can someone please update me on this ticket?

                    i didn't manage to solve this as yet, therefore I need proper feedback..

                    Regards,
                    Chris

                    1 Reply Last reply Reply Quote 0
                    • GruensFroeschliG
                      GruensFroeschli
                      last edited by

                      Obviously your client cannot connect to the server.
                      Most probably you have a firewall rule in place blocking access to the server.
                      Or the server isn't running at all.

                      You dont really give any information besides some logs which you dont even tell where they are from…
                      If you expect help you really need to start giving information about yout setup (a diagram !!!) your firewall-rule, your NAT-rules, what your endgoal is, the server-config, the client-config, etc.

                      We do what we must, because we can.

                      Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                      1 Reply Last reply Reply Quote 0
                      • B
                        Briantist
                        last edited by

                        To be clear, netrefer, this is a user forum, where we try to help each other out. This isn't a ticket system for technical support. Developers of the software do post here at times, but no one is obligated is to resolve your issue. If you want help, you need to include relevant information and answer the questions people are asking.

                        To answer one of yours, no you cannot use telnet to connect to a UDP port.

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