[USG FLEX H]How to Set Up 2FA with Google Authenticator for Remote Access VPN and SSL VPN
Google Authenticator is a highly secure method for receiving verification codes for two-factor authentication (2FA). It generates a new code every 30 seconds, ensuring that each code remains valid for only a brief period. Additionally, Google Authenticator is free to download, easy to use, and functions without requiring an internet connection. This guide demonstrates how to configure Google Authenticator for both Remote Access VPN and SSL VPN.
Note: All IP addresses and subnet masks used in this article are examples. Replace them with your actual network settings. This example was tested using USG FLEX 200H (Firmware Version: uOS 1.20).
Two-Factor Authentication with Google Authenticator Workflow
- Enable Google Authentication for a user.
- Set up Google Authenticator.
- Configure valid time and VPN types.
Step 1: Enable Google Authentication for a User
- Navigate to User & Authentication > User/Group.
- Select a local user account.
- Enable Two-Factor Authentication.
- Click "Set up Google Authenticator" to begin the configuration on your mobile device.
Step 2: Set Up Google Authenticator
- Download and install Google Authenticator on your mobile device.
- Open the Google Authenticator app and scan the barcode displayed on the Web GUI.
- Enter the token code shown on the app into Step 3 on the Web GUI.
- Click "Verify Code and Finish".
- After successful registration, backup codes will be displayed. Download these codes and store them securely for future use if you lose access to the app.
Step 3: Configure Valid Time and VPN Service Types
- Enable Two-Factor Authentication for VPN access.
- Set the Valid Time, which specifies the time limit for entering the 2FA code (default is 3 minutes).
- Select the VPN types (e.g., Remote Access VPN or SSL VPN) requiring 2FA.
- After establishing the VPN tunnel, users will need to enter the token code via the Web GUI.
Testing the Configuration
Remote Access VPN (IKEv2)
- Open the Remote Access VPN tunnel using SecuExtender VPN Client.
- When prompted, enter the verification code displayed on Google Authenticator or use a backup code.
- Log in successfully with your username, password, and token code.
SSL VPN: SecuExtender VPN Client
- Open the SSL VPN tunnel using SecuExtender VPN Client.
- When prompted, enter the verification code displayed on Google Authenticator or use a backup code.
- Log in successfully with your username, password, and token code.
SSL VPN: OPENVPN Client
- Open the SSL VPN tunnel using SecuExtender VPN Client.
- Open the 2FA authorization page in a web browser. Please ensure that the 2FA authorization page is bound to an interface/IP address that is reachable from the VPN clients (default port: 8008). And then, enter the verification code displayed on Google Authenticator or use a backup code.
- Log in successfully with your username, password, and token code.
Even Logs:
By following these steps, you can successfully enable and configure two-factor authentication with Google Authenticator for enhanced VPN security.
Kay
Categories
- All Categories
- 442 Beta Program
- 3.1K Nebula
- 244 Nebula Ideas
- 6.9K Security
- 805 USG FLEX H Series
- 392 Security Ideas
- 1.8K Switch
- 88 Switch Ideas
- 1.5K Wireless
- 60 Wireless Ideas
- 7.3K Consumer Product
- 332 Service & License
- 540 News and Release
- 106 Security Advisories
- 31 Education Center
- 10 [Campaign] Zyxel Network Detective
- 5.5K FAQ
- 34 Documents
- 89 About Community
- 124 Security Highlight
Zyxel Employee



















