VPNs are one of the main configuration setups on our devices. Besides the common site-to-site setup you can also grant mobility while being connected to your site by configuring a client-to-site. In this video, we will show you how to setup this specific scenario, using the ZyWall IPSec VPN Client!
Please note: All the following steps are referring only to IKEv1!
VPN Gateway (Phase 1):
1. Log in to the unit by entering its IP address and the credentials for an admin account (by default, username is “admin”, password is “1234”)
2. Navigate to “Configuration > VPN > IPSec VPN > VPN Gateway” and add a new gateway
3. Edit the created gateway: “Show Advanced Settings”, Tick “Enable”, type in a desired name, choose the desired WAN interface as “My Address”
4. As the clients should be able to connect from different IPs, set the “Peer Gateway Address” to “Dynamic Address”
5. Enter a desired pre-shared key
6. In this tutorial we leave the Phase 1 settings like Proposals by default, you can adjust them to your security preferences. In this example, we change the “Negotiation Mode” to “Main”
7. Click “OK” to apply the changes done.
VPN Connection (Phase 2):
1. Navigate to the “VPN Connection” tab and add a new connection
2. Set the “Application Scenario” to “Remote Access (Server Role”) and choose the previously created VPN Gateway
3. Edit the created connection: “Show Advanced Settings”, Tick “Enable”, type in a desired name, choose the previously created VPN Gateway
4. For the “Local Policy”, please choose the subnet on your USG to which the VPN clients are supposed to have access to
5. Once again, choose your desired Proposals in the “Phase 2 Settings” and click “OK”
The ZyWall IPSec VPN client:
1. You can find the most recent client here: ftp://ftp.zyxel.com/ZyWALL_IPSec_VPN_Client/software/
2. Please start the software, define the ports in the “IKE V1 Parameters” (IKE Port = 500, NAT-T-Port=4500)
3. In the “Ikev1Gateway”, type in the IP of the USGs WAN interface your VPN Gateway is listening on and enter the pre-shared key. Make sure that the proposals are matching to the ones you defined in your VPN Gateway on your USG
4. Now configure the VPN Tunnel: Leave the “VPN Client address” as 0.0.0.0 or enter an IP address, which does not match a network on the USG locally, enter the subnet address you have defined as the local policy in your USGs VPN connection and make sure the proposals are matching with the VPN connections proposals
Now you should be able to open the VPN tunnel by right-clicking the VPN tunnel at the left and choose “Open tunnel”. A green desktop notification in the bottom right corner should confirm the successfully established VPN connection.
Keep in mind that your WAN-to-ZyWall firewall rule should allow the services ESP, IKE and NATT!
To learn more details about the VPN settings and algorithms you can visit:
To learn how to setup a L2TP connection on Windows 10, please visit:
- Don´t test the VPN connection inside the same subnet as your Local Policy! This will cause routing issues
- You can export the configuration file of the IPSec Client and provide it to different computers
- If your VPN tunnel does not build up even though to your knowledge everything has been set up correctly, it might be that your ISP is block IKE (Port 500) or NAT-T (Port 4500). Please contact your ISP to clarify this.
- If there is no IPSec related traffic hitting your WAN interface, maybe the ISP is blocking ESP (Protocol 50). Please contact your ISP to clarify this.