I believe everyone know that Fortigate Firewall can be reset to Factory Defaults by using Web GUI or CLI interface. In the event of you lost or you do not know the admin password for the fortigate unit, how to reset the Firewall unit? The only thing that you can do is to use maintainer account which have permission to do reset for super admin password or do firewall factory reset.
To do that, you will need:
- physical access the box
- Console cable
- Terminal software such as Putty.exe (Windows) or Terminal (MacOS)
- Serial number of the FortiGate device
– Connect your laptop or computer to the Firewall via the Console port
– Launch your terminal software
– Reboot or Power Cycle the Firewall
– Wait for the Firewall name and login prompt to appear.
– Enter the Username as maintainer, password as bcpb with Firewall Serial no in UPPERCASE
There is a command line available in PFSense firewall to allow you to add firewall rules. In the event of locked out from firewall due to miss configuration of firewall rules, you may use command line “easyrule” to add firewall rules to let you get in to firewall again.
Below are the syntax and example of easyrule command:-
Syntax EasyRule function
easyrule pass/block <interface> <protocol> <source IP> <destination ip> [destination port]
easyrule pass wan tcp 0.0.0.0/0 192.168.0.1 80
easyrule pass wan icmp 220.127.116.11 192.168.0.1
easyrule block wan 18.104.22.168
User forgot their email password is a very common IT Support case. In Zimbra mail server, changing email password can be easily done with Admin Console. How about email administrator lost their administrator password? Without Administrator password, you unable to login to Admin Console to reset password. So, is there any way to reset it?
The answer is yes. Below are the few steps show you how to change password for user or Administrator using CLI.
A) SSH to your email server
B) login as zimbra user
su - zimbra
C) Use command line utility (CLI) zmprov setpassword to reset password
zmprov sp <admin email address> <new password>
zmprov sp email@example.com password
After changed, try to access Admin Console with new password, it should work now 🙂