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

    Static Route Broke Configuration

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 5 Posters 7.6k 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.
    • L Offline
      lspiehler
      last edited by

      I accidently broke my network after entering a static route in the web interface I obviously cannot fix it through the web interface so I'm wondering if anyone knows how I can fix this through the command line. I did a "route delete 192.168.1.0/24" and it returned something about remove network 192.168.1.0, but after a reboot it still didn't help. Any advice is greatly appreciated. Thanks.

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG Offline
        GruensFroeschli
        last edited by

        What exactly are you trying to do?
        You have to tell more about your setup (network-layout, used subnets, what you were trying to do, what you actually did, etc.) to figure out how to fix it.
        I mean you certainly had your reason why you added the route, but maybe just didn't know how to do it without breaking your setup.

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • W Offline
          wallabybob
          last edited by

          @lspiehler:

          but after a reboot it still didn't help.

          The reboot probably recreated whatever it is you may have deleted because the static route will probably have been defined in the configuration file which you don't seem to have changed.

          pfSense 1.2.3 "full version" (I don't know about embedded) keeps a number of backup versions of the configuration file. You might be able to recover from one of those.

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

            Worst case, you'd have to drop to a shell prompt, go into /conf/backup/ and find a recent backup that does not include the static route, copy it over /conf/config.xml; rm /tmp/config.cache, then exit the shell and reboot the router from the menu.

            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
            • D Offline
              danswartz
              last edited by

              Or just edit the config to remove the static route and reboot?

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

                @danswartz:

                Or just edit the config to remove the static route and reboot?

                That too, but that is much easier to mess up than copying a file. :)

                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
                • D Offline
                  danswartz
                  last edited by

                  True enough :)

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