<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>深度VPS &#187; L2TP</title>
	<atom:link href="http://www.deepvps.com/tag/l2tp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.deepvps.com</link>
	<description>专注VPS技术，关注前端技术</description>
	<lastBuildDate>Sat, 04 Feb 2023 14:00:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>L2TP VPN 一键安装脚本 for CentOS Linux</title>
		<link>http://www.deepvps.com/l2tp-vpn-auto-installer.html</link>
		<comments>http://www.deepvps.com/l2tp-vpn-auto-installer.html#comments</comments>
		<pubDate>Mon, 11 Oct 2010 12:31:26 +0000</pubDate>
		<dc:creator>deepvps</dc:creator>
				<category><![CDATA[服务器环境搭建]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[L2TP]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[一键安装]]></category>
		<category><![CDATA[脚本]]></category>

		<guid isPermaLink="false">http://www.deepvps.com/?p=594</guid>
		<description><![CDATA[此脚本可在 Xen-base VPS 上自动配置 L2TP over IPSEC 的 VPN Server，在 Las Vegas 上的一台 Xen-Base VPS 上测试成功，系统为 Centos 5.5 32bit。
项目发布页：http://zeddicus.com/a-key-installation-package-l2tp
2010年11月1日，更新 1.2 版本，增加对 Ubuntu/Debian/Fedora 32bit / 64bit 的支持。由于没有功能性的更新，所以1.1用户不需要升级至1.2。
2010年10月10日，由于有朋友反映，编译成二进制之后会无法运行，因此放出源码。
2010年10月12日，1.1版放出，修复一个BUG，1.0的用户请使用 Bug Fix 脚本修复，可以不重装。
1.0升级至1.1方法：
wget http://mirror.zeddicus.com/auto-l2tp/1.0/fix1.0.tar.gz
tar zxvf fix1.0.tar.gz
./fix.sh
Xen-Base VPS 安装步骤：
CentOS / Fedora:
wget http://mirror.zeddicus.com/auto-l2tp/1.2/centos/l2tp.sh
chmod +x l2tp.sh
./l2tp.sh
Ubuntu / Debian:
wget http://mirror.zeddicus.com/auto-l2tp/1.2/ubuntu/l2tp.sh
chmod +x l2tp.sh
./l2tp.sh


此时需要输入IP段与PSK，值得注意的是，如果希望L2TP的IP段是 10.0.0.0 的话，则在脚本的IP-RANGE中输入 “10.0.0″。PSK 是 l2tp client 共同使用的密匙，同样是必填的。
输入了IP段和PSK之后，程序会显示你的VPS当前的IP（IPV4）、L2TP的本地IP、分配给客户端的IP段以及你所设置的PSK，请确认无误后，按任意键，程序便会开始自动配置。

安装完毕后会运行 ipsec verify，如果与上图一致，证明配置成功！用于测试的用户名与密码分别是：test / test123，记录于 [...]]]></description>
			<content:encoded><![CDATA[<p>此脚本可在 Xen-base VPS 上自动配置 L2TP over IPSEC 的 VPN Server，在 <a href="http://www.deepvps.com/go/vpsyou" target="_blank">Las Vegas</a> 上的一台 Xen-Base VPS 上测试成功，系统为 Centos 5.5 32bit。</p>
<p>项目发布页：<a href="http://zeddicus.com/a-key-installation-package-l2tp" target="_blank">http://zeddicus.com/a-key-installation-package-l2tp</a></p>
<p><strong><span style="color: #ff0000;">2010年11月1日，更新 1.2 版本，增加对 Ubuntu/Debian/Fedora 32bit / 64bit 的支持。由于没有功能性的更新，所以1.1用户不需要升级至1.2。</span></strong></p>
<p><span style="color: #ff0000;">2010年10月10日，由于有朋友反映，编译成二进制之后会无法运行，因此放出源码。</span></p>
<p><span style="color: #ff0000;">2010年10月12日，1.1版放出，修复一个BUG，1.0的用户请使用 Bug Fix 脚本修复，可以不重装。</span></p>
<p><span style="color: #ff0000;">1.0升级至1.1方法：</span></p>
<blockquote><p>wget http://mirror.zeddicus.com/auto-l2tp/1.0/fix1.0.tar.gz<br />
tar zxvf fix1.0.tar.gz<br />
./fix.sh</p></blockquote>
<p><strong>Xen-Base VPS 安装步骤：</strong></p>
<p><strong>CentOS / Fedora:</strong></p>
<blockquote><p>wget http://mirror.zeddicus.com/auto-l2tp/1.2/centos/l2tp.sh<br />
chmod +x l2tp.sh<br />
./l2tp.sh</p></blockquote>
<p><strong>Ubuntu / Debian:</strong></p>
<blockquote><p>wget http://mirror.zeddicus.com/auto-l2tp/1.2/ubuntu/l2tp.sh<br />
chmod +x l2tp.sh<br />
./l2tp.sh</p></blockquote>
<p><img title="l2tp1" src="http://www.deepvps.com/wp-content/uploads/auto_save_image/2010/10/123559pzG.jpg" alt="" width="426" height="253" /><br />
<span id="more-594"></span><br />
此时需要输入IP段与PSK，值得注意的是，<strong><span style="color: #ff0000;">如果希望L2TP的IP段是 10.0.0.0 的话，则在脚本的IP-RANGE中输入 “10.0.0″</span></strong>。PSK 是 l2tp client 共同使用的密匙，同样是必填的。</p>
<p>输入了IP段和PSK之后，程序会显示你的VPS当前的IP（IPV4）、L2TP的本地IP、分配给客户端的IP段以及你所设置的PSK，请确认无误后，按任意键，程序便会开始自动配置。</p>
<p><img title="l2tp2" src="http://www.deepvps.com/wp-content/uploads/auto_save_image/2010/10/20360052O.jpg" alt="" width="594" /></p>
<p>安装完毕后会运行 ipsec verify，如果与上图一致，证明配置成功！用于测试的用户名与密码分别是：test / test123，记录于 /etc/ppp/chap-secrets 文件当中。</p>
<p><strong>客户端设置（以 Windows XP 为例）：</strong></p>
<p>创建一个VPN连接：</p>
<p><img title="client1" src="http://www.deepvps.com/wp-content/uploads/auto_save_image/2010/10/203600wdB.jpg" alt="" width="495" height="374" /></p>
<p><img title="client2" src="http://www.deepvps.com/wp-content/uploads/auto_save_image/2010/10/203600JqT.jpg" alt="" width="494" height="372" /></p>
<p><img title="client3" src="http://www.deepvps.com/wp-content/uploads/auto_save_image/2010/10/203600j0Y.jpg" alt="" width="495" height="370" /></p>
<p><img title="client4" src="http://www.deepvps.com/wp-content/uploads/auto_save_image/2010/10/203600LGY.jpg" alt="" width="496" height="371" /></p>
<p><a href="http://www.deepvps.com/wp-content/uploads/auto_save_image/2010/10/2036004Li.jpg"><img title="client5" src="http://www.deepvps.com/wp-content/uploads/auto_save_image/2010/10/2036004Li.jpg" alt="" width="498" height="372" /></a></p>
<p><a href="http://www.deepvps.com/wp-content/uploads/auto_save_image/2010/10/203600seM.jpg"><img title="client6" src="http://www.deepvps.com/wp-content/uploads/auto_save_image/2010/10/203600seM.jpg" alt="" width="346" height="364" /></a></p>
<p><a href="http://www.deepvps.com/wp-content/uploads/auto_save_image/2010/10/203600WqV.jpg"><img title="client7" src="http://www.deepvps.com/wp-content/uploads/auto_save_image/2010/10/203600WqV.jpg" alt="" width="359" height="435" /></a></p>
<p><a href="http://www.deepvps.com/wp-content/uploads/auto_save_image/2010/10/203600yJY.jpg"><img title="client8" src="http://www.deepvps.com/wp-content/uploads/auto_save_image/2010/10/203600yJY.jpg" alt="" width="359" height="437" /></a></p>
<p>设置完就可以连接了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deepvps.com/l2tp-vpn-auto-installer.html/feed</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
	</channel>
</rss>
