添加用户名和密码

echo "user l2tpd password *">>/etc/ppp/chap-secrets

/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

service xl2tpd status

最新文章

  1. IO流知识点总结
  2. Linux系统监控命令之iotop
  3. Win7构造wifi热点【Written By KillerLegend】
  4. ACM1994
  5. ADO.NET 快速入门(九):使用关系型数据
  6. C++实现线程池 .
  7. [jstips]undefined和null的区别
  8. heapsort(Java)(最小堆)
  9. 数据库建模&逆向工程工具
  10. Android_注解+反射代替findViewById()
  11. JS正则表达式验证身份证号码
  12. CVPR2019 | Mask Scoring R-CNN 论文解读
  13. Java - Stack源码解析
  14. js input输入框的总结
  15. OpenJ_POJ C16D Extracurricular Sports 打表找规律
  16. 使用 Selenium
  17. [转]Centos7下面配置静态IP
  18. busybox hexdump 命令使用
  19. Django1.6 运行manage.py 报错解决办法(ImportError)
  20. DEV 打印功能

热门文章

  1. Dynamics 365的系统作业实体记录增长太快怎么回事?
  2. 轨迹系列1——一种基于路网图层的GPS轨迹优化方案
  3. iead2018创建JavaWe工程
  4. asp.net --> 初识WCF
  5. python正则表达式模块re
  6. Linux内核最新的连续内存分配器(CMA)——避免预留大块内存【转】
  7. python3 Queue(单向队列)
  8. 软件设计之Deep Module(深模块)
  9. MySQL 5.7.13 的一个BUG
  10. 【Teradata Utility】使用SQL Assistant导出导入数据