一、环境说明

名称
WAN
LAN
备注
pf100.example.com
DHCP
192.168.100.1/24
Server
pf200.example.com
DHCP
192.168.200.1/24
Client

wKiom1PZrGSSt9c8AADfMIEvDk8625.jpg

wKioL1PZrX7SYqtwAADh7BMyCM8235.jpg




二、服务器端配置
1. ×××-->Open×××-->Server , 点击添加按钮进行服务器配置

wKiom1PZrLyDO4_RAACwAiFw4rk226.jpg


2.General information,选择Server Mode为“Peer to Peer(Shared Key)”
wKiom1PZrHqRtO1TAAFykV56noo698.jpg


3.Cryptographic Settings,勾选“Automatically generate a shared key”

wKiom1PZrQ-gcLHaAACVbWC2mpc511.jpg



4.Tunnel Settings,设置Tunnel Network、Local Networks、Remote Networks值,并勾选“Compress tunnel packets using the LZO algorithm”

wKioL1PZrkLj206kAASvH5ppcag175.jpg


5. 点击“Save”按钮,保存回退到主界面
wKioL1PZrlTiMV8bAADYoP0V_WE486.jpg


6.进入Open××× Server 界面,点击编辑按钮,定位到Cryptographic Settings项,复制Shared Key备用。
wKiom1PZrUzC1IvMAAC519BEIS4901.jpg


三、客户端配置(pf200.example.com)

1.×××-->Open×××-->Client,点击添加按钮进午客户端配置

wKioL1PZrnyjO5tpAACMKv8INUE933.jpg


2.General information,选择Server Mode为“Peer to Peer(Shared Key)”,输入Server host IP地址
wKiom1PZrXKCHm1GAAJI6HQ_3FY433.jpg


3.Cryptographic Settings,取消勾选“Automatically generate a shared key”,并粘贴Open×××服务器中复制的Shared Key到此处。
wKiom1PZrYyAPwSRAAC6AesZUyc281.jpg


wKiom1PZraKD8Ms9AAEmoorYCHk763.jpg



4.Tunnel Settings,设置Tunnel Network、Remote Networks值,并勾选“Compress tunnel packets using the LZO algorithm”
wKiom1PZrbKA0uRqAAOxW5OJPkI765.jpg


5.点击“Save” 按钮返回主界面
wKioL1PZrt6SA1njAACWR173dSU654.jpg

四、确认连接信息

1.服务器端 

wKiom1PZre6BwDFLAADYjsBB7y0040.jpg2.客户端
wKiom1PZrfzRyTjUAADrxaJNKd0784.jpg五、网络测试至完成

1、客户端PING服务器IP段
wKioL1PZrySw-erqAAG4lQh5UyI923.jpg

2、服务器PING客户端IP段
wKiom1PZrjvzVCVoAAHmRwMJcWk461.jpg