Static Route Broke Configuration
-
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.
-
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. -
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.
-
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.
-
Or just edit the config to remove the static route and reboot?
-
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. :)
-
True enough :)