How To Establish Client To Site VPN To ATP Series With Linux StrongSwan
How To Establish Client To Site VPN To ATP Series With Linux StrongSwan
com
Case Study
How to establish client to site VPN to ATP
series with Linux StrongSwan
1/12
www.zyxel.com
Topic
Case Study ..................................................................................................................................... 1
Background ................................................................................................................................... 3
Scenario and Topology .............................................................................................................. 3
Configuration ................................................................................................................................ 4
Verification................................................................................................................................... 11
Note ............................................................................................................................................... 11
2/12
www.zyxel.com
Background
Virtual Private Network (VPN) is the technology that you can use to access the office
or home network remotely and securely over the Internet, so that the
communication data is protected from sniffing or hijacking by hackers. When the
VPN connection is established to a site, a secured tunnel will be created with
capability to encrypt the traffic, preserve data integrity (no data change during
transmission) and ensure the communication only happen between client to site.
This example shows how to use the VPN Setup Wizard to create a client to site VPN
between a ATP and Linux Ubuntu 18.04.3. The example instructs how to configure
the VPN Tunnel. When the VPN tunnel is configured, office network can be accessed
securely.
Note: All network IP address and subnet masks are used as example in this article.
Please replace them with your actual network IP addresses and subnet masks. This
example was tested using ATP800(Firmware Version: ZLD 4.35 C0) and Linux Ubuntu
(18.04.3 LTS)
3/12
www.zyxel.com
Configuration
Set up the IPSec VPN Tunnel on the ATP
Step.1 In the ATP, go to Quick Setup > VPN Setup Wizard, use the VPN Settings
wizard to create a VPN rule that can be used with the Ubuntu. Click Next.
Step.2 Choose Advanced to create a VPN rule with customized phase1, phase2
settings and authentication method. Click Next.
Quick Setup > VPN Setup Wizard > Wizard Type
4/12
www.zyxel.com
Step.3 Type the Rule Name used to identify this VPN connection (and VPN gateway).
You may use 1-31alphanumeric characters. This value is case-sensitive.
Select the rule to be Remote Access (Server Role) and Select the IKE Version
to be IKEv1. Click Next.
Quick Setup > VPN Setup Wizard > VPN Settings
Step.4 Select My Address to be the interface connected to the Internet. Set the
Desired Negotiation, Encryption, Authentication, Key Group and SA Life
Time Setting. Type a secure Pre-Shared Key (8-32 characters) which must
match your Linux Ubuntu Pre-Shared Key. Click OK.
5/12
www.zyxel.com
6/12
www.zyxel.com
Step.6 This screen provides a read-only summary of the VPN tunnel. Clicks save.
Step.7 Add address pool for phase 2 mode config. Go to “CONFIGURATION > Object >
Address”, click add to create address pool object
7/12
www.zyxel.com
root@usg:~#
# RSA private key for this host, authenticating it to any other host
: PSK 123456789
8/12
www.zyxel.com
conn %default
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
keyexchange=ikev1
modeconfig=pull
conn home
left=10.214.48.60
leftid=vpnclient
leftauth=psk
leftauth2=xauth
leftsourceip=%config
leftfirewall=yes
right=10.214.48.28
rightsubnet=192.168.1.0/24
rightid=10.214.48.28
rightauth=psk
auto=add
ike=aes256-sha2_256-modp1024!
esp=aes256-sha2_256!
root@usg:~#
9/12
www.zyxel.com
root@usg:~#
Tells the IKE daemon to start up connection
root@usg:~# ipsec up <name>
Tells the IKE daemon to terminate connection
root@usg:~# ipsec down <name>
10/12
www.zyxel.com
Verification
Note
If the Host-to-Network VPN tunnel cannot be established successfully, please check
the following items.
Both ATP and Linux Ubuntu must use the same Pre-Shared Key,
Encryption, Authentication method and DH Key group.
Make sure ATP WAN to ZyWALL security policy allows IKE, AH and ESP.
11/12
www.zyxel.com
12/12