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

    No lan to wan after installing openvpn package...

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 3 Posters 944 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.
    • J
      JimS
      last edited by

      Just getting started with pfsense. pfsense was set up by someone else and basic traffic was passed from lan to wan. I installed openvpn client and have it connected to a VPS with openvpn server which works to give me access to local network (behind CGNAT). However it seems to have broken my access to the internet on wan port. There is a rule to pass traffic from lan to wan, any protocol. Source is lan net, dest is wan net. But logs show traffic is blocked.

      JKnottJ 1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott @JimS
        last edited by

        @jims

        One of the options is to force all client traffic through the VPN. Have you enabled that?

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          What is actually shown in the firewall logs?

          J 1 Reply Last reply Reply Quote 0
          • J
            JimS @stephenw10
            last edited by

            @stephenw10 Firewall shows lan interface Default deny rule IPv4 source is my pc, destination is ip of pfsense lan port.

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Destination WANnet does not include the LAN IP. Or anything outside the actual WAN subnet.
              That's probably not the rule you want. Let's see a screenshot of your LAN rules. The default anti-lockout rule should pass that.

              Steve

              J 1 Reply Last reply Reply Quote 0
              • J
                JimS @stephenw10
                last edited by

                @stephenw10 Lan rules. lanrules.PNG

                J 1 Reply Last reply Reply Quote 0
                • J
                  JimS @JimS
                  last edited by

                  @jims I changed destination from wan to any and it is working. Can someone explain why wan doesn't work?

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    JimS @JimS
                    last edited by

                    @jims And if I have an openvpn port how does the lan traffic get directed to the wan port instead of the openvpn connection?

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by stephenw10

                      The system aliases for each interface (LANnet, WANnet etc) are only the actual interface subnet.

                      So often your ISP will provide your WAN IP and subnet something like 1.2.3.4/29 or maybe only a single IP if it's PPP connection. WAN net is only the IPs in that /29.

                      It's a common mistake with new users because many other firewalls with zone based filtering use the WAN 'zone' to mean the entire internet.

                      Traffic routing from LAN via WAN or OpenVPN would depend on the system routing tables since the LAN rules do nor have any policy based routing on them (a gateway set).
                      The system routing tables are usually updated by the OpenVPN client when it connects based on whatever the server passes it. Most commercial providers will pass a new default route. Often that's undesirable so you can set the OpenVPN client to ignore routes passed to it and use policy based routing instead. That's what I do.

                      Steve

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