Jean - 记录成长历程

  • 关于
  • Language
  • RSS Feed
  • 微博
  • 豆瓣
26
Feb

Linux L2TP配置手记(不包含ipsec)

By admin|Linux系统|2 Comments

因为PPTP的不稳定性,考虑采用L2TP替代。缺点是客户连接时需要修改注册表。

配置文件

vim /etc/xl2tpd/xl2tpd.conf

[global]
;listen-addr = 1.1.1.1
;
; requires openswan-2.5.18 or higher – Also does not yet work in combination
; with kernel mode l2tp as present in linux 2.6.23+
; ipsec saref = yes
; forceuserspace = yes
;
; debug tunnel = yes
auth file = /etc/ppp/chap-secrets
[lns default]
ip range = 192.168.8.11-192.168.8.250
local ip = 192.168.8.1
lac = 0.0.0.0-255.255.255.255
require chap = yes
refuse pap = yes
require authentication = yes
name = www.vpn38.net
pppoptfile = /etc/ppp/options.xl2tpd
length bit = yes

vim /etc/ppp/options.xl2tpd

ipcp-accept-local
ipcp-accept-remote
ms-dns  8.8.4.4
auth
crtscts
idle 1800
mru 1410
defaultroute
lock
proxyarp
connect-delay 5000

注意:在WIN下连接需要修改注册表,因为默认要用ipsec

安装

http://linuxexplore.wordpress.com/how-tos/l2tp-vpn-using-xl2tpd/

国内的先行者

http://www.linuxforum.net/forum/showflat.php?Board=proxy&Number=491080

http://www.chinaunix.net/jh/50/1115554.html

无觅相关文章插件,快速提升流量

Tagged as: 基础
Add your comment →

2 Comments

  1. 这个也是不行的。 Strongswan/FreeSwan/OpenSWAN 的IPSEC v1 全部存在问题 不能自动断开连接

    [回复]

    admin 回复:
    03月 23rd, 2010 at 22:14

    @Yucong Sun, 何为不能自动断开连接?

    [回复]

    By: Yucong Sun
    2010-03-23 at 13:45

Leave your comment below! Cancel Reply

点击取消回复

View More Posts:
  • ←
  • →

分类

  • Linux系统 (61)
  • Linux集群 (4)
  • Web服务器 (26)
  • 创业相关 (6)
  • 工作笔记 (34)
  • 我爱折腾 (16)
  • 日记 (46)
  • 网络 (3)
  • 脚本编程 (49)

最新日志

  • 使用w3 total cache给wordpress提速
  • 从零开始,我的创业感悟
  • 为大众创造更美好的日常生活
  • 我的站立式工作平台
  • 阿里云计算使用简评

最新评论

  • admin on 从零开始,我的创业感悟
  • Kovlala on 从零开始,我的创业感悟
  • jean on 从零开始,我的创业感悟
  • Kovlala on 从零开始,我的创业感悟
  • ElmaByrd35 on 解决Fedora 11中文字体难看问题

博客互联

  • HackLog
  • leapsoul
  • Myredhat
  • Ninth element
  • Ti’blog
  • William Hua
  • young001
  • 懒人运维
  • 曙光博客
  • 月夜
  • 月影
  • 杂货店一号铺
  • 王先进’s blog
  • 疯中舞步
  • 菜鸟的技术站
  • 运维进行时

技术

  • DBA BLOG
  • 回忆未来[张宴]
  • 扶凯
  • 王炜's Blog
  • 百变贝贝

Powered by the inLine Minimal WordPress Theme