l2tp pptp相关的一些记录

Posted xiangnan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了l2tp pptp相关的一些记录相关的知识,希望对你有一定的参考价值。

/etc/ipsec.conf

  dpddelay=30
  dpdtimeout=120

改为

  dpddelay=5
  dpdtimeout=5

http://linux.die.net/man/5/ipsec.conf
dpddelay Set the delay (in seconds) between Dead Peer Dectection (RFC 3706) keepalives (R_U_THERE, R_U_THERE_ACK) that are sent for this connection。

dpdtimeout Set the length of time (in seconds) we will idle without hearing either an R_U_THERE poll from our peer, or an R_U_THERE_ACK reply.

dpdaction :When a DPD enabled peer is declared dead, what action should be taken. hold (default) means the eroute will be put into %hold status, while clear means the eroute and SA with both be cleared. restart means the the SA will immediately be renegotiated, and restart_by_peer means that ALL SA‘s to the dead peer will renegotiated.

dpdaction=clear is really only useful on the server of a Road Warrior config.

/etc/ipsec.secrets

/etc/init.d/xl2tpd restart


以上是关于l2tp pptp相关的一些记录的主要内容,如果未能解决你的问题,请参考以下文章

PPTP,L2TP,IPSec和SSL VPN的区别

pptp模式和l2tp模式有啥区别

在 Android 中以编程方式配置 PPTP/L2TP ***

具有多个外部 IP 的 L2TP / PPTP 服务器

pptp不需要填密钥

VPN 的 PPTP ,L2TP 与 PPPOE 有啥区别