How To: pfSense do not start (boot) after error in configuration of a PPTP
-
Hello.
I've used the 2.1-RELEASE (amd64)
It is a short instruction of how i have repaired my pfSense. It stopped to boot after the incorrect instruction in PPTP configuration.
After starting the system it gets into dump, then automatically reloads and repeats the same operation again and again.Unfortunately, I didn't find a solution here.
Below you can see the instructions of how I solved the problem.
-
Boot from the installation CD. The used the latest 2.2.2 version
-
At boot time, select the option (C) - liveCD
-
When the Live mode gets started choose the item 8 - command line
-
pfSense productive files in my case were located here: /dev/ufsid/5*
-
Because of a dump the file system of the pfSense is not clear
-
Start scanning process of the file system (otherwise you will not be able to mount):
fsck -t ufs /dev/ufsid/5* -
Create a directory for mounting: mkdir /tmp/prodFS
-
Mount a clear file system:
mount -t ufs /dev/ufsid/5 /tmp/prodFS/* -
Go to /tmp/prodFS/:
cd /tmp/prodFS/ -
The current config and it automatic hourly backups are here: /tmp/prodFS/cf/config (./backup)
-
Move the current config:
mv /tmp/prodFS/cf/conf/config.xml /tmp/prodFS/cf/conf/error-config.xml -
Choose the appropriate config from backup directory:
ls -l /tmp/prodFS/cf/conf/backup/
Number at the end of name is a timestamp. You can look at creation time. -
Copy the file in production directory:
cp /tmp/prodFS/cf/conf/backup/config-1431551941.xml /tmp/prodFS/cf/conf/config.xml -
Copy that config for secure reasons:
cp /tmp/prodFS/cf/conf/config.xml /tmp/prodFS/cf/conf/copy-config.xml -
Reboot.
-