OPNsense

How to Factory Reset OPNsense Firewall Router

Last verified: November 2026.

OPNsense Reset: Quick Answer

  • At the console menu enter 4 to reset the whole firewall to factory defaults.
  • Enter 3 to reset only the root password.
  • After a factory reset log in at https://192.168.1.1 as root / opnsense.
  • Make a backup first under System > Configuration > Backups; a reset removes all rules and settings.

Factory Reset OPNsense

  1. Connect to the Console window
  2. You can see the following 13 console menus
  3. To reset to factory default, enter 4
    OPNsense reset password
  4. To reset the root password enter Option 3

Reset root password

If you forget the root password, then you have to boot the device in Single user mode to reset root password.

In single user mode enter the following.

#passwd

Changing password for user root.
New password:

One thought on “How to Factory Reset OPNsense Firewall Router”

  • Admin

    This way to no longer works to reset the root password.
    You have to boot into Single User, then
    Type: mount -u /
    Type: su
    Select: 3

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *