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

    LAN Network No Internet

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 3 Posters 1.1k 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.
    • E
      ElliotL
      last edited by

      Hi all,

      Deploying a fresh install pfSense box at home to create a new private network for a homelab. pfSense is version 2.5.2-release.

      Setup is as follows:

      Main Router: Virgin Superhub 4 (Can't set to modem mode as other parts of my home network rely on it as a router and for WiFi.) Has 1 static public IP, and currently uses the 192.168.0.x/24 network for DHCP.

      pfSense box
      em0 - WAN: 192.168.0.2
      igb0 - LAN: 192.168.1.1/24

      WAN -> 1.1.1.1 100% success, as expected.
      LAN -> 1.1.1.1 100% packet loss
      LAN -> 192.168.0.1 100% packet loss
      Client -> LAN 100% success, as expected.

      NAT is currently set up as automatic. I've looked around and see people have set up 1:1 NAT rules with my Static IP as a Virtual IP, but I am not sure whether that's necessary here.

      Connected to the LAN side at the moment, I just have my laptop, which can connect to LAN fine, but it can also not connect to the internet.

      Routes:

      alt text

      NAT:

      alt text

      I have also unchecked the "Block private networks and loopback addresses" for both my WAN and LAN interfaces. "Block bogon networks" is still checked for WAN.

      Any suggestions? Happy to try them out as necessary.

      E 1 Reply Last reply Reply Quote 0
      • E
        ElliotL @ElliotL
        last edited by

        Welp, I appear to have solved it by disabling DHCP. The only DHCP was on the LAN network, I'd love an explanation to that!

        This actually works better for me as it means I can now run maas as the DHCP server behind pfsense. I have failed successfully.

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

          @elliotl said in LAN Network No Internet:

          Welp, I appear to have solved it by disabling DHCP.

          Were you running a DHCP server on the WAN connection??? Normally, you'd use the DHCP client.

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

          E 2 Replies Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            From the connection results it looks as though the client you were testing from had a bad default route or no default route. pfSense would normally hand out it's own interface IP for clients to use as their gateway though, which should have worked fine here. Some conflict on the client perhaps?

            Steve

            1 Reply Last reply Reply Quote 0
            • E
              ElliotL @JKnott
              last edited by

              @jknott

              Nope, just on the LAN interface. :)

              1 Reply Last reply Reply Quote 0
              • E
                ElliotL @JKnott
                last edited by ElliotL

                @jknott @stephenw10 Doesn't appear to be an issue client-side. When DHCP was enabled, both letting it accept a DHCP lease or by setting a static IP client side didn't seem to work.

                I have now stumbled into my next issue regarding devices WAN side of pfsense interacting with LAN devices. I don't seem to be able to set up a static route like this:

                alt text

                What would suggest is the best possible way of allowing devices WAN side (192.168.0.x) to connect to 192.168.1.x devices without using a static route? I've tried a hybrid NAT setup as shown here but it doesn't seem to work. Disabling NAT isn't an option since it drops internet connectivity LAN side.

                alt text

                Perhaps a 1:1 NAT rule using my GW IP as a virtual IP?

                EDIT: Should also note I have set up a FW rule for this to work:

                alt text

                EDIT 2: Just tried 1:1 NAT from WAN to LAN and no luck there.

                alt text

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

                  pfSense will route that traffic by default as long as a firewall rule exists on WAN.

                  Where you need the static route is on the WAN devices so they know how to reach the LAN subnet via the pfSense WAN address. Not in pfSense.

                  If you want to route, rather than NAT, the other way you probably want a do-not-NAT outbound rule for traffic from the LAN subnet to the WAN subnet.

                  Steve

                  E 1 Reply Last reply Reply Quote 0
                  • E
                    ElliotL @stephenw10
                    last edited by

                    @stephenw10

                    Hi Stephen,

                    I've created the NO NAT rule for LAN, sadly it still doesn't seem to work.

                    alt text

                    Here is my updated outbound rules table for your reference:

                    alt text

                    Since I can't do static routes from the WAN devices (things like phones ect, and the hub won't either) is there an alternative approach?

                    Additional info that might be helpful:

                    Routes:

                    alt text

                    1 Reply Last reply Reply Quote 0
                    • E
                      ElliotL
                      last edited by

                      Fixed once again! I've set up a Open VPN service and that seems to have solved all of my problems.

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

                        Yeah you can't test that with ping like that because the route-to rules will force anything sourced from the WAN via the WAN gateway. But even if it didn't that only tests routing inside pfSense, which should work by default.

                        An alternative to adding routes on the clients is to add routes to the upstream router so traffic from clients is sent back to pfSense but that is a classic asymmetric route with all that implies:
                        https://docs.netgate.com/pfsense/en/latest/troubleshooting/asymmetric-routing.html

                        A VPN will allow it even if you don't really need the encryption there.

                        Steve

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