<?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>Ubuntu &#8211; WilliamKyle&#039;s Home</title>
	<atom:link href="https://www.williamkyle.com.cn/archives/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>https://www.williamkyle.com.cn</link>
	<description>不积跬步，无以至千里；不积小流，无以成江海。</description>
	<lastBuildDate>Fri, 26 Feb 2016 18:13:34 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.3</generator>
	<item>
		<title>Ubuntu 上搭建 PPTPD 的 VPN</title>
		<link>https://www.williamkyle.com.cn/archives/91.html</link>
					<comments>https://www.williamkyle.com.cn/archives/91.html#respond</comments>
		
		<dc:creator><![CDATA[WilliamKyle]]></dc:creator>
		<pubDate>Thu, 09 Feb 2012 08:05:19 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PPTPD]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[VPS]]></category>
		<guid isPermaLink="false">http://www.williamkyle.com.cn/?p=91</guid>

					<description><![CDATA[&#160; &#160; 这个主机是在 BuyVM 买的 VPS，装的是 Ubuntu，折腾一年多了，下面把 &#8230; <a href="https://www.williamkyle.com.cn/archives/91.html" class="more-link">继续阅读<span class="screen-reader-text">Ubuntu 上搭建 PPTPD 的 VPN</span></a>]]></description>
										<content:encoded><![CDATA[<div>
	&nbsp; &nbsp; 这个主机是在 BuyVM 买的 VPS，装的是 Ubuntu，折腾一年多了，下面把以前用 pptpd 搭建 VPN 的流程记录一下。</div>
<div>
	<br />
	&nbsp;&nbsp;&nbsp;&nbsp; 安装 pptpd</div>
<div>
<pre class="brush:bash;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;">
apt-get install pptpd
</pre>
</div>
<div>
	&nbsp;&nbsp;&nbsp;&nbsp; 配置 pptpd</div>
<div>
<pre class="brush:bash;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;">
vi /etc/pptpd.conf 
#去掉 localip 192.168.0.1 remoteip 192.168.0.234-238,192.168.0.245 前面的 #
</pre>
</div>
<div>
	&nbsp;&nbsp;&nbsp;&nbsp; 配置 ppp</div>
<div>
<pre class="brush:bash;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;">
vi /etc/ppp/options 
ms-dns 8.8.8.8 
vi /etc/ppp/chap-secrets 
#依次添加 用户名、服务器、密码、IP
</pre>
</div>
<div>
	&nbsp;&nbsp;&nbsp;&nbsp; 打开转发</div>
<div>
<span id="more-91"></span>	</p>
<pre class="brush:bash;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;">
vi /etc/sysctl.conf 
#去掉 net.ipv4.ip_forward=1 前面的 #
</pre>
</div>
<div>
	&nbsp;&nbsp;&nbsp;&nbsp; 设置路由</div>
<div>
<pre class="brush:bash;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;">
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j SNAT --to-source 服务器 IP
</pre>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.williamkyle.com.cn/archives/91.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
