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

LAN cannot access internet

Scheduled Pinned Locked Moved General pfSense Questions
lan connectiontraffic issues
16 Posts 5 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.
  • S
    syorke
    last edited by Jan 22, 2025, 5:02 PM

    I'm new to Netgate and I'm having an issue where none of the LAN traffic is allowed through the Netgate firewall.

    My setup is

    ISP modem - Netgate - Router

    I can log into the Router, the Netgate device, and the ISP modem via IP addresses.

    My outbound NAT is set to Automatic Outbound NAT.

    Yesterday I was having issues with DNS and did a factory reset which addressed that issue.
    Do I need to add outbound NAT rules?

    What other information will help debug this? I figured it would work out of the box.

    V 1 Reply Last reply Jan 22, 2025, 5:40 PM Reply Quote 0
    • V
      viragomann @syorke
      last edited by Jan 22, 2025, 5:40 PM

      @syorke said in LAN cannot access internet:

      ISP modem - Netgate - Router

      So you run a router behind pfSense?

      If so does it natting outbound traffic?

      If not you have to add an outbound NAT rule for the network behind the router on pfSense and additional need to add a static route for it.

      S 1 Reply Last reply Jan 23, 2025, 1:11 PM Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Jan 22, 2025, 6:54 PM

        Make sure you don't have a subnet conflict between any of those segments.

        If you connect to pfSense (Netgate) and go to Diag > Ping. Can pfSense itself ping out?

        S 1 Reply Last reply Jan 23, 2025, 2:35 PM Reply Quote 0
        • S
          syorke @viragomann
          last edited by Jan 23, 2025, 1:11 PM

          @viragomann no natting of outbound traffic, I kept the router as we have static IP addresses for some machines.

          I tried adding a gateway to the router and then adding a static route for for the network on the inside of the router. No success.

          The setup is Netgate internal- 192.168.1.1 -> 192.168.1.101 Router External(on PORT2LAN)- Router internal 192.168.0.1

          Gateway added 'Internal - 192.168.1.101'
          Static route added 192.168.0.0/24 using the gateway 192.168.1.101 on interface PORT2LAN

          Still no routing for the internal addresses. I'm at a loss as to why.

          Thanks again

          V J 2 Replies Last reply Jan 23, 2025, 1:24 PM Reply Quote 0
          • V
            viragomann @syorke
            last edited by Jan 23, 2025, 1:24 PM

            @syorke
            The static route seems correct.

            How is the pfSense WAN configured? DHCP or static?
            Check Status > Interface and ensure that there is a gateway shown up on the WAN interface.
            Check Status > Gateways if it's shown up as online.

            1 Reply Last reply Reply Quote 0
            • S
              syorke @stephenw10
              last edited by Jan 23, 2025, 2:35 PM

              @stephenw10 pfSense is able to ping out

              S 1 Reply Last reply Jan 23, 2025, 4:26 PM Reply Quote 0
              • S
                SteveITS Galactic Empire @syorke
                last edited by Jan 23, 2025, 4:26 PM

                @syorke Test pinging and traceroute from pfSense using its LAN interface.

                So far it sounds like your issue is the internal network can't get out? Do your rules on LAN allow that? (you might post those rules...) Can that internal network ping pfSense?

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote 👍 helpful posts!

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by Jan 23, 2025, 6:44 PM

                  @syorke said in LAN cannot access internet:

                  Static route added 192.168.0.0/24 using the gateway 192.168.1.101 on interface PORT2LAN

                  Check that pfSense has an auto outbound NAT rule for 192.168.0.0/24. I'd expect that static route to have added one but if not you'll need to add it manually if the internal router is not NATing.

                  1 Reply Last reply Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator @syorke
                    last edited by Jan 23, 2025, 7:02 PM

                    @syorke said in LAN cannot access internet:

                    I tried adding a gateway to the router and then adding a static route for for the network on the inside of the router. No success.

                    This would be setup on pfsense, not your downstream router. Here is a diagram for how to setup a downstream router.. There should really be no hosts on the network you use for transit/connector network or you going to run into asymmetrical routing most likely.

                    pfsense-layer-3-switch.png

                    The way you worded that - sounds like your trying to setup routing on your downstream router.. Really the only route it should have is its default one.

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    1 Reply Last reply Reply Quote 0
                    • S
                      syorke
                      last edited by Jan 24, 2025, 4:55 PM

                      I've not had any luck yet.

                      Current Setup
                      WAN - pfSense - 192.168.1.101 - internal router - 192.168.0.0

                      pfSense has an Automatic outbound NAT rule generation set, I tried setting a manual rule to map PORT2WAN to PORT1WAN, and there was no difference

                      PfSense can ping the outside WAN using the DNS name or IP. So, DNS is working from the pfSense.

                      Internal 192.168.0.0/24 address can log into the internal address of the router and can log into pfSense by IP address (on the LAN side) as well.

                      J 1 Reply Last reply Jan 24, 2025, 5:04 PM Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator @syorke
                        last edited by johnpoz Jan 24, 2025, 5:11 PM Jan 24, 2025, 5:04 PM

                        @syorke if you can login to pfsense IP address from behind your router then lets see your outbound nat rules.

                        If pfsense didn't know how to get to your client on the 192.168.0 network then you would not be able to log into it. So either your router is natting to pfsense or its not, and you adjust your rules on pfsense because by default the lan rules would only allow traffic from its own lan network.

                        Please post up your lan rules on pfsense, and your outbound nat rules..

                        What is the downstream routers default gateway? If not set or wrong, then you would still be able to talk to pfsense IP since its directly connected to pfsense IP 192.168.1.x - but if there is no gateway, or its not pfsense - then no you wouldn't send traffic to pfsense to be routed and natted to the internet.

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                        S 1 Reply Last reply Jan 27, 2025, 5:45 PM Reply Quote 0
                        • S
                          syorke @johnpoz
                          last edited by Jan 27, 2025, 5:45 PM

                          @johnpoz thanks for your response again

                          I'm thinking that the static routes might need changes or additions but I'm not sure what that should be

                          The default gateway on the downstream router is the pfsense PORT2LAN address.

                          PORT1WAN Firewall Rules
                          96379e7a-8aee-48e5-aae0-768a66c9c945-image.png

                          PORT2LAN Firewall Rules
                          80f200ec-80b9-4cd7-9d14-9e4fab40ffc7-image.png

                          Routing Gateways
                          fdcd795f-7aac-4dad-9d85-e41e5844706d-image.png

                          Static Routes
                          3bf2586f-63de-4337-981f-3240a7694dad-image.png

                          J 1 Reply Last reply Jan 27, 2025, 5:57 PM Reply Quote 0
                          • J
                            johnpoz LAYER 8 Global Moderator @syorke
                            last edited by johnpoz Jan 27, 2025, 6:10 PM Jan 27, 2025, 5:57 PM

                            @syorke what is that from - that is not pfsense gui have seen. Did create a spreadsheet in excl or something?

                            Where are you outbound nats?

                            How would that ever work - your rules on port2lan only allow the port2lan network to go anywhere.. So you coming from anything other than 192.168.1 would never get anywhere..

                            Clearly you didn't even look at the diagram I put up that says how to do a downstream router.

                            diagram.jpg

                            Your allowed to talk to the pfsense gui, because you have any as the source for your 80/443 ports

                            frule.jpg

                            When you add a route to some downstream network, pfsense should auto add it to your outbound nats, unless you have changed that from auto to manual.

                            outbound.jpg

                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                            If you get confused: Listen to the Music Play
                            Please don't Chat/PM me for help, unless mod related
                            SG-4860 24.11 | Lab VMs 2.8, 24.11

                            S 2 Replies Last reply Jan 28, 2025, 1:06 PM Reply Quote 0
                            • J jimp moved this topic from Problems Installing or Upgrading pfSense Software on Jan 27, 2025, 7:59 PM
                            • S
                              syorke @johnpoz
                              last edited by Jan 28, 2025, 1:06 PM

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • S
                                syorke @johnpoz
                                last edited by Jan 28, 2025, 1:31 PM

                                @johnpoz Sorry for missing the pointer on your original post and your frustration.
                                My firewall/rules/port2lan rules are as you show:
                                Screenshot 2025-01-28 at 7.54.06 AM.png

                                I have added a NAT/Outbound rule, It looks correct as the outbound automatic rule looks to be updated correctly, though traffic is still not passing through.Screenshot 2025-01-28 at 8.01.08 AM.png

                                For the NAT should I have switched the destination to the network or alias instead of the Port1Subnets, also, should I have done the same and specified the Modem address for the NAT address?Screenshot 2025-01-28 at 8.20.42 AM.png

                                J 1 Reply Last reply Jan 28, 2025, 2:03 PM Reply Quote 0
                                • J
                                  johnpoz LAYER 8 Global Moderator @syorke
                                  last edited by Jan 28, 2025, 2:03 PM

                                  @syorke what part are you not getting that if your rule says only 192.168.1/24 can use this interface with the lan2port subnets, how would 192.168.0.x be able to use it?

                                  You need to allow both 192.168.1 and 192.168.0 - you can do that with a 2nd rule, you could do that with using a cidr of 192.168.0/23 you could create an alias that has both networks in it.. Or you could just make it an any with the "*" like your antilock out rule.

                                  No you shouldn't use a modem vip I created for use on my network.. I posted up a screen shot of my outbound nats - I highlighted the part you should be looking for that downstream network to be in.

                                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                                  If you get confused: Listen to the Music Play
                                  Please don't Chat/PM me for help, unless mod related
                                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                                  1 Reply Last reply Reply Quote 0
                                  16 out of 16
                                  • First post
                                    16/16
                                    Last post
                                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                    This community forum collects and processes your personal information.
                                    consent.not_received