Skip to content

Instantly share code, notes, and snippets.

@andyzhang26503
Forked from lg0/gist:3481797
Created October 2, 2013 11:18
Show Gist options
  • Save andyzhang26503/6792237 to your computer and use it in GitHub Desktop.
Save andyzhang26503/6792237 to your computer and use it in GitHub Desktop.

Revisions

  1. MaTrine revised this gist May 21, 2013. 1 changed file with 1 addition and 8 deletions.
    9 changes: 1 addition & 8 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -22,11 +22,4 @@


    *注意* 当使用新的vpn地址,或者原来的ip地址发生变化时,会拨号失败。

    解决方案:

    01. 打开终端,输入(不执行)
    `sudo cp /var/run/racoon/*.conf /etc/racoon/`
    02. vpn拨号(新地址)
    03. 在终端执行刚才输入的命令
    04. 按照前面的步骤(vim xxx.conf)修改配置文件
    解决方法:复制原来的`.conf`文件,名字以及文件内部的ip地址修改为新ip即可。
  2. MaTrine revised this gist May 19, 2013. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -19,3 +19,14 @@
    `lifetime time 24 hours;`
    10. 重新链接 Cisco IPSec (让系统使用修改后的配置文件)
    11. 经测试连接5小时以上未断线


    *注意* 当使用新的vpn地址,或者原来的ip地址发生变化时,会拨号失败。

    解决方案:

    01. 打开终端,输入(不执行)
    `sudo cp /var/run/racoon/*.conf /etc/racoon/`
    02. vpn拨号(新地址)
    03. 在终端执行刚才输入的命令
    04. 按照前面的步骤(vim xxx.conf)修改配置文件
  3. MaTrine revised this gist Mar 14, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@
    05. 将下面一行添加到文件末尾,**包含分号**(使用定制的配置文件):
    `include "/etc/racoon/xxx.xxx.xxx.xxx.conf" ;`
    06. 修改 IPSec 配置文件:
    `$ sudo vim /etc/racoon/xxx.xxx.xxx.xxx.co07`
    `$ sudo vim /etc/racoon/xxx.xxx.xxx.xxx.conf`
    07. 取消 dead peer 检测:
    `dpd_delay 0;`
    08. 修改请求方式为 claim(**重要**,原来为 obey):
  4. MaTrine renamed this gist Aug 27, 2012. 1 changed file with 0 additions and 0 deletions.
  5. MaTrine revised this gist Aug 26, 2012. No changes.
  6. MaTrine renamed this gist Aug 26, 2012. 1 changed file with 0 additions and 0 deletions.
  7. MaTrine created this gist Aug 26, 2012.
    21 changes: 21 additions & 0 deletions fix-cisco-ipsec-on-mac.markdown
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    解决方案来自:[Apple Support Communities] (https://discussions.apple.com/thread/3275811?start=0&tstart=0)

    01. 连接 VPN Cisco IPSec (让系统生成配置文件)
    02. 拷贝配置文件到`/etc/racoon`打开终端执行:
    `$ sudo cp /var/run/racoon/xxx.xxx.xxx.xxx.conf /etc/racoon`
    03. 修改 racoon 配置文件:
    `$ sudo vim /etc/racoon/racoon.conf`
    04. 将最后一行注释掉(目的是不使用系统生成配置):
    `# include "/var/run/racoon/*.conf" ;`
    05. 将下面一行添加到文件末尾,**包含分号**(使用定制的配置文件):
    `include "/etc/racoon/xxx.xxx.xxx.xxx.conf" ;`
    06. 修改 IPSec 配置文件:
    `$ sudo vim /etc/racoon/xxx.xxx.xxx.xxx.co07`
    07. 取消 dead peer 检测:
    `dpd_delay 0;`
    08. 修改请求方式为 claim(**重要**,原来为 obey):
    `proposal_check claim;`
    09. 修改请求周期 (所有 proposal 中的值原来是3600 sec):
    `lifetime time 24 hours;`
    10. 重新链接 Cisco IPSec (让系统使用修改后的配置文件)
    11. 经测试连接5小时以上未断线