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

    OpenVPN Automatic Rule Generation?

    Scheduled Pinned Locked Moved OpenVPN
    11 Posts 3 Posters 2.5k 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.
    • M
      mikeisfly
      last edited by

      for got to mention that the client site is running 2.1-RC0 (i386) built on Fri Jul 19 21:50:46 EDT 2013 and the server site is running 2.1-RC0 (i386) built on Thu May 23 19:52:31 EDT 2013 FreeBSD 8.3-RELEASE-p8.

      1 Reply Last reply Reply Quote 0
      • K
        kejianshi
        last edited by

        What is the subnet you gave your pfsense?  Is it 192.168.1.1 on the LAN?
        What Subnet did you tell openvpn to use?
        Finally what subnet is your client on? 
        Is the client subnet the same as one your pfsense is using or that openvpn will assign to clients?
        Just wondering if there is some conflict from the same subnet being re-used in your mix somewhere?

        1 Reply Last reply Reply Quote 0
        • M
          mikeisfly
          last edited by

          No conflict,

          Local subnet 192.168.11.0/24
          remote subnet 192.168.120.0/24,192.168.121.0/24

          I have everything working now I just added the needed ports to the wan firewall rule. I'm just trying the understand the behavior of the OpenVPN settings. I thought like IPsec a rule was automatically generated for you so that I didn't need to do it. I have no problem opening the ports manually. Now that I'm looking at my home pfsense set up it looks like I have these ports opened up, I just didn't remember doing it myself.

          1 Reply Last reply Reply Quote 0
          • K
            kejianshi
            last edited by

            Seems its always automatically opened those ports for me unless I had some other rule already in place on those ports.
            Strange that you had to do it by manually like that. I'm glad it works.  Although, I don't see why it ever worked at all before if thats the case?
            As you said, there was apparently no rule in place, so should not have worked at all for any period of time before.
            Are you 100% sure you didn't accidentally delete the rule after creating your openvpn server?
            Now that I have done.

            1 Reply Last reply Reply Quote 0
            • M
              mikeisfly
              last edited by

              It is possible that I did that, I tried making the server the opposite side when it couldn't get it to work reliably. Weird, I will have to play with this some more so we know the behavior. This is why we need the PfSense 2.1 book to come out! I'm ready to purchase.

              1 Reply Last reply Reply Quote 0
              • M
                mikeisfly
                last edited by

                You do have to make a rule manually. http://doc.pfsense.org/index.php/OpenVPN_Site-to-Site_(Shared_Key,_2.0) answered my own question. Sorry for my ignorance.

                1 Reply Last reply Reply Quote 0
                • M
                  mikeisfly
                  last edited by

                  I'm still wondering why any other port other than 1194 worked at all. I did have a rule to allow OpenVPN traffic. Does that cover a range of ports or just 1194? Is PfSense allowing additional ports to ingress the WAN connection? Like I said it was problematic but I was able to get communication between sites for a little while without allowing the specific ports needed by creating the Firewall Rule.

                  1 Reply Last reply Reply Quote 0
                  • K
                    kejianshi
                    last edited by

                    I'm 100% absolutely sure that my ports were opened automatically when I used the wizard to configure mine initially now because I would never have manually labelled them the way they are labelled.  But Mine here are not site-to-site so thats probably the difference.

                    I see they use no wizard for site-to-site setup in that how-to.

                    1 Reply Last reply Reply Quote 0
                    • D
                      doktornotor Banned
                      last edited by

                      Yeah, the wizard creates the rules, otherwise you need to set up your own.

                      1 Reply Last reply Reply Quote 0
                      • M
                        mikeisfly
                        last edited by

                        That is correct I didn't use the wizard to make the site to site. I will do some further testing to make sure there is leakage of ports. For the record I'm not saying that PfSense is leaky I'm just noting that in my situation I was getting flakey connection with my remote site. If I didn't have the port opened up I would expect no connection. I will document the steps if anyone wants to try to duplicate the steps.

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