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

    Can't get LAN to route out OpenVPN tunnel

    Scheduled Pinned Locked Moved OpenVPN
    9 Posts 3 Posters 979 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.
    • G
      guido666
      last edited by

      I'm running pfSense 2.4.4, and I followed a couple guides. I've looked over several other guides, which are nearly identical (and I tried any differences).

      1. I set up the OpenVPN client, and the status says it is up. It lists a Virtual Address that looks good.
      2. I created an interface to the ovpnc1.
      3. I copied all the manual Outbound NAT rules, and set the copies to use the VPN's interface.
      4. I made a LAN firewall rule to route all 192.168.1.0/24 traffic to the VPN interface gateway. (I've tried a bunch of different settings in this rule, just to make sure, such as moving it to the bottom vs top, setting the source to LAN Net or an alias, etc.).
      5. In the firewall system logs I see traffic matching the rule (e.g. Rule = " LAN TRAFFIC –> VPN ")
      6. WhatIsMyIP checks show I'm still coming out my ISP's IP.
      7. Dashboard traffic graphs shows no throughput on the VPN interface... it's all on the WAN.
      8. I've tried disabling the standard LAN Net allow rule, and it cuts the connection to the internet.

      Is there something else I can try or check?

      1 Reply Last reply Reply Quote 0
      • G
        guido666
        last edited by

        It won't let me post a link to the guide I followed (marks it as spam, what a pain...), but it's on ExpressVPN's site, "How to set up pfSense with ExpressVPN (OpenVPN)"

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

          Follow the netgate hangout and you will be fine: https://www.netgate.com/resources/videos/openvpn-as-a-wan-on-pfsense.html

          -Rico

          G 1 Reply Last reply Reply Quote 0
          • G
            guido666 @Rico
            last edited by

            @rico Thanks, I'll go through that now.

            1 Reply Last reply Reply Quote 0
            • G
              guido666
              last edited by

              SOLUTION FOUND:

              In the video, around the 32m:23s mark, the presenter says that after assigning the OpenVPN to an interface, it will disrupt the internal workings and to "give it a kick" by editing and resaving the OpenVPN config.

              https://youtu.be/lp3mtR4j3Lw?t=1943

              I did that, and started the OpenVPN service again, and it instantly started sending traffic out the VPN like it should. "What's My IP" confirms it.

              Geez, I spent several hours scouring every setting in every config page I touched, checking logs, looking for where I went made a typo or missed something. Everything was perfect. For the record, I assume a reboot would have fixed it too, since it would have restarted the connection.

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

                Yes a reboot would have the same effect.

                -Rico

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

                  Yes. Every guide that is worth using will say that assigning an interface needs an OpenVPN instance restart.

                  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)

                  G 1 Reply Last reply Reply Quote 0
                  • G
                    guido666 @Derelict
                    last edited by

                    @derelict Perhaps idealistically, but I read numerous guides for setting up OpenVPN on pfSense and not a single one mentioned it. Even the video only mentioned it as an interesting tip (which suggests it's not an obvious or well known point). Either way, I'm glad I know now. Hopefully the pfSense developers will add a way for it to restart it automatically.

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

                      Probably not.

                      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.