Search Our Database
Fortigate Disable a VPN User
Overview
This guide outlines the steps to disable a specific VPN user configured on a Fortinet FortiGate hardware firewall. Disabling a local user account will effectively block VPN access if the VPN is authenticated against the local user database. This is administrative task in secure access management, to ensure least privilege and access revocation in compliance with standard security practices.
Prerequisites
Before proceeding, ensure you have the following:
- Access to FortiGate Web GUI or CLI (admin privileges required)
- The VPN user is a local user
- Identification of the inactive user (username).
- Active session to FortiGate (HTTPS or SSH)
- Backup of current configuration (recommended for change control and rollback).
Step-by-Step Instructions
Option 1: Using FortiGate Web GUI
- Login to FortiGate Web GUI
- Access: https://<firewall-ip>
- Login with an administrator account.
- Navigate to User & Authentication
- Go to User & Authentication > User Definition
- Locate the User
- Find the local user you want to disable.
- Edit the User
- Click on the user entry to edit.
- Disable the User
- Uncheck the “Enable this user” checkbox.
- Click OK to save changes.
- Verify Access
- Ensure the user status shows as disabled.
Option 2: Using FortiGate CLI
- Access CLI
- SSH into the firewall or use the Web GUI CLI Console.
- Enter Configuration Mode
config user local edit <username> set status disable next end
Confirm Configuration
show full-configuration user local | grep -A 3 '<username>'
Ensure status disable is reflected.
Conclusion
You have now successfully disabled VPN user for your Fortigate Firewall.