This article describes how to create a L2TP over IPSec connection on a computer running MAC OS X to connect to a hardware ZyWALL USG series gateway?
Setting up an L2TP over IPSec connection on ZyWALL USG series hardware gateways is described in the article: USG/ATP/VPN - L2TP over IPSec VPN Configuration Handbook (On-Premise mode)
To create a L2TP over IPSec VPN tunnel on Mac OS X computers, click on the Apple icon in the upper left corner of the screen, and then on System Preferences .
In System Preferences, click on the Network icon. When the network settings window appears, click on the + icon in the lower left corner of the screen (you must have administrator rights).
A new window will appear. In the Interface field, in the drop-down list, select the VPN value. In the VPN Type field, select the L2TP over IPSec value from the drop-down list.
In the Service Name field you can enter the name of the connection (for example, USG or L2TP). Then click the Create button to create a new VPN connection.
Now you can see the settings for the new VPN connection. In the Server Address field, enter the domain name (FQDN) or IP address of the ZyWALL USG hardware gateway with which the L2TP over IPSec connection will be established. In the Account Name field, enter the name of the account with L2TP connection rights (you must first create an account in the ZyWALL USG).
Now click on the Authentication Settings button. In the window that appears, in the User Authentication section, in the Password field, enter the password for an account with L2TP connection rights.
In the Machine Authentication section, specify Shared Secret and enter the key. Next, click OK and then click Apply .
Now click the Advanced button and be sure to check the box Send all traffic over VPN connection .
By default, this option is disabled, and if it is not enabled, then even after successfully establishing an L2TP over IPSec connection, the traffic between the ZyWALL USG and the Mac OS X computer will not go through the VPN tunnel.
Attention! When you turn on the tick in the Send all traffic over VPN connection field, all network traffic, including traffic to the Internet, will be routed (routed) to the VPN connection. If you need a client connected to the ZyWALL USG hardware security gateway using the L2TP over IPSec tunnel to connect to the Internet through it, configure the ZyWALL USG under article: KB-2741.
Then click the OK button and then click the Apply button again.
The settings for creating an L2TP over IPSec connection have been made. Now you can make a VPN connection. Click the Connect button.
After clicking on the Connect button, the L2TP over IPSec VPN tunnel will be installed with the ZyWALL USG.
If the connection is successful, the Status line will display the value Connected .