1.安装依赖包

yum -y install gcc gcc-c++ flex libedit libedit-devel bison openssl openssl-devel qt qt-devel

2.安装cmake

wget http://www.cmake.org/files/v3.0/cmake-3.0.0.tar.gz
tar zxvf cmake-3.0.0.tar.gz -C /usr/src
cd /usr/src/cmake-3.0.0
./configure
make
make install

3.安装Shrew Soft ××× Client

wget https://www.shrew.net/download/ike/ike-2.2.1-release.tgz
tar zxvf ike-2.2.1-release.tgz -C /usr/src
cd /usr/src/ike
cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTGUI=YES -DETCDIR=/etc -DNATT=YES
make
make install
cp /etc/iked.conf.sample /etc/iked.conf

6.修改系统参数

vi /etc/sysctl.conf
#将以下两处改为0
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.all.rp_filter = 0
#运行以下命令使修改生效
sysctl -p

4.启动

iked
qikea

5.接下来的配置就和windows客户端差不多了