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

    OpenVPN tutorial for simple setup?

    Scheduled Pinned Locked Moved OpenVPN
    13 Posts 4 Posters 2.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.
    • DerelictD
      Derelict LAYER 8 Netgate
      last edited by

      The guide exists that way for a reason - because it is reasonably secure.

      You would do better to figure out a way to always have the client export file on you in a secure manner.

      You really don't want to be setting up your OpenVPN connection willy-nilly on strange systems.

      No, you want to use your own CA, not something like Let's Encrypt.

      Just do this:

      https://doc.pfsense.org/index.php/OpenVPN_Remote_Access_Server

      Chattanooga, Tennessee, USA
      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
      Do Not Chat For Help! NO_WAN_EGRESS(TM)

      1 Reply Last reply Reply Quote 0
      • valnarV
        valnar
        last edited by

        None of the tutorials explain why there ends up being two OpenVPN tabs (interfaces?) on the firewall tab, nor that I have to add and enable the new OPT1 (OpenVPN) interface first…even though no traffic and no counters flow through it.

        So it seems either they are outdated, or incomplete.  Is there a better tutorial around for 2.40RC?

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

          Not sure what your doing but sorry 2 openvpn tabs do not show up.. Setting up openvpn server takes all of 30 seconds… You click the wizard answer the bouncing ball and your done.. If your having some issues with with that simple wizard that my 80 year old grandma could follow then your going to have to give some insight to what your seeing if you want help..

          What tutorials are you following?  Some idiots blog post from version 1.2?

          Did you look at the link that Derelict provide.. What part of that documentation do you feel is wrong and be happy to update it.

          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
          • valnarV
            valnar
            last edited by

            Well, I had to add/assign the new OPT1 interface that popped up (which I renamed OVPN), enable it, add a "push route" option for my LAN under the custom options in OpenVPN and then it started working.  This was after the Wizard, and I had to source that info from a few different places.  If all you need to do is the Wizard, then it doesn't work in 2.41.  Although admittedly I do need to go back to 2.40RC and try again.

            1.png
            1.png_thumb
            2.png
            2.png_thumb
            3.png
            3.png_thumb

            1 Reply Last reply Reply Quote 0
            • DerelictD
              Derelict LAYER 8 Netgate
              last edited by

              For normal access into a server you don't need assigned interfaces or anything like that. Not sure what you did.

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

              1 Reply Last reply Reply Quote 0
              • valnarV
                valnar
                last edited by

                OK that's what I thought.  I don't know how to fix it.  I'll just start over from scratch and re-do it all.

                1 Reply Last reply Reply Quote 0
                • valnarV
                  valnar
                  last edited by

                  I installed 2.40 release from scratch, did the OpenVPN Wizard and the same thing happened.  How does this not happen to everyone??!

                  There was an OPT1 interface created in the Wizard and I cannot route a client to the inside of my home without first activating this interface.  Doing so also provides me with an OpenVPN firewall interface (already there from the Wizard) as well as this OPT1 interface.

                  Is this normal?  If so, it should be added to the documentation as an extra step.  If not, then what I am I doing differently?

                  interfaces.jpg
                  interfaces.jpg_thumb

                  1 Reply Last reply Reply Quote 0
                  • DerelictD
                    Derelict LAYER 8 Netgate
                    last edited by

                    Since you decided to obfuscate your interfaces it's pretty much impossible to see what you have there for OPT1. It looks completely unrelated to the OpenVPN server process though since it is sitting there unassigned.

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

                    1 Reply Last reply Reply Quote 0
                    • valnarV
                      valnar
                      last edited by

                      Not OPT1, I apologize.  I meant that ovpns1 available network port that popped up.  That is not in any various guide.

                      1 Reply Last reply Reply Quote 0
                      • DerelictD
                        Derelict LAYER 8 Netgate
                        last edited by

                        It is going to be there after the OpenVPN server or client is created. It is always there. You have to assign an interface to do things like outbound NAT to an OpenVPN server.

                        When running a server you don't have to assign it at all for basic functionality.

                        The guides would all be 1000 pages if they covered all the things you don't need to do.

                        Chattanooga, Tennessee, USA
                        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                        Do Not Chat For Help! NO_WAN_EGRESS(TM)

                        1 Reply Last reply Reply Quote 0
                        • D
                          dougs
                          last edited by

                          @Derelict:

                          No, you want to use your own CA, not something like Let's Encrypt.

                          https://doc.pfsense.org/index.php/OpenVPN_Remote_Access_Server

                          Derelict,

                          Why not use Let's Encrypt? I don't want to have to export the server certificate to those needing it in order to bypass the warning for invalid certificate.

                          ~Doug

                          1 Reply Last reply Reply Quote 0
                          • DerelictD
                            Derelict LAYER 8 Netgate
                            last edited by

                            What warning?

                            The client is told what CA to use in the export file.

                            It's not like an SSL connection to a web site. It is a VPN.

                            If you could use a public CA for your OpenVPN server, then ANY certificate issued by that public CA would pass. And you wouldn't be in control of revocations, etc.

                            Export the configuration for the client. That's how it works.

                            Chattanooga, Tennessee, USA
                            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                            Do Not Chat For Help! NO_WAN_EGRESS(TM)

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