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

    New Config Loses Connectivity in Seconds

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

      I have configured a VM in VirtualBox for proof of concept. After setting the LAN IP to 192.168.0.1 for real-world use, I have connectivity only for a few minutes or even seconds - then no internet, and no pfSense GUI via the LAN IP, only the VM console. I am sure I have made a silly mistake somewhere.

      Here is my basic setup and status:
      67d39fcd-e016-4e85-b822-fd6df68e8f83-image.png

      99f33764-9d0a-4271-9f68-466fb813f050-image.png
      64e5c994-db5c-4f36-a904-6e38f7374d2b-image.png

      e68c0a60-fdc7-4435-b2d0-2111bce7405c-image.png

      57c83adc-1f27-4b4e-b53e-aa2c5f7fcf0f-image.png

      When it fails, the interface status shows that LAN/WAN are up:
      840fa1e1-88c6-4b0f-9c4b-7b67a4fea042-image.png

      Here is a System log with a couple fails and reboots:
      system log.txt

      Thank you for your support with my first-time effort.

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

        Ok, you need to check exactly what's failing and what isn't when this happens.

        It seems like you still have WAN connectivity as you can ping out, by IP and URL?

        Can you ping LAN side resources from the pfSense console?

        Check the ARP table in pfSense and on a LAN side client, are they correct?

        You might have some asymmetry here, that would fit the times you're seeing.
        How is the network connected here?

        Steve

        T 1 Reply Last reply Reply Quote 0
        • T
          The_Boss @stephenw10
          last edited by The_Boss

          @stephenw10
          After it goes down, there is no ping response on LAN or WAN interfaces. At the same time, my desktop can still ping LAN devices fine of course.

          The basic config is: Fiber ONT->pfSense VM->LAN (Switches/APs, etc.)

          A route test in failing mode:
          7234917f-6832-450e-9cf9-5f25ed781819-image.png

          Ping:
          31bc56d0-6f69-4056-8f3c-4a893f48244f-image.png
          Addresses:
          f423a25e-0ef6-4f29-a3ce-63ddc2968368-image.png

          At least to me, the ARP table looks OK:
          Failing mode:
          4cc393e8-a5de-45fd-87e1-6506b7ecc5e5-image.png

          From a basic config VM on the same LAN, working:
          e19b6106-4133-4733-af7d-b96bc92b945c-image.png

          ca7600a9-08e4-4370-9361-9bbfed723bf2-image.png

          I am reading about asymmetric routing, but the issue is net yet clear to me.

          Thanks for your help with this.

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

            Hmm, OK. So you can't ping anything from either WAN or LAN from the console after the failure happens?

            Do the pings just show a timeout?

            That starts to feel like a hypervisor problem.

            T 1 Reply Last reply Reply Quote 0
            • NollipfSenseN
              NollipfSense
              last edited by NollipfSense

              Please mask your gateway. How do you configured VirtualBox, is it like this? How do you access LAN, is it on a network you have? Did you assigned it a static address/24?
              Both Wan and LAN should be on the same network but LAN set to static with no DHCP. You should never see your real gateway in VirtualBox...just the host IP or if bridge adapter mode, it will get an IP from your real LAN via DHCP.

              Screenshot 2022-12-28 at 10.50.36 AM.png
              Screenshot 2022-12-28 at 10.51.27 AM.png

              Now that I am home, I can show what I said above, below...here is VirtualBox with WAN and LAN on same network with LAN on static IP/24 and access to webGUI.

              Screenshot 2022-12-28 at 11.33.16 AM.png
              Screenshot 2022-12-28 at 11.34.41 AM.png

              You should be able to configure your firewall to access the other two networks when you access LAN.

              pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
              pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

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

                If the WAN bridged adapter is connected to a modem you will see a real IP on there.
                You would need to be sure the host OS is not using that NIC.

                Since it works at all and it's set as DHCP it looks like it's correctly pulling an IP from the ISP.

                I now note that the gateway shown in the route is different to that in the ARP table but that could simply have changed across a reboot? If not that's a problem.

                Steve

                NollipfSenseN 1 Reply Last reply Reply Quote 0
                • NollipfSenseN
                  NollipfSense @stephenw10
                  last edited by

                  @stephenw10 said in New Config Loses Connectivity in Seconds:

                  If the WAN bridged adapter is connected to a modem you will see a real IP on there.
                  You would need to be sure the host OS is not using that NIC.

                  I see, he's directly connected {Fiber ONT->pfSense VM->LAN (Switches/APs, etc.)}

                  pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                  pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                  1 Reply Last reply Reply Quote 0
                  • T
                    The_Boss @stephenw10
                    last edited by The_Boss

                    @stephenw10 @NollipfSense

                    After it fails, via the console, there is no ping response from WAN or LAN IP addresses. WAN shows 100% packet loss. LAN shows:
                    6463c589-e165-403e-a18c-916570996ed6-image.png

                    My VirtualBox network config works reliably in other scenarios, and is follows. I will try switching to VirtIO later.
                    4b324837-05e7-4ae0-82c6-9b55f57b3ce2-image.png

                    I did my homework, and the Host OS has no access to the WAN NIC:
                    4e1c764a-ff52-4cfd-9af7-3bd8ba6a4d0b-image.png

                    I had enough functionality to save a backup from the GUI, When I ran SpeedTest.net, the interfaces would stop talking as soon as the bandwidth topped out at 250M.

                    I imported the fully-configured settings into my super-basic VM that was working, and shockingly networking WORKS! I guess it was a hypervisor issue, sorry for that. I believe settings are the same so the root cause is not clear. Anyway, at least I have basic function. Thanks for your support with this!

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

                      Mmm, probably.
                      'Host is down' implies the local device is not responding to ARP. So I would have expected to see it missing from or incomplete in the ARP table.

                      Steve

                      1 Reply Last reply Reply Quote 0
                      • T
                        The_Boss
                        last edited by The_Boss

                        @stephenw10
                        The ping test could have been after ARP expiration.

                        Once the network failures were history, I tried switching to VirtIO, but speed was 35M even with offloading disabled. I set it back to Bridged, and got 250M with 4 CPUs. 2 CPUs in Virtualbox gave me over 500M. Not bad, but still ~50%.

                        Each reboot I would lose connectivity on the i211 LAN and the only way I could get it to work was to switch it promiscuous mode on/off while the VM was running. Crap...

                        I gave up on Virtualbox and moved it over to Hyper-V with 8 CPUs set. I got 30M, researched, and disabled RSC (even though it was already reported as disabled) via PowerShell with these commands:
                        netsh int tcp set global rsc=disabled
                        Get-NetAdapterRsc | Disable-NetAdapterRsc

                        Then I could get a solid 940M in Hyper-V, AND have the luxury of auto-start after host reboot. (Lessons for anyone reading this)

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