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

    [Solved] Can't route LAN through OpenVPN

    Scheduled Pinned Locked Moved OpenVPN
    15 Posts 4 Posters 1.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.
    • KOMK
      KOM
      last edited by

      Are you the guy that posted this same problem on Reddit? Post screens of your LAN rules. If you're that guy, you had your rule below the Allow All rule and you didn't clear your states before testing again.

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

        @KOM said in Can't route LAN through OpenVPN:

        Are you the guy that posted this same problem on Reddit?

        Nope

        Post screens of your LAN rules.

        Capture du 2019-05-23 19-02-09.png

        1 Reply Last reply Reply Quote 0
        • KOMK
          KOM
          last edited by

          Ah right, he was looking to redirect one specific LAN IP...

          Well, established states aren't affected by rule changes. Did you clear your states before trying your test again?

          I setup NAT on manual and duplicate every rule replacing WAN with OpenVPN.

          I'm not sure you have to do anything with outbound NAT just to redirect to your VPN via policy routing.

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

            @KOM said in Can't route LAN through OpenVPN:

            Did you clear your states before trying your test again?

            .... That was it....😭

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

              I can connect to VPN Servers just fine but I'm not able to use the VPN connection to access the Net...

              Here are my LAN FW rules:
              Sélection_002.png
              Here are my NAT Rules:
              Sélection_003.png

              The problem is when a host on my LAN tries to access the Web, webpages load and end up on a timeout, I can't access anything. I thought that was DNS related but even with an IP address I have the same problem.

              Do you have an idea ?

              1 Reply Last reply Reply Quote 0
              • KOMK
                KOM
                last edited by

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

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

                Firewall rules are evaluated top-down first-match wins and all other rules are ignored after a match.

                Look at your LAN rules. Your third rule says that all traffic from LAN net goes out the default gateway WAN_DHCP. Now do you have an idea as to why no traffic is going out the VPN?

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

                  Sorry I forgot to mention the third rule is concerning LAN traffic going to a specific (blurred) destination.

                  1 Reply Last reply Reply Quote 0
                  • KOMK
                    KOM
                    last edited by

                    Yeah, and I still had my head around your old problem.

                    If it's dying and timing out then it sounds like the routing is working, but there is an issue with your VPN provider. Perhaps you are getting connected at a basic level, but you aren't getting the route updated or something. I'm not a VPN expert so I could only guess here.

                    Anything in System Log - OpenVPN? Increase the client verbosity and then see if there is something in the logs.

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

                      That's the twist : I tested several servers with two differents providers so my guess is it's PFSense conf that is the problem ?

                      1 Reply Last reply Reply Quote 0
                      • KOMK
                        KOM
                        last edited by

                        Possibly. If you give it an incorrect configuration then it's possible that something won't work as expected.

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

                          Well, nobody seems to have a clue of what's causing this ?

                          I B 2 Replies Last reply Reply Quote 0
                          • I
                            isolatedvirus @notarobot
                            last edited by

                            @notarobot
                            ping 8.8.8.8
                            perform a traceroute to 8.8.8.8

                            the traceroute may fail depending on your vpn provider's settings. Confirm connectivity to the vpn provider in the logs (VPN connection stays up, no errors etc..)

                            Are you running squid or proxying anything?

                            1 Reply Last reply Reply Quote 0
                            • B
                              bcruze @notarobot
                              last edited by

                              @notarobot said in Can't route LAN through OpenVPN:

                              Well, nobody seems to have a clue of what's causing this ?

                              sure do

                              if you are not using protonvpn DNS servers. you wo'nt be able to view webpages

                              services > dhcp server. Add the addresses you want to go out that tunnel with static addresses. then under DNS servers put protonvpn servers

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

                                I've reset my conf and started all over again and now it seems ok....
                                Don't know what was wrong though.

                                Thanks you all for you help

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