Cisco IPSec configuration steps on Ubuntu 16.04

https://www.debuntu.org/how-to-connect-to-a-cisco-vpn-with-vpnc/

1. Installing vpnc

You will first need to get the vpnc package and install it. Fire up a terminal and enter this command:

sudo apt-get install vpnc

2. Creating a *.conf file

cd /etc/vpnc/
cp default.conf mmw.conf

Modify mmw.conf as follows:
(IIIS OpenStack)

#thu.iiis.co 166.111.129.132
#gw.iiis.co  122.200.68.61
IPSec gateway 166.111.129.132    
IPSec ID test
IPSec secret 123456
#IKE Authmode hybrid
Xauth username your_username
Xauth password your_password

3. Using a configuration file

ubuntu@yc-ubuntu:/etc$ sudo vpnc mmw --enable-1des
VPNC started in background (pid: 22892)...
ubuntu@yc-ubuntu:/etc$ ping 10.19.0.80
PING 10.19.0.80 (10.19.0.80) 56(84) bytes of data.
64 bytes from 10.19.0.80: icmp_seq=1 ttl=63 time=0.915 ms
64 bytes from 10.19.0.80: icmp_seq=2 ttl=63 time=0.764 ms
^C
--- 10.19.0.80 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1030ms
rtt min/avg/max/mdev = 0.764/0.839/0.915/0.080 ms

4. Disconnecting from a VPN

Once connected, the client can be disconnected using:

sudo vpnc-disconnect
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,486评论 0 10
  • 对于编译好的qt程序可以使用下面的方法导出: 打开Qt 5.8 for Desktop (MinGW 5.3.0 ...
    厝弧阅读 1,650评论 0 5
  • 又是一个无眠夜,她呆呆地望着窗边微亮。北方的天总是灰蒙蒙,虽已开春,可明媚的景色迟迟不来,要晚些吧。“真的要这样离...
    心田匠芳阅读 321评论 0 0
  • 说起来,鹿子比我更热爱生活。从小,她就喜欢小动物,特别喜欢小狗,在路上看到鸡啊虫啊,不是追在后面搞得鸡飞狗跳,就是...
    张爽_b376阅读 362评论 0 1
  • 如何去选择坚持 坚持是一个充满正能量的词,百度百科定义坚持是有耐性、不改变不动摇、始终如一,坚持是意志力完美的表现...
    li李琳阅读 515评论 2 1