OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • Locked out of GUI - Reseet to factory from console (shell)
« previous next »
  • Print
Pages: [1]

Author Topic: Locked out of GUI - Reseet to factory from console (shell)  (Read 2384 times)

chemlud

  • Hero Member
  • *****
  • Posts: 2101
  • Karma: 94
    • View Profile
Locked out of GUI - Reseet to factory from console (shell)
« on: November 14, 2018, 08:18:49 pm »
Hi!

While configuring a vga install (updated to the latest), I imported interfaces form a different config (with more interfaces than physically available in my current install), after fixing this I have a DHCP server on the LAN, but nothing going back and forth (no ping to the box, no GUI of the box, nothing). Disabeling pf from console (shell) doesn't help.

Is there a command from console (shell) to reset the opnsense to factory?

Many thanx in advance...
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

mrkev

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
    • View Profile
Re: Locked out of GUI - Reseet to factory from console (shell)
« Reply #1 on: November 14, 2018, 08:42:34 pm »
I have done this before by renaming the config file and rebooting.
Logged

chemlud

  • Hero Member
  • *****
  • Posts: 2101
  • Karma: 94
    • View Profile
Re: Locked out of GUI - Reseet to factory from console (shell)
« Reply #2 on: November 14, 2018, 09:06:11 pm »
I'm not that good with BSD at the console, is there somethink easy such as

Code: [Select]
rm /path/to/config.xml
or such? :-)
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

mrkev

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
    • View Profile
Re: Locked out of GUI - Reseet to factory from console (shell)
« Reply #3 on: November 14, 2018, 11:11:40 pm »
I would just rename the file

Code: [Select]
cd /conf
sudo mv config.xml config.bak

and then reboot
« Last Edit: November 15, 2018, 07:03:07 am by mrkev »
Logged

chemlud

  • Hero Member
  • *****
  • Posts: 2101
  • Karma: 94
    • View Profile
Re: Locked out of GUI - Reseet to factory from console (shell)
« Reply #4 on: November 15, 2018, 09:50:12 am »
That went well, we are back in the game ;-)

Many thanks for the quick reply!
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • Locked out of GUI - Reseet to factory from console (shell)
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2