Factory Reset Juniper SRX Firewall

KB ID 0001003 

Problem

If you manage to stuff up your firewall, or you have just done some testing and want to revert back to ‘as new’ here is how to do it.

SRX Firewall

Solution

1. Connect to the firewall either by console cable or via SSH, go to CLI mode then configuration mode.

login: PeteL Password: ************

— JUNOS 12.1X47-D10.4 built 2014-08-14 22:21:50 UTC

[email protected]> cli

[email protected]> configure Entering configuration mode

[edit] [email protected]#

2. Load factory defaults, at this point you cannot commit/save the configuration unless you set a password, so do that next.

[edit] [email protected]# set system root-authentication plain-text-password New password: Password123 Retype new password: Pasword123

[edit] [email protected]#

3. Save the changes then reboot.

[edit] [email protected]# commit and-quit

commit complete Exiting configuration mode

[email protected]> request system reboot Reboot the system ? [yes,no] (no) yes

Shutdown NOW! [pid 1904]

[email protected]>

*** FINAL System shutdown message from [email protected] ***

System going down IMMEDIATELY

Reset To Factory Settings if the SRX is part of a Chassis Cluster (is in Failover mode)

1. If the firewall is part of the Chassis cluster then you need to the following before you can carry out the procedure above.

[email protected]> set chassis cluster disable reboot

For cluster-ids greater than 15 and when deploying more than one cluster in a single Layer 2 BROADCAST domain, it is mandatory that fabric and control links are either connected back-to-back or are connected on separate private VLANS.

{primary:node0} [email protected]>

*** FINAL System shutdown message from [email protected] ***

System going down IMMEDIATELY

Completely Wipe the Juniper SRX

Alternatively you can also do the following.

root> request system zeroize warning: System will be rebooted and may not boot without configuration Erase all data, including configuration and log files? [yes,no] (no) yes

warning: zeroizing re0

root>

 

Related Articles, References, Credits, or External Links

NA

 

Author: Migrated

Share This Post On