pfSense Gold Subscription

Author Topic: How to export conf.xml to USB on a broken pfSense machine?  (Read 141 times)

0 Members and 1 Guest are viewing this topic.

Offline NopIt

  • Jr. Member
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
How to export conf.xml to USB on a broken pfSense machine?
« on: October 20, 2017, 02:49:01 pm »
Since my pfSense machine seems to be completely broken after the last update, I would like to extract the config.xml file.
The problem is, that the machine's networking is completely dead. I can't connect to the web gui, I can't ssh into it, I can't ping it and I can't ping anything from the machine either. 

I can still use the terminal though and /cf/conf/config.xml does still exist. Now my question is, how can I mount a USB stick and copy the configuration file over to it. And is there anything special I need to do with the USB stick, like formatting?

Offline dotdash

  • Hero Member
  • *****
  • Posts: 1915
  • Karma: +99/-2
    • View Profile
Re: How to export conf.xml to USB on a broken pfSense machine?
« Reply #1 on: October 20, 2017, 03:19:47 pm »
You can stick in a fat32 formatted usb stick. You should see messages about the device on the console- usually it's da0.
Mount the stick, then copy the config over. Then you can restore the config later.
mount_msdosfs /dev/da0s1 /mnt
cp /cf/conf/config.xml /mnt/


Offline NopIt

  • Jr. Member
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: How to export conf.xml to USB on a broken pfSense machine?
« Reply #2 on: November 10, 2017, 03:14:13 pm »
It worked, thank you. Sorry for the late reply.