I’ve got a Watchguard firewall router that I’ve reflashed to run pfSense.

But the other day I managed to loose access to the Web interface – probably due to a configuration problem.

So how do you get back access to the web interface?

——

It turns out that you can do this from the serial port by interrupting the boot process after the bootstrap loader has finished it’s job, and during the pfSense booting:

___

___/ f \

/ p \___/ Sense

\___/ \

\___/

Welcome to pfSense 2.1.4-RELEASE …

Creating symlinks……done.

>>> Under 512 megabytes of ram detected. Not enabling APC.

External config loader 1.0 is now starting…

Launching the init system… done.

Press ctrl-C – and you get access to the shell

– now all you need is to find the backup directory where all your configuration backups are (you did take backups?) and copy one of the backups in to the configuration directory like this :

total 2294

-rwxr-xr-x 1 root wheel 13811 May 22 16:26 WGXepc

drwxr-xr-x 2 root wheel 512 Aug 23 14:24 backup

-rw-r–r– 1 root wheel 14417 Aug 23 14:24 config.xml

-rw-r–r– 1 root wheel 64139 Aug 23 13:54 config.xml.back

-rw-r–r– 1 root wheel 1613 Aug 22 23:00 dhcpleases.tgz

-rw-r–r– 1 root wheel 0 Jun 20 17:05 ez-ipupdate.cache

-rw-r–r– 1 root wheel 1066040 Aug 7 18:39 rrd.tgz

drwxr-xr-x 2 root wheel 512 Oct 29 2003 sshd

# # ls backup


backup.cache..config-1408803203.xml.config-1408803875.xml

config-1408802423.xml.config-1408803205.xml.config-1408803877.xml

# # ls -l backup


total 114

-rw-r–r– 1 root wheel 612 Aug 23 14:24 backup.cache

-rw-r–r– 1 root wheel 10834 Aug 23 14:00 config-1408802423.xml

-rw-r–r– 1 root wheel 11373 Aug 23 14:13 config-1408803203.xml

-rw-r–r– 1 root wheel 11388 Aug 23 14:14 config-1408803205.xml

-rw-r–r– 1 root wheel 10819 Aug 23 14:24 config-1408803875.xml

-rw-r–r– 1 root wheel 10834 Aug 23 14:24 config-1408803877.xml

# # cp config-1408803875.xml ^C

# cp backup/config-1408803875.xml config.xml