﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-loonsw's Tech Blog-随笔分类-Network Management</title><link>http://www.cppblog.com/loonsw/category/14484.html</link><description>Algorithm, Mathematics, C/C++,  GNU/Linux, Emacs/Vim…</description><language>zh-cn</language><lastBuildDate>Mon, 09 Aug 2010 07:58:16 GMT</lastBuildDate><pubDate>Mon, 09 Aug 2010 07:58:16 GMT</pubDate><ttl>60</ttl><item><title>配置pptp server</title><link>http://www.cppblog.com/loonsw/archive/2010/08/09/122785.html</link><dc:creator>redcode</dc:creator><author>redcode</author><pubDate>Mon, 09 Aug 2010 07:48:00 GMT</pubDate><guid>http://www.cppblog.com/loonsw/archive/2010/08/09/122785.html</guid><wfw:comment>http://www.cppblog.com/loonsw/comments/122785.html</wfw:comment><comments>http://www.cppblog.com/loonsw/archive/2010/08/09/122785.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/loonsw/comments/commentRss/122785.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/loonsw/services/trackbacks/122785.html</trackback:ping><description><![CDATA[<span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Simsun; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span>首先,配置pptp server主要涉及到的软件包括pptpd, ppp, iptables.<br>安装完上述软件分别配置相关的配置文件:<br><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Simsun; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><span style="TEXT-ALIGN: left; LINE-HEIGHT: 20px; FONT-FAMILY: Verdana, Arial, sans-serif; FONT-SIZE: 13px" class=Apple-style-span><strong>vim /etc/pptpd.conf<br></strong><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Simsun; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><span style="TEXT-ALIGN: left; LINE-HEIGHT: 20px; FONT-FAMILY: Verdana, Arial, sans-serif; FONT-SIZE: 13px" class=Apple-style-span><strong>vim /etc/ppp/pptpd-options<br></strong><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Simsun; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><span style="TEXT-ALIGN: left; LINE-HEIGHT: 20px; FONT-FAMILY: Verdana, Arial, sans-serif; FONT-SIZE: 13px" class=Apple-style-span><strong>vim /etc/ppp/options(ppp选项)<br></strong><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Simsun; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><span style="TEXT-ALIGN: left; LINE-HEIGHT: 20px; FONT-FAMILY: Verdana, Arial, sans-serif; FONT-SIZE: 13px" class=Apple-style-span><strong>vim /etc/ppp/chap-secrets(pptp用户名密码)<br>最后由于iptables的版本，需要<span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Simsun; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><span style="FONT-FAMILY: song, Verdana; FONT-SIZE: 12px" class=Apple-style-span><br>modprobe ip_nat_pptp</span></span><br></strong><span style="FONT-SIZE: 14pt">参考<br></span><a href="http://www.vpser.net/manage/linode-vps-pptp-vpn-howto.html"><u><font color=#0066cc size=3>http://www.vpser.net/manage/linode-vps-pptp-vpn-howto.html</font></u></a><br><a href="http://www.tektalk.org/2010/03/13/%E5%BD%93nat%E9%81%87%E8%A7%81pptp/"><u><font color=#0066cc size=3>http://www.tektalk.org/2010/03/13/当nat遇见pptp/</font></u></a></span></span></span></span></span></span></span></span></span>
<img src ="http://www.cppblog.com/loonsw/aggbug/122785.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/loonsw/" target="_blank">redcode</a> 2010-08-09 15:48 <a href="http://www.cppblog.com/loonsw/archive/2010/08/09/122785.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>