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

    Lan's ip is 254, and the web page cannot be accessed

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 6 Posters 850 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.
    • U
      UClinux
      last edited by

      Environment: Install pfSense-CE-2.6.0 and pfSense-CE-2.7.0 respectively for testing

      In the console interface, select
      2) Set interface(s) IP address
      After setting the lan interface ip to 192.168.x.254/24, the ip can be pinged on any computer in the LAN, but the web login page cannot be accessed.

      1. After trying to execute pfctl -d, the web cannot be accessed
      2. Try to restore the factory settings, set the ip to 192.168.x.254/24, the web cannot be accessed
      3. Netstat -4an checks that port 80 is open, and the test telnet is normal, but 443 is not open. Of course, I also try to access http, but the web cannot be accessed
      4. If you change the ip to 192.168.x.(1-253)/24, everything is normal, and there is no problem accessing the web login page

      why is that?

      stephenw10S GertjanG 2 Replies Last reply Reply Quote 0
      • bingo600B
        bingo600
        last edited by bingo600

        There's an automatic "Antilockout rule on Lan" , it might only be active for .1 access.
        Try to make an additional rule allowing the same for .254 before switching.

        Or ssh to the box , and restart the webgui service.

        /Bingo

        If you find my answer useful - Please give the post a 👍 - "thumbs up"

        pfSense+ 23.05.1 (ZFS)

        QOTOM-Q355G4 Quad Lan.
        CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
        LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

        johnpozJ 1 Reply Last reply Reply Quote 1
        • stephenw10S
          stephenw10 Netgate Administrator @UClinux
          last edited by

          @yjd said in Lan's ip is 254, and the web page cannot be accessed:

          If you change the ip to 192.168.x.(1-253)/24, everything is normal,

          The sounds like there is already a device using .254 on the subnet.

          1 Reply Last reply Reply Quote 1
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @bingo600
            last edited by johnpoz

            @bingo600 said in Lan's ip is 254, and the web page cannot be accessed:

            it might only be active for .1 access.

            That wouldn't make any sense to do.. And that anti lockout rule specifically calls out lan address, so whatever this would be what the rule allows traffic to the ports being used for the gui and ssh (if enabled)

            I would think maybe dupe IP issue, validate the mac is correct for pfsense lan interface in your clients arp table.

            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 1
            • U
              UClinux
              last edited by

              Today I did the test again, trying to migrate the test environment from vds to another esxi host without a vlan network, the port group is tested with a local standard switch, and the client is also changed to another win system. x.254 is accessible.
              Then I migrated back to the original vds network environment vlan 222, and the original win client system.
              Test again, x.254 web cannot be opened.
              Guess the problem should be in the browser (third-party browser based on Chromium kernel),
              Close the browser, start the browser in safe mode, and the x.254 web can be accessed.
              Close the browser again, open it in normal mode, and clear all cache records of the browser. x.254 web accessible

              So far, the cause of the problem is the browser cache problem😢

              Actually, before that,

              1. I have tried to use the privacy mode of the browser to visit, but the x.254 web has been unable to open
              2. I also copied the new version of chrome to this client system (win81), but it cannot run, and Google no longer supports it. Did not continue to download the old version. . . 😧

              In retrospect, the reason may be that before the pfsense test host was built, this browser visited an x.254 pfsense main gateway, using https,
              After the pfsense test host is installed (the pfsense main gateway Lan interface is disabled), use this browser to access x.254. The browser forcibly jumps from 80 to 443 due to cache reasons, but the pfsense test host is newly installed, and https has not been enabled by default. (443).
              Of course, I also tried http://192.168.x.254:80/ and it couldn't be opened.

              I've tested in privacy mode, so I don't think it's a cache issue. . . 😧
              This third-party browser privacy mode is to open another tab, unlike Google Chrome, which is to open another browser. So the privacy mode is not reliable

              Several reasons combined to lead to this test result. . . 😧

              Thank you friends 👍

              JonathanLeeJ 1 Reply Last reply Reply Quote 0
              • JonathanLeeJ
                JonathanLee @UClinux
                last edited by

                @yjd run Arp -a and check what Mac addresses map to what IP from the console. Make sure you do have have any duplicates. Broadcast address?

                Have you plugged in this address scheme into a subnet calculator? With the cider notation /24 network some addresses are set aside for broadcast, multicasting etc. Subnet calculator will display what address pool you can use.

                Just double check it. I see you have X for the 2nd octet so plug in what you are using to make sure.

                Make sure to upvote

                U 1 Reply Last reply Reply Quote 1
                • GertjanG Gertjan referenced this topic on
                • GertjanG
                  Gertjan @UClinux
                  last edited by

                  @yjd said in Lan's ip is 254, and the web page cannot be accessed:

                  1. Set interface(s) IP address
                    After setting the lan interface ip to 192.168.x.254/24, the ip can be pinged on any computer in the LAN, but the web login page cannot be accessed.

                  Normally, right after the LAN IP (and network /24 ?) has been changed, you should also check / modify the LAN DHCP server page, and save over there.

                  Then : if you're more a 'manual' guy : remove the LAN cable from your device for a couple of seconds.
                  Or disable de Wifi for a couple of seconds, and re enable, re connect.
                  Or do something like this on your device :

                  ipconfig release
                  ipconfig /renew
                  ipconfig /all
                  

                  Check the output of the last command, and see if everything looks fine.
                  Notably : the gateway and DNS should now show the right IP : .254

                  Tip of the day : when you do a network setup, be ready to use 'another' browser, like (windows 8) Edge or IE. At least, none of your issues will be cache issues.

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  U 1 Reply Last reply Reply Quote 1
                  • U
                    UClinux @JonathanLee
                    last edited by UClinux

                    @JonathanLee
                    x stands for 2, 222, 1. I tested it many times yesterday, and thought it was a 2.7 bug and tried to reinstall the 2.6 test.
                    No typo issues.

                    As mentioned at the beginning of the topic, on this client system that cannot access x.254, the x.254 ip can be pinged normally. If the address is written wrong, it will fail to ping

                    1 Reply Last reply Reply Quote 0
                    • U
                      UClinux @Gertjan
                      last edited by

                      @Gertjan
                      You mentioned manually refreshing the ip, I have tried it, and I often disable and re-enable the network card during the test. The main reason is that I believe too much in the privacy mode of the browser, so I did not try to change ie and firefox for testing.
                      Lessons must be learned. In the past, I usually give priority to clearing the cache and testing again. . .

                      GertjanG 1 Reply Last reply Reply Quote 0
                      • GertjanG
                        Gertjan @UClinux
                        last edited by Gertjan

                        @yjd said in Lan's ip is 254, and the web page cannot be accessed:

                        reason is that I believe too much in the privacy mode of the browser, so I did not try to change ie and firefox for testing.

                        Strange. We use different info sources then. I would prefer Firefos far over edge or the chrome thing. The last two have just one main mission : transmit everything you do to their creator. Showing a web page is their second role 😊

                        @yjd said in Lan's ip is 254, and the web page cannot be accessed:

                        disable and re-enable the network card during the test

                        Always check afterwards your DNS/gateway IP.
                        You can stop checking as soon as you're done designing your network.

                        @yjd said in Lan's ip is 254, and the web page cannot be accessed:

                        I usually give priority to clearing the cache and testing again. . .

                        If you visit a web page on 192.168.1.1 (so 192.168.1.1 is the URL) - and then you visit a device at 192.168.1.254, then there will be no cache involved, as it is not the same device neither the same web server (in theory - this time it is, as you've changed the IP of the web server device).

                        @yjd said in Lan's ip is 254, and the web page cannot be accessed:

                        to clearing the cache

                        Remember this one :

                        ipconfig /flushdns
                        

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

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