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.
    • 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.