Fortinet: Factory Reset

and password bypass technique

TL;DR:
(If there is no admin user, do this, or reload configs.)

Related: Fortinet Notes

  1. Obtain serial number:
    • Either from bottom of device or screen cap during boot sequence
  2. Create SecureCRT buttons with maintenance user and password:
    • user: maintainer
    • pass: bcpb<serial_number>
  3. Reset device by depressing reset button inside of pin hole
  4. After boot use the above user and password to log in
  5. Run this command to reset:
    • #execute factoryreset
  6. Login with default credentials:
    • user: admin
    • pass: <none_just_press_enter>
  7. Set admin password:
    • #config system admin
    • #edit admin
    • #set accprofile “super_admin”
    • #set vdom “root”
    • #set password <yourAdminPassword>
    • #end