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

    <Solved> Configuration after reboot

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 2 Posters 2.5k 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.
    • R
      RazorBladeHNT
      last edited by RazorBladeHNT

      Sometimes after reboot pfSense start to launch configuration setup (use VLAN y/n, choose WAN interface, choose LAN interface)
      So i must assign WAN and LAN interfaces, set IP for LAN, login in web gui and choose configuration from backup history to manage it work again

      I've read somewhere that it happens if pfSense lose any interface during load and start configuration master
      Is there any way to avoid that?

      2.3.4-RELEASE (amd64)
      built on Wed May 03 15:13:29 CDT 2017
      FreeBSD 10.3-RELEASE-p19

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        That definitely is not normal. Can you describe your setup in more detail? Specifically if you have any out-of-the-ordinary interfaces configured like USB Ethernet or a 4G/LTE type device that looks like an Ethernet interface.

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • R
          RazorBladeHNT
          last edited by

          Yes i have 4g usb modem ZTE MF823 as a backup
          Also this modem wont identify as ethernet interface until i run usbconfig -d 8.2 set_config 2
          So i added hw.usb.quirk.0="idVendor idProduct 0x19d2 0x1403 UQ_CFG_INDEX_2" in /boot/loader.conf

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            That's probably why then, the interface isn't there at boot time, so there is a mismatch.

            Maybe add that usbconfig command (with the full path to usbconfig) as an earlyshellcmd entry with the shellcmd package.

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            R 1 Reply Last reply Reply Quote 0
            • R
              RazorBladeHNT @jimp
              last edited by

              @jimp thanks for suggession i will try that tomorrow
              Also i incorrectly explained the situation this occur after power loss or turn off, not the reboot

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                It may take more time to reinitialize/switch after a cold boot. You might want to make a short script to initialize the modem which also performs a sleep for 10 seconds or so after issuing the mode switch command. Or maybe on a warm boot it keeps the mode. Either way it's safer to initialize it and wait a few moment and then let the boot proceed.

                Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                R 1 Reply Last reply Reply Quote 0
                • R
                  RazorBladeHNT @jimp
                  last edited by

                  @jimp can i add <earlyshellcmd>sleep 30</earlyshellcmd> to xml file to pause boot process?
                  or i should do it some other way

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    Using the full path to the sleep command, yes, but if you make a shell script that does both it would be easier to keep track of the fact that the two commands are related. Either way should work, however. 30s is likely too long, but you'd have to test it to know for sure how long you need.

                    Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • R
                      RazorBladeHNT
                      last edited by

                      Managed to make this work for some reason i used <shellcmd> instead of <earlyshellcmd>

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