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

    disable on boot check of config.xml

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 325 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.
    • D
      darzanebor
      last edited by

      Good day.

      Long story short, I'm having some issues on devices with lte dongles as backup.

      If device rebooted after configuration and great previous work it's stuck in network interface mismatch bootloop on check of configuration in /conf/ it's too early to search for dongle ๐Ÿ‘

      So it can't go further with execution of usb_modeswitch in the end etc. etc. โ˜น

      so if i'm absolutely sure that i do have 100% working config 100% of time ๐Ÿ˜€ ๐Ÿ˜€ ๐Ÿ˜€ how do i disable this check on boot?

      thank you in advance!!!๐Ÿ˜Œ

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

        You could try running usb_modeswitch as an earlyshellcmd.

        You might be able to switch those devices permanently using some other method. Some can.

        You can prevent it halting on missing ue interfaces by adding that to this list:
        https://github.com/pfsense/pfsense/blob/c07f1c2667995b9c46f9187fdf0baa6efbb8aa19/src/etc/inc/util.inc#L2201

        But be aware that can lead to some odd behaviour if it boots up with a missing interface.

        Steve

        1 Reply Last reply Reply Quote 1
        • D
          darzanebor
          last edited by darzanebor

          Thank you Steve!!!

          btw just for my understanding, is the naming of interfaces for such usb sticks permanent, ue?

          and if it is, may be that would be great to add ue to that interfaces permanently?

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

            USB Ethernet devices are renamed ue0, ue1 etc, yes.

            It's not desirable to stop checking for them though. That is a physical interface. If it is assigned in the config and not present on the system the firewall should stop and ask the user how to proceed. Not doing so ends up in an unknown situation or potentially something worse like if you had multiple ue interfaces and one is unplugged you could start sending private traffic out of the remaining one if that became a different interface.

            The other interfaces in that list are those that built on top of a different physical NIC and may not have been created yet at the time of the check like ppp or vpns.

            There is no good way to handle this unfortunately. If the modem is in Ethernet mode you have to do something like this to avoid boot failure. If it's in PPP mode pfSense has no problem with the interface or device disappearing but the speed is limited to 3.5G (ish).

            It would be great to be able to use one of the other methods like MBIM but there is no driver in FreeBSD, yet.
            https://man.openbsd.org/umb.4

            Steve

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