<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Ubuntu Step</title>
		<link>http://ubuntu.ucoz.co.uk/</link>
		<description></description>
		<lastBuildDate>Sat, 17 Apr 2010 18:32:29 GMT</lastBuildDate>
		<generator>uCoz Web-Service</generator>
		<atom:link href="http://ubuntu.ucoz.co.uk/news/rss" rel="self" type="application/rss+xml" />
		
		<item>
			<title>主站迁移</title>
			<description>迁移至 &lt;a href=&quot;http://ubuntu.ta2oyo.info&quot;&gt;http://ubuntu.ta2oyo.info&lt;/a&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;本站点不再更新...迁移进行中&lt;/div&gt;</description>
			<content:encoded>迁移至 &lt;a href=&quot;http://ubuntu.ta2oyo.info&quot;&gt;http://ubuntu.ta2oyo.info&lt;/a&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;本站点不再更新...迁移进行中&lt;/div&gt;</content:encoded>
			<link>http://ubuntu.ucoz.co.uk/news/2010-04-17-63</link>
			<dc:creator>forestrex</dc:creator>
			<guid>http://ubuntu.ucoz.co.uk/news/2010-04-17-63</guid>
			<pubDate>Sat, 17 Apr 2010 18:32:29 GMT</pubDate>
		</item>
		<item>
			<title>升级到10.04手札</title>
			<description>1、rtorrent的.rtorrent.rc没有了execute_log、stop_on_ratio参数，execute_log竟然不能忽略，需要手工注释掉，不然无法启动</description>
			<content:encoded>1、rtorrent的.rtorrent.rc没有了execute_log、stop_on_ratio参数，execute_log竟然不能忽略，需要手工注释掉，不然无法启动</content:encoded>
			<link>http://ubuntu.ucoz.co.uk/news/10_04/2010-04-15-62</link>
			<dc:creator>forestrex</dc:creator>
			<guid>http://ubuntu.ucoz.co.uk/news/10_04/2010-04-15-62</guid>
			<pubDate>Thu, 15 Apr 2010 17:29:53 GMT</pubDate>
		</item>
		<item>
			<title>OpenVPN的DNS设置</title>
			<description>&lt;span style=&quot;font-family: Verdana, Tahoma, &apos;BitStream vera Sans&apos;, Arial, Helvetica, sans-serif; color: rgb(51, 51, 51); line-height: 17px; &quot;&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;转载自&amp;nbsp;&lt;a href=&quot;http://www.fallday.org/archives/399&quot;&gt;http://www.fallday.org/archives/399&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;在使用OpenVPN时，有的时候需要使用VPN的DNS，有的时候却需要使用本地网络的DNS。OpenVPN可以在配置中支持DNS设置，如果是server来配置客户端DNS, 需要在配置文件中加入：&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;push &quot;dhcp-option DNS 208.67.222.222″&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padd...</description>
			<content:encoded>&lt;span style=&quot;font-family: Verdana, Tahoma, &apos;BitStream vera Sans&apos;, Arial, Helvetica, sans-serif; color: rgb(51, 51, 51); line-height: 17px; &quot;&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;转载自&amp;nbsp;&lt;a href=&quot;http://www.fallday.org/archives/399&quot;&gt;http://www.fallday.org/archives/399&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;在使用OpenVPN时，有的时候需要使用VPN的DNS，有的时候却需要使用本地网络的DNS。OpenVPN可以在配置中支持DNS设置，如果是server来配置客户端DNS, 需要在配置文件中加入：&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;push &quot;dhcp-option DNS 208.67.222.222″&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;push &quot;dhcp-option DNS 208.67.220.220″&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;span id=&quot;more-399&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;/span&gt;如果是在客户端配置，需要在配置文件设置：&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;dhcp-option DNS 208.67.222.222&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;dhcp-option DNS 208.67.220.220&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;DNS的IP地址要根据实际情况设定。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;如果是希望使用本地的默认DNS，要确认在配置文件中把DNS的配置注释掉。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;;push &quot;dhcp-option DNS 208.67.222.222″&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;;push &quot;dhcp-option DNS 208.67.220.220″&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;如果需要在多种情况下切换，可以在客户端创建多个openvpn配置文件，在连接时选择需要的配置即可。&lt;/p&gt;&lt;/span&gt;</content:encoded>
			<link>http://ubuntu.ucoz.co.uk/news/openvpn_dns/2010-04-12-61</link>
			<dc:creator>forestrex</dc:creator>
			<guid>http://ubuntu.ucoz.co.uk/news/openvpn_dns/2010-04-12-61</guid>
			<pubDate>Mon, 12 Apr 2010 16:15:54 GMT</pubDate>
		</item>
		<item>
			<title>Webmin是个好东西</title>
			<description>一开始装个Webmin只不过因为他前台就可以apt，没想到它插件还真的多，其中很多第三方插件还很好用。debian系的可以按照官方的介绍手工加源</description>
			<content:encoded>一开始装个Webmin只不过因为他前台就可以apt，没想到它插件还真的多，其中很多第三方插件还很好用。debian系的可以按照官方的介绍手工加源</content:encoded>
			<link>http://ubuntu.ucoz.co.uk/news/webmin/2010-04-12-60</link>
			<dc:creator>forestrex</dc:creator>
			<guid>http://ubuntu.ucoz.co.uk/news/webmin/2010-04-12-60</guid>
			<pubDate>Mon, 12 Apr 2010 12:57:02 GMT</pubDate>
		</item>
		<item>
			<title>Ubuntu中安装Trac</title>
			<description>似乎所有的教程中都说Trac很简单，但一看方法晕了，啥都有。。。这里就只走通2条路：&lt;div&gt;&lt;ul&gt;&lt;li&gt;trac自带服务&lt;/li&gt;&lt;li&gt;Apache集成模式&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;hr&gt;&lt;/div&gt;&lt;div&gt;首先是trac自带服务：&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier; font-size: 14px; color: rgb(19, 19, 19); line-height: 22px; &quot;&gt;sudo apt-get install trac&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif, Helvetica, Tahoma; line-height: 18px; &quot;&gt;sqlite&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif, Helvetica, Tahoma; line-height: 18px; &quot;&gt;&amp;nbsp;python-sqlite&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Arial, sans-serif, Helvetica, Tahoma&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: 22px; font-size: 14px; color: rgb(19, 19, 19); &quot;&gt;安装完后就可以建立Trac系统，我准备安装在/var/www/trac目录下。建立Trac系统主要使用trac-admin中的initenv命令。注意所有对Trac系统的操作我都用www-data用户来完成，因为Trac是一个Web应用，是通过Apache来访问的。详细过程如下:&lt;br style=&quot;line-height: 22px; &quot;&gt;&lt;span style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&amp;nbsp; cd /var/www&lt;/span&gt;&lt;br style=&quot;line-height: 22px; font-family: C...</description>
			<content:encoded>似乎所有的教程中都说Trac很简单，但一看方法晕了，啥都有。。。这里就只走通2条路：&lt;div&gt;&lt;ul&gt;&lt;li&gt;trac自带服务&lt;/li&gt;&lt;li&gt;Apache集成模式&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;hr&gt;&lt;/div&gt;&lt;div&gt;首先是trac自带服务：&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier; font-size: 14px; color: rgb(19, 19, 19); line-height: 22px; &quot;&gt;sudo apt-get install trac&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif, Helvetica, Tahoma; line-height: 18px; &quot;&gt;sqlite&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif, Helvetica, Tahoma; line-height: 18px; &quot;&gt;&amp;nbsp;python-sqlite&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Arial, sans-serif, Helvetica, Tahoma&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: 22px; font-size: 14px; color: rgb(19, 19, 19); &quot;&gt;安装完后就可以建立Trac系统，我准备安装在/var/www/trac目录下。建立Trac系统主要使用trac-admin中的initenv命令。注意所有对Trac系统的操作我都用www-data用户来完成，因为Trac是一个Web应用，是通过Apache来访问的。详细过程如下:&lt;br style=&quot;line-height: 22px; &quot;&gt;&lt;span style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&amp;nbsp; cd /var/www&lt;/span&gt;&lt;br style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&lt;span style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&amp;nbsp; sudo mkdir trac&lt;/span&gt;&lt;br style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&lt;span style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&amp;nbsp; sudo chown -R www-data:www-data trac&lt;/span&gt;&lt;br style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&lt;span style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&amp;nbsp; sudo -u www-data trac-admin trac initenv&lt;/span&gt;&lt;br style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&lt;span style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Project Name [My Project]&amp;gt; 在这里输入你的项目名称&lt;/span&gt;&lt;br style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&lt;span style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Database connection string [sqlite:db/trac.db]&amp;gt; 省力点，就用用sqlite，默认回车即可&lt;/span&gt;&lt;br style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&lt;span style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repository type [svn]&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; &quot;&gt;回车即可&lt;/span&gt;&lt;br style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&lt;span style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Path to repository [/path/to/repos]&amp;gt; 在这里输入你的项目对应的Subversion地址&lt;/span&gt;&lt;br style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&lt;span style=&quot;line-height: 22px; font-family: Courier; &quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Templates directory [/usr/share/trac/templates]&amp;gt; 这个有吗？记忆中没有。。。&lt;/span&gt;&lt;br style=&quot;line-height: 22px; &quot;&gt;&lt;br style=&quot;line-height: 22px; &quot;&gt;注意Trac默认情况下只能访问本机的Subversion仓库，在上面填写地址时不能加&quot;file://&quot;前缀。&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: rgb(19, 19, 19); line-height: 22px; &quot;&gt;以上！！错了，上面一步会报错，我碰到两种可能：&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: rgb(19, 19, 19); line-height: 22px; &quot;&gt;权限不足，命令前sudo即可&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;font color=&quot;#131313&quot; face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;egg环境无法获得，这个查了一下，只有靠手工设置 export&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;span style=&quot;font-family: monospace; font-size: 13px; white-space: pre; &quot;&gt;PYTHON_EGG_CACHE /var/trac/myprojects/egg-cache&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;monospace&quot; size=&quot;3&quot;&gt;&lt;span style=&quot;font-size: 13px; white-space: pre;&quot;&gt;这下应该可以了。&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;monospace&quot; size=&quot;3&quot;&gt;&lt;span style=&quot;font-size: 13px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Monaco, &apos;DejaVu Sans Mono&apos;, &apos;Bitstream Vera Sans Mono&apos;, Consolas, &apos;Courier New&apos;, monospace; white-space: normal; font-size: 12px; line-height: 18px; &quot;&gt;&lt;strong style=&quot;font-weight: bold; &quot;&gt;启动&lt;span class=&quot;hilite1&quot; style=&quot;background-color: rgb(255, 255, 0); &quot;&gt;Trac&lt;/span&gt;并访问&lt;/strong&gt;&lt;br&gt;&amp;nbsp;启动&lt;span class=&quot;hilite1&quot; style=&quot;background-color: rgb(255, 255, 0); &quot;&gt;Trac&lt;/span&gt;&lt;br&gt;&amp;nbsp;#tracd --port 8000 /&lt;span class=&quot;hilite1&quot; style=&quot;background-color: rgb(255, 255, 0); &quot;&gt;trac&lt;/span&gt;/projects/TelecomProjects&lt;br&gt;&amp;nbsp;然后访问以下网址看&lt;span class=&quot;hilite1&quot; style=&quot;background-color: rgb(255, 255, 0); &quot;&gt;Trac&lt;/span&gt;是否正常工作&lt;br&gt;&amp;nbsp;http://localhost:8000/或者http://localhost:8000/TelecomProject&lt;br&gt;&amp;nbsp;通过上面的步骤7~8,我们可以重复添加多个&lt;span class=&quot;hilite1&quot; style=&quot;background-color: rgb(255, 255, 0); &quot;&gt;trac&lt;/span&gt;项目&lt;br&gt;&amp;nbsp;比如&lt;br&gt;&amp;nbsp;#&lt;span class=&quot;hilite1&quot; style=&quot;background-color: rgb(255, 255, 0); &quot;&gt;trac&lt;/span&gt;-admin /&lt;span class=&quot;hilite1&quot; style=&quot;background-color: rgb(255, 255, 0); &quot;&gt;trac&lt;/span&gt;/projects/OtherProjects initenv&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;monospace&quot; size=&quot;3&quot;&gt;&lt;span style=&quot;font-size: 13px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Monaco, &apos;DejaVu Sans Mono&apos;, &apos;Bitstream Vera Sans Mono&apos;, Consolas, &apos;Courier New&apos;, monospace; white-space: normal; font-size: 12px; line-height: 18px; &quot;&gt;&lt;hr&gt;接着来说Apache集成吧，&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;monospace&quot; size=&quot;3&quot;&gt;&lt;span style=&quot;font-size: 13px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Monaco, &apos;DejaVu Sans Mono&apos;, &apos;Bitstream Vera Sans Mono&apos;, Consolas, &apos;Courier New&apos;, monospace; white-space: normal; font-size: 12px; line-height: 18px; &quot;&gt;&lt;font&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;编辑apache的配置文件/etc/httpd/conf/httpd.conf文件或者/etc/httpd/conf.d/python.conf文件&lt;br&gt;&amp;nbsp;在最后增加如下部分&lt;span class=&quot;tag&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/font&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;font-family: Monaco, &apos;DejaVu Sans Mono&apos;, &apos;Bitstream Vera Sans Mono&apos;, Consolas, &apos;Courier New&apos;, monospace; font-size: 12px; background-color: transparent; width: 673px; overflow-x: auto; overflow-y: auto; margin-left: 9px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; word-break: break-all; word-wrap: break-word; &quot;&gt;&lt;font&gt;&lt;div class=&quot;bar&quot;&gt;&lt;ol class=&quot;dp-xml&quot; style=&quot;font-size: 1em; line-height: 1.4em; margin-top: 0px; margin-right: 0px; margin-bottom: 1px; margin-left: 0px; padding-top: 2px; padding-right: 0px; padding-bottom: 2px; padding-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(209, 215, 220); border-right-color: rgb(209, 215, 220); border-bottom-color: rgb(209, 215, 220); border-left-color: rgb(209, 215, 220); list-style-type: decimal; list-style-position: initial; list-style-image: initial; background-color: rgb(255, 255, 255); color: rgb(43, 145, 175); &quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); background-color: rgb(250, 250, 250); line-height: 18px; &quot;&gt;&lt;span style=&quot;color: black; &quot;&gt;&lt;span class=&quot;tag&quot; style=&quot;color: black; &quot;&gt;&lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot; style=&quot;color: black; &quot;&gt;Location&lt;/span&gt;&lt;span style=&quot;color: black; &quot;&gt;&amp;nbsp;/&lt;span class=&quot;hilite1&quot; style=&quot;background-color: rgb(255, 255, 0); color: black; &quot;&gt;trac&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;color: black; &quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; &quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); background-color: rgb(250, 250, 250); line-height: 18px; &quot;&gt;&lt;span style=&quot;color: black; &quot;&gt;SetHandler&amp;nbsp;mod_python&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); background-color: rgb(250, 250, 250); line-height: 18px; &quot;&gt;&lt;span style=&quot;color: black; &quot;&gt;PythonInterpreter&amp;nbsp;main_interpreter&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); background-color: rgb(250, 250, 250); line-height: 18px; &quot;&gt;&lt;span style=&quot;color: black; &quot;&gt;PythonHandler&amp;nbsp;&lt;span class=&quot;hilite1&quot; style=&quot;background-color: rgb(255, 255, 0); color: black; &quot;&gt;trac&lt;/span&gt;.web.modpython_frontend&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); background-color: rgb(250, 250, 250); line-height: 18px; &quot;&gt;&lt;span style=&quot;color: black; &quot;&gt;PythonOption&amp;nbsp;TracEnvParentDir&amp;nbsp;//如果单个项目的话,也可以写成PythonOption&amp;nbsp;TracEnv&amp;nbsp;/&lt;span class=&quot;hilite1&quot; style=&quot;background-color: rgb(255, 255, 0); color: black; &quot;&gt;trac&lt;/span&gt;/projects/TelecomProjects&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); background-color: rgb(250, 250, 250); line-height: 18px; &quot;&gt;&lt;span style=&quot;color: black; &quot;&gt;#PythonOption&amp;nbsp;TracEnv&amp;nbsp;/&lt;span class=&quot;hilite1&quot; style=&quot;background-color: rgb(255, 255, 0); color: black; &quot;&gt;trac&lt;/span&gt;/projects/TelecomProjects&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); background-color: rgb(250, 250, 250); line-height: 18px; &quot;&gt;&lt;span style=&quot;color: black; &quot;&gt;AuthType&amp;nbsp;Basic&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); background-color: rgb(250, 250, 250); line-height: 18px; &quot;&gt;&lt;span style=&quot;color: black; &quot;&gt;AuthName&amp;nbsp;&quot;&lt;span class=&quot;hilite1&quot; style=&quot;background-color: rgb(255, 255, 0); color: black; &quot;&gt;Trac&lt;/span&gt;&amp;nbsp;Projects&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); background-color: rgb(250, 250, 250); line-height: 18px; &quot;&gt;&lt;span style=&quot;color: black; &quot;&gt;AuthUserFile&amp;nbsp;/svn/.htpasswd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); background-color: rgb(250, 250, 250); line-height: 18px; &quot;&gt;&lt;span style=&quot;color: black; &quot;&gt;Require&amp;nbsp;valid-user&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(209, 215, 220); background-color: rgb(250, 250, 250); line-height: 18px; &quot;&gt;&lt;span style=&quot;color: black; &quot;&gt;&lt;span class=&quot;tag&quot; style=&quot;color: black; &quot;&gt;&lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot; style=&quot;color: black; &quot;&gt;Location&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;color: black; &quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; &quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;注意1:如果单个项目的话,也可以写成PythonOption TracEnv /&lt;span class=&quot;hilite1&quot; style=&quot;background-color: rgb(255, 255, 0); &quot;&gt;trac&lt;/span&gt;/projects/TelecomProjects的形式,不过我还是建议所有项目库放在同一个父路径下&lt;br&gt;&amp;nbsp;注意2：我们可以看到认证方式的配置和svn的配置相同,并且用的是同一个用户认证文件(如果你的svn用用户认证文件认证的话)!&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;配置完毕，请看&lt;a href=&quot;http://trac.edgewall.org/wiki/TracModPython&quot;&gt;http://trac.edgewall.org/wiki/TracModPython&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;懒得提了。。。-_-&lt;/p&gt;&lt;/font&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;</content:encoded>
			<link>http://ubuntu.ucoz.co.uk/news/ubuntu_trac/2010-04-12-59</link>
			<dc:creator>forestrex</dc:creator>
			<guid>http://ubuntu.ucoz.co.uk/news/ubuntu_trac/2010-04-12-59</guid>
			<pubDate>Mon, 12 Apr 2010 12:36:15 GMT</pubDate>
		</item>
		<item>
			<title>Ubuntu中安装SVN 转 译 -—_—-</title>
			<description>&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; &quot;&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; &quot;&gt;转自&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=51753&quot;&gt;http://ubuntuforums.org/showthread.php?t=51753&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;安装 APACHE2&lt;br&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; &quot;&gt;&lt;br&gt;输入以下命令安装apache2:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1p...</description>
			<content:encoded>&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; &quot;&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; &quot;&gt;转自&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=51753&quot;&gt;http://ubuntuforums.org/showthread.php?t=51753&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;安装 APACHE2&lt;br&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; &quot;&gt;&lt;br&gt;输入以下命令安装apache2:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;sudo apt-get install apache2&lt;/pre&gt;&lt;/div&gt;(如果也需要安装php与mysql，可以点这里&amp;nbsp;&lt;a href=&quot;http://ubuntuguide.org/#apachehttpserver&quot; target=&quot;_blank&quot; style=&quot;color: rgb(68, 68, 68); text-decoration: underline; &quot;&gt;Link&lt;/a&gt;)&lt;br&gt;&lt;br&gt;接着输入以下命令安装subversion:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;sudo apt-get install subversion&lt;/pre&gt;&lt;/div&gt;(in that moment doens&apos;t exist the pre-buil binary of the last version (1.2.1), but when it&apos;s out you can simple upgrade&amp;nbsp;&lt;img src=&quot;http://ubuntuforums.org/images/smilies/icon_wink.gif&quot; border=&quot;0&quot; alt=&quot;&quot; title=&quot;Wink&quot; class=&quot;inlineimg&quot; style=&quot;vertical-align: middle; &quot;&gt;&amp;nbsp;)无视忽略~&lt;br&gt;&lt;br&gt;在apache&amp;nbsp;中使用svn需要安装libapache2-svn:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;sudo apt-get install libapache2-svn&lt;/pre&gt;&lt;/div&gt;现在最好重启 apache 服务&amp;nbsp;&lt;img src=&quot;http://ubuntuforums.org/images/smilies/icon_wink.gif&quot; border=&quot;0&quot; alt=&quot;&quot; title=&quot;Wink&quot; class=&quot;inlineimg&quot; style=&quot;vertical-align: middle; &quot;&gt;&amp;nbsp;:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;sudo /etc/init.d/apache2 restart&lt;/pre&gt;&lt;/div&gt;如果你不想用SSL，可以跳过这里，直接看最后几步 (关于dav_svn.conf 配置以及账户管理).&lt;br&gt;&lt;br&gt;运行:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;a2enmod ssl&lt;/pre&gt;&lt;/div&gt;添加代码 &quot;Listen 443&quot; 到文件 /etc/apache2/ports.conf:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;sudo vim /etc/apache2/ports.conf&lt;/pre&gt;&lt;/div&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;运行&lt;/span&gt;:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;apache2-ssl-certificate&lt;/pre&gt;&lt;/div&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;创建SSL配置文件&lt;/span&gt;:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/myown-ssl&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; &quot;&gt;以上原著的&lt;/span&gt;红字两步有异议！！&lt;/div&gt;&lt;div&gt;apache2-ssl-certificate当前apache2版本中不附带，只能用openssl方法替换。具体步骤如下：&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, sans-serif, Helvetica, Tahoma; line-height: 18px; &quot;&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;1.&amp;nbsp;用以下命令产生证书：&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code style=&quot;font-family: &apos;Courier New&apos;, Courier, monospace; font-size: 1em; white-space: pre; font-style: italic; &quot;&gt;sudo openssl req -new -x509 -days 365 -nodes -out &lt;span style=&quot;font-family: monospace; font-style: normal; line-height: normal; &quot;&gt;/etc/apache2/ssl/apache.pem&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-family: &apos;Courier New&apos;, Courier, monospace; font-style: italic; white-space: pre; &quot;&gt; -keyout &lt;span style=&quot;font-family: monospace; font-style: normal; line-height: normal; &quot;&gt;/etc/apache2/ssl/apache.key&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;2.然后在/etc/apache2/sites-available/default-ssl文件中的改为&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&amp;nbsp;SSLCertificateFile&amp;nbsp;&lt;span style=&quot;font-family: monospace; line-height: normal; white-space: pre; &quot;&gt;/etc/apache2/ssl/apache.pem&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;span style=&quot;font-family: monospace; line-height: normal; white-space: pre; &quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif, Helvetica, Tahoma; white-space: normal; line-height: 18px; &quot;&gt;&amp;nbsp;SSLCertificateKeyFile&amp;nbsp;&lt;span style=&quot;font-family: monospace; line-height: normal; white-space: pre; &quot;&gt;/etc/apache2/ssl/apache.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: monospace; line-height: normal; white-space: pre; &quot;&gt;key&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;3.建立软连接&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 使用命令sudo a2ensite default-ssl就会在/etc/apache2/sites-enabled/下建立了/etc/apache2/sites-available/default-ssl文件的软连接。&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;编辑 myown-ssl（或default-ssl）文件:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;sudo vim /etc/apache2/sites-available/myown-ssl&lt;/pre&gt;&lt;/div&gt;修改:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;NameVirtualHost *&lt;/pre&gt;&lt;/div&gt;变为&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;NameVirtualHost *:443&lt;/pre&gt;&lt;/div&gt;并且将&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;VirtualHost *&amp;gt;&lt;/pre&gt;&lt;/div&gt;改为&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;VirtualHost *:443&amp;gt;&lt;/pre&gt;&lt;/div&gt;在 &lt;/VirtualHost&amp;gt; 之前添加:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 82px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
SSLProtocol all
SSLCipherSuite HIGH:MEDIUM&lt;/pre&gt;&lt;/div&gt;运行:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;a2ensite myown-ssl&lt;/pre&gt;&lt;/div&gt;重启 Apache:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;sudo /etc/init.d/apache2 restart&lt;/pre&gt;&lt;/div&gt;&lt;b&gt;最后几步:&lt;/b&gt;&lt;br&gt;&lt;br&gt;编辑 dav_svn 配置文件（就几个svn配置，文件里应该备注很清楚，主要是去掉#，把功能开出来）:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;sudo vim /etc/apache2/mods-available/dav_svn.conf&lt;/pre&gt;&lt;/div&gt;重启 apache:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt; sudo /etc/init.d/apache2 restart&lt;/pre&gt;&lt;/div&gt;创建SVN 文件夹:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 66px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;sudo svnadmin create /srv/svn
sudo chown -R www-data:www-data /srv/svn
sudo chmod -R g+ws /srv/svn&lt;/pre&gt;&lt;/div&gt;常见SVN帐号文件:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;sudo htpasswd2 -c /etc/apache2/dav_svn.passwd svnuser&lt;/pre&gt;&lt;/div&gt;(之后是输入密码。）&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; &quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; &quot;&gt;如果需要再加用户，可以用以下语句：&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; &quot;&gt;sudo htpasswd2 /etc/apache2/dav_svn.passwd svnuser&lt;/pre&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; &quot;&gt;测试SVN:&lt;br&gt;&lt;div style=&quot;margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; &quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;color: rgb(0, 0, 0); margin-top: 2px; margin-bottom: 2px; &quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;svn import .bashrc https://localhost/svn/testfile -mlogentry&lt;/pre&gt;&lt;/div&gt;完毕!!!&lt;br&gt;&lt;/span&gt;&lt;/div&gt;</content:encoded>
			<link>http://ubuntu.ucoz.co.uk/news/ubuntu_svn/2010-04-12-58</link>
			<dc:creator>forestrex</dc:creator>
			<guid>http://ubuntu.ucoz.co.uk/news/ubuntu_svn/2010-04-12-58</guid>
			<pubDate>Mon, 12 Apr 2010 12:12:18 GMT</pubDate>
		</item>
		<item>
			<title>寻找命令路径</title>
			<description>whereis &lt;命令名&amp;gt;</description>
			<content:encoded>whereis &lt;命令名&amp;gt;</content:encoded>
			<link>http://ubuntu.ucoz.co.uk/news/2010-04-11-57</link>
			<dc:creator>forestrex</dc:creator>
			<guid>http://ubuntu.ucoz.co.uk/news/2010-04-11-57</guid>
			<pubDate>Sun, 11 Apr 2010 09:03:55 GMT</pubDate>
		</item>
		<item>
			<title>创建open vpn指南</title>
			<description>转自&amp;nbsp;&lt;a href=&quot;http://forum.ubuntu.org.cn/viewtopic.php?f=166&amp;amp;t=262036&quot;&gt;http://forum.ubuntu.org.cn/viewtopic.php?f=166&amp;amp;t=262036&lt;/a&gt;&lt;div&gt;很强大，Windows客户端依样画葫芦就成&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &apos;Lucida Grande&apos;, Verdana, Helvetica, Arial, sans-serif; -webkit-border-horizontal-spacing: 5px; -webkit-border-vertical-spacing: 5px; &quot;&gt;&lt;div class=&quot;postbody&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; line-height: 16px; font-family: &apos;Lucida Grande&apos;, &apos;Trebuchet MS&apos;, Helvetica, Arial, sans-serif; &quot;&gt;首先在面板激活tup或找客服开启tup&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;以下...</description>
			<content:encoded>转自&amp;nbsp;&lt;a href=&quot;http://forum.ubuntu.org.cn/viewtopic.php?f=166&amp;amp;t=262036&quot;&gt;http://forum.ubuntu.org.cn/viewtopic.php?f=166&amp;amp;t=262036&lt;/a&gt;&lt;div&gt;很强大，Windows客户端依样画葫芦就成&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &apos;Lucida Grande&apos;, Verdana, Helvetica, Arial, sans-serif; -webkit-border-horizontal-spacing: 5px; -webkit-border-vertical-spacing: 5px; &quot;&gt;&lt;div class=&quot;postbody&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; line-height: 16px; font-family: &apos;Lucida Grande&apos;, &apos;Trebuchet MS&apos;, Helvetica, Arial, sans-serif; &quot;&gt;首先在面板激活tup或找客服开启tup&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;以下命令均在root账户下执行：&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;一、安装openvpn,iptables&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;div class=&quot;codetitle&quot; style=&quot;margin-top: 10px; margin-right: 5px; margin-bottom: 0px; margin-left: 5px; padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(159, 76, 9); border-right-color: rgb(159, 76, 9); border-bottom-color: rgb(159, 76, 9); border-left-color: rgb(159, 76, 9); font-family: &apos;Lucida Grande&apos;, Verdana, Helvetica, Arial, sans-serif; font-size: 1em; &quot;&gt;&lt;b style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;代码:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot; style=&quot;margin-top: 0px; margin-right: 5px; margin-bottom: 10px; margin-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; direction: ltr; border-top-color: rgb(219, 186, 117); border-right-color: rgb(219, 186, 117); border-bottom-color: rgb(219, 186, 117); border-left-color: rgb(219, 186, 117); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-weight: normal; color: rgb(0, 102, 0); line-height: 16px; font-size: 1em; font-family: Monaco, &apos;Courier New&apos;, monospace; background-color: rgb(250, 250, 250); &quot;&gt;apt-get install openvpn iptables&lt;/div&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;二、生成openvpn密钥&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;div class=&quot;codetitle&quot; style=&quot;margin-top: 10px; margin-right: 5px; margin-bottom: 0px; margin-left: 5px; padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(159, 76, 9); border-right-color: rgb(159, 76, 9); border-bottom-color: rgb(159, 76, 9); border-left-color: rgb(159, 76, 9); font-family: &apos;Lucida Grande&apos;, Verdana, Helvetica, Arial, sans-serif; font-size: 1em; &quot;&gt;&lt;b style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;代码:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot; style=&quot;margin-top: 0px; margin-right: 5px; margin-bottom: 10px; margin-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; direction: ltr; border-top-color: rgb(219, 186, 117); border-right-color: rgb(219, 186, 117); border-bottom-color: rgb(219, 186, 117); border-left-color: rgb(219, 186, 117); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-weight: normal; color: rgb(0, 102, 0); line-height: 16px; font-size: 1em; font-family: Monaco, &apos;Courier New&apos;, monospace; background-color: rgb(250, 250, 250); &quot;&gt;cd ~&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0 .&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;cd 2.0&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;source ./vars&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;./clean-all&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;./build-ca&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;./build-key-server server&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;./build-key client&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;./build-dh&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;cp keys/ca.crt /etc/openvpn/&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;cp keys/server.* /etc/openvpn/&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;cp keys/dh1024.pem /etc/openvpn/&lt;/div&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;三、获取服务端配置文件&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;div class=&quot;codetitle&quot; style=&quot;margin-top: 10px; margin-right: 5px; margin-bottom: 0px; margin-left: 5px; padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(159, 76, 9); border-right-color: rgb(159, 76, 9); border-bottom-color: rgb(159, 76, 9); border-left-color: rgb(159, 76, 9); font-family: &apos;Lucida Grande&apos;, Verdana, Helvetica, Arial, sans-serif; font-size: 1em; &quot;&gt;&lt;b style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;代码:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot; style=&quot;margin-top: 0px; margin-right: 5px; margin-bottom: 10px; margin-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; direction: ltr; border-top-color: rgb(219, 186, 117); border-right-color: rgb(219, 186, 117); border-bottom-color: rgb(219, 186, 117); border-left-color: rgb(219, 186, 117); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-weight: normal; color: rgb(0, 102, 0); line-height: 16px; font-size: 1em; font-family: Monaco, &apos;Courier New&apos;, monospace; background-color: rgb(250, 250, 250); &quot;&gt;cp /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz&amp;nbsp; /etc/openvpn/&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;gzip -d /etc/openvpn/server.conf.gz&lt;/div&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;四、配置 /etc/openvpn/server.conf 让客户端使用这个服务器的地址作为默认网关&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;div class=&quot;codetitle&quot; style=&quot;margin-top: 10px; margin-right: 5px; margin-bottom: 0px; margin-left: 5px; padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(159, 76, 9); border-right-color: rgb(159, 76, 9); border-bottom-color: rgb(159, 76, 9); border-left-color: rgb(159, 76, 9); font-family: &apos;Lucida Grande&apos;, Verdana, Helvetica, Arial, sans-serif; font-size: 1em; &quot;&gt;&lt;b style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;代码:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot; style=&quot;margin-top: 0px; margin-right: 5px; margin-bottom: 10px; margin-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; direction: ltr; border-top-color: rgb(219, 186, 117); border-right-color: rgb(219, 186, 117); border-bottom-color: rgb(219, 186, 117); border-left-color: rgb(219, 186, 117); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-weight: normal; color: rgb(0, 102, 0); line-height: 16px; font-size: 1em; font-family: Monaco, &apos;Courier New&apos;, monospace; background-color: rgb(250, 250, 250); &quot;&gt;echo &quot;push &amp;#92;&quot;redirect-gateway def1&amp;#92;&quot;&quot; &amp;gt;&amp;gt; /etc/openvpn/server.conf&lt;/div&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;五、启动服务&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;div class=&quot;codetitle&quot; style=&quot;margin-top: 10px; margin-right: 5px; margin-bottom: 0px; margin-left: 5px; padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(159, 76, 9); border-right-color: rgb(159, 76, 9); border-bottom-color: rgb(159, 76, 9); border-left-color: rgb(159, 76, 9); font-family: &apos;Lucida Grande&apos;, Verdana, Helvetica, Arial, sans-serif; font-size: 1em; &quot;&gt;&lt;b style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;代码:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot; style=&quot;margin-top: 0px; margin-right: 5px; margin-bottom: 10px; margin-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; direction: ltr; border-top-color: rgb(219, 186, 117); border-right-color: rgb(219, 186, 117); border-bottom-color: rgb(219, 186, 117); border-left-color: rgb(219, 186, 117); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-weight: normal; color: rgb(0, 102, 0); line-height: 16px; font-size: 1em; font-family: Monaco, &apos;Courier New&apos;, monospace; background-color: rgb(250, 250, 250); &quot;&gt;/etc/init.d/openvpn start&lt;/div&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;六、配置服务器网络，允许数据转发&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;div class=&quot;codetitle&quot; style=&quot;margin-top: 10px; margin-right: 5px; margin-bottom: 0px; margin-left: 5px; padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(159, 76, 9); border-right-color: rgb(159, 76, 9); border-bottom-color: rgb(159, 76, 9); border-left-color: rgb(159, 76, 9); font-family: &apos;Lucida Grande&apos;, Verdana, Helvetica, Arial, sans-serif; font-size: 1em; &quot;&gt;&lt;b style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;代码:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot; style=&quot;margin-top: 0px; margin-right: 5px; margin-bottom: 10px; margin-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; direction: ltr; border-top-color: rgb(219, 186, 117); border-right-color: rgb(219, 186, 117); border-bottom-color: rgb(219, 186, 117); border-left-color: rgb(219, 186, 117); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-weight: normal; color: rgb(0, 102, 0); line-height: 16px; font-size: 1em; font-family: Monaco, &apos;Courier New&apos;, monospace; background-color: rgb(250, 250, 250); &quot;&gt;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j MASQUERADE&lt;/div&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;=====以上服务端配置完毕，以下配置客户端=====&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;一、客户端安装openvpn&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;div class=&quot;codetitle&quot; style=&quot;margin-top: 10px; margin-right: 5px; margin-bottom: 0px; margin-left: 5px; padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(159, 76, 9); border-right-color: rgb(159, 76, 9); border-bottom-color: rgb(159, 76, 9); border-left-color: rgb(159, 76, 9); font-family: &apos;Lucida Grande&apos;, Verdana, Helvetica, Arial, sans-serif; font-size: 1em; &quot;&gt;&lt;b style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;代码:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot; style=&quot;margin-top: 0px; margin-right: 5px; margin-bottom: 10px; margin-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; direction: ltr; border-top-color: rgb(219, 186, 117); border-right-color: rgb(219, 186, 117); border-bottom-color: rgb(219, 186, 117); border-left-color: rgb(219, 186, 117); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-weight: normal; color: rgb(0, 102, 0); line-height: 16px; font-size: 1em; font-family: Monaco, &apos;Courier New&apos;, monospace; background-color: rgb(250, 250, 250); &quot;&gt;sudo apt-get install openvpn&lt;/div&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;二、复制配置文件,将VPSIP替换为你的VPS服务器的IP地址&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;div class=&quot;codetitle&quot; style=&quot;margin-top: 10px; margin-right: 5px; margin-bottom: 0px; margin-left: 5px; padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(159, 76, 9); border-right-color: rgb(159, 76, 9); border-bottom-color: rgb(159, 76, 9); border-left-color: rgb(159, 76, 9); font-family: &apos;Lucida Grande&apos;, Verdana, Helvetica, Arial, sans-serif; font-size: 1em; &quot;&gt;&lt;b style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;代码:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot; style=&quot;margin-top: 0px; margin-right: 5px; margin-bottom: 10px; margin-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; direction: ltr; border-top-color: rgb(219, 186, 117); border-right-color: rgb(219, 186, 117); border-bottom-color: rgb(219, 186, 117); border-left-color: rgb(219, 186, 117); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-weight: normal; color: rgb(0, 102, 0); line-height: 16px; font-size: 1em; font-family: Monaco, &apos;Courier New&apos;, monospace; background-color: rgb(250, 250, 250); &quot;&gt;sudo scp root@VPSIP:/root/2.0/keys/client.crt /etc/openvpn/&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;sudo scp root@VPSIP:/root/2.0/keys/client.key /etc/openvpn/&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;sudo scp root@VPSIP:/root/2.0/keys/ca.crt /etc/openvpn/&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;sudo cp /usr/share/doc/openvpn/examples/sample-config-files/client.conf /etc/openvpn/&lt;/div&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;三、修改 /etc/openvpn/client.conf 配置文件，将服务器的IP地址写入到配置文件。将VPSIP替换为你的VPS服务器的IP地址&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;div class=&quot;codetitle&quot; style=&quot;margin-top: 10px; margin-right: 5px; margin-bottom: 0px; margin-left: 5px; padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(159, 76, 9); border-right-color: rgb(159, 76, 9); border-bottom-color: rgb(159, 76, 9); border-left-color: rgb(159, 76, 9); font-family: &apos;Lucida Grande&apos;, Verdana, Helvetica, Arial, sans-serif; font-size: 1em; &quot;&gt;&lt;b style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;代码:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot; style=&quot;margin-top: 0px; margin-right: 5px; margin-bottom: 10px; margin-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; direction: ltr; border-top-color: rgb(219, 186, 117); border-right-color: rgb(219, 186, 117); border-bottom-color: rgb(219, 186, 117); border-left-color: rgb(219, 186, 117); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-weight: normal; color: rgb(0, 102, 0); line-height: 16px; font-size: 1em; font-family: Monaco, &apos;Courier New&apos;, monospace; background-color: rgb(250, 250, 250); &quot;&gt;sudo vim /etc/openvpn/client.conf&lt;/div&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;将&lt;div class=&quot;codetitle&quot; style=&quot;margin-top: 10px; margin-right: 5px; margin-bottom: 0px; margin-left: 5px; padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(159, 76, 9); border-right-color: rgb(159, 76, 9); border-bottom-color: rgb(159, 76, 9); border-left-color: rgb(159, 76, 9); font-family: &apos;Lucida Grande&apos;, Verdana, Helvetica, Arial, sans-serif; font-size: 1em; &quot;&gt;&lt;b style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;代码:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot; style=&quot;margin-top: 0px; margin-right: 5px; margin-bottom: 10px; margin-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; direction: ltr; border-top-color: rgb(219, 186, 117); border-right-color: rgb(219, 186, 117); border-bottom-color: rgb(219, 186, 117); border-left-color: rgb(219, 186, 117); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-weight: normal; color: rgb(0, 102, 0); line-height: 16px; font-size: 1em; font-family: Monaco, &apos;Courier New&apos;, monospace; background-color: rgb(250, 250, 250); &quot;&gt;remote my-server-1 1194&lt;/div&gt;修改为&lt;div class=&quot;codetitle&quot; style=&quot;margin-top: 10px; margin-right: 5px; margin-bottom: 0px; margin-left: 5px; padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(159, 76, 9); border-right-color: rgb(159, 76, 9); border-bottom-color: rgb(159, 76, 9); border-left-color: rgb(159, 76, 9); font-family: &apos;Lucida Grande&apos;, Verdana, Helvetica, Arial, sans-serif; font-size: 1em; &quot;&gt;&lt;b style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;代码:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot; style=&quot;margin-top: 0px; margin-right: 5px; margin-bottom: 10px; margin-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; direction: ltr; border-top-color: rgb(219, 186, 117); border-right-color: rgb(219, 186, 117); border-bottom-color: rgb(219, 186, 117); border-left-color: rgb(219, 186, 117); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-weight: normal; color: rgb(0, 102, 0); line-height: 16px; font-size: 1em; font-family: Monaco, &apos;Courier New&apos;, monospace; background-color: rgb(250, 250, 250); &quot;&gt;remote VPSIP 1194&lt;/div&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;四、运行openvpn&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;div class=&quot;codetitle&quot; style=&quot;margin-top: 10px; margin-right: 5px; margin-bottom: 0px; margin-left: 5px; padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(159, 76, 9); border-right-color: rgb(159, 76, 9); border-bottom-color: rgb(159, 76, 9); border-left-color: rgb(159, 76, 9); font-family: &apos;Lucida Grande&apos;, Verdana, Helvetica, Arial, sans-serif; font-size: 1em; &quot;&gt;&lt;b style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;代码:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot; style=&quot;margin-top: 0px; margin-right: 5px; margin-bottom: 10px; margin-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; direction: ltr; border-top-color: rgb(219, 186, 117); border-right-color: rgb(219, 186, 117); border-bottom-color: rgb(219, 186, 117); border-left-color: rgb(219, 186, 117); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-weight: normal; color: rgb(0, 102, 0); line-height: 16px; font-size: 1em; font-family: Monaco, &apos;Courier New&apos;, monospace; background-color: rgb(250, 250, 250); &quot;&gt;sudo /etc/init.d/openvpn start&lt;/div&gt;&lt;/div&gt;&lt;br clear=&quot;all&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;/span&gt;&lt;/div&gt;</content:encoded>
			<link>http://ubuntu.ucoz.co.uk/news/open_vpn/2010-04-08-56</link>
			<dc:creator>forestrex</dc:creator>
			<guid>http://ubuntu.ucoz.co.uk/news/open_vpn/2010-04-08-56</guid>
			<pubDate>Thu, 08 Apr 2010 17:40:09 GMT</pubDate>
		</item>
		<item>
			<title>深入OpenVPN的配置(不同網段的訪問控制)</title>
			<description>&lt;span style=&quot;font-family: Arial; font-size: 14px; color: rgb(51, 51, 51); line-height: 20px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; &quot;&gt;本文來源於http://blog.chinaunix.net/u1/36506/showart_454904.html&lt;/span&gt;&lt;div&gt;&lt;font color=&quot;#333333&quot; face=&quot;Arial&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 20px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;有空试试^_^&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial; font-size: 14px; color: rgb(51, 51, 51); line-height: 20px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; &quot;&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;&lt;br&gt;&lt;/span&gt;前面已经比较详细的说明了OpenVPN的使用和配置，但在实际使用中，可能还会遇到很多网络上的问题，今天就再举几个例子说明一下。&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;一、案例1&lt;/strong&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;针对不同的客户端指定不同的等级和权限。&lt;/strong&gt;通常的方法是：&lt;br style=&quot;line-height: normal; &quot;&gt;1、每个客户端分配不同的IP地址；&lt;br style=&quot;line-height: no...</description>
			<content:encoded>&lt;span style=&quot;font-family: Arial; font-size: 14px; color: rgb(51, 51, 51); line-height: 20px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; &quot;&gt;本文來源於http://blog.chinaunix.net/u1/36506/showart_454904.html&lt;/span&gt;&lt;div&gt;&lt;font color=&quot;#333333&quot; face=&quot;Arial&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 20px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;有空试试^_^&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial; font-size: 14px; color: rgb(51, 51, 51); line-height: 20px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; &quot;&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;&lt;br&gt;&lt;/span&gt;前面已经比较详细的说明了OpenVPN的使用和配置，但在实际使用中，可能还会遇到很多网络上的问题，今天就再举几个例子说明一下。&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;一、案例1&lt;/strong&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;针对不同的客户端指定不同的等级和权限。&lt;/strong&gt;通常的方法是：&lt;br style=&quot;line-height: normal; &quot;&gt;1、每个客户端分配不同的IP地址；&lt;br style=&quot;line-height: normal; &quot;&gt;2、利用防火墙对不同的IP地址进行控制；&lt;br style=&quot;line-height: normal; &quot;&gt;例如：&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;1、公司内部网段是10.66.4.0/24；&lt;br style=&quot;line-height: normal; &quot;&gt;2、所有人允许访问Email服务器为10.66.4.4，但不能访问其他服务器；&lt;br style=&quot;line-height: normal; &quot;&gt;3、特定的客户组允许访问Samba服务器为10.66.4.12，不能访问其他服务器；&lt;br style=&quot;line-height: normal; &quot;&gt;4、管理员能访问所有公司内网服务器。&lt;br style=&quot;line-height: normal; &quot;&gt;根据上述的要求，我们可以对OpenVPN服务端进行配置：（而不需要修改客户端配置文件）&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;server.conf增加：&lt;br style=&quot;line-height: normal; &quot;&gt;#10.8.0.0是给所有VPN客户端的IP段；&lt;br style=&quot;line-height: normal; &quot;&gt;server 10.8.0.0 255.255.255.0&lt;br style=&quot;line-height: normal; &quot;&gt;#10.8.1.0是给管理员分配的IP段；&lt;br style=&quot;line-height: normal; &quot;&gt;server 10.8.1.0 255.255.255.0&lt;br style=&quot;line-height: normal; &quot;&gt;#10.8.2.0就是给特定用户组分配的IP段；&lt;br style=&quot;line-height: normal; &quot;&gt;server 10.8.2.0 255.255.255.0&lt;br style=&quot;line-height: normal; &quot;&gt;#下面是定义服务器读取特殊客户端配置文件的目录为ccd；&lt;br style=&quot;line-height: normal; &quot;&gt;client-config-dir ccd&lt;br style=&quot;line-height: normal; &quot;&gt;通过上面的配置，今后我们就可以对指定的客户进行特殊的定义了。配置文件应该放在ccd目录下：&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;ccd/sysadmin1：&lt;br style=&quot;line-height: normal; &quot;&gt;ifconfig-push 10.8.1.1 10.8.1.2&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;ccd/contractor1：&lt;br style=&quot;line-height: normal; &quot;&gt;ifconfig-push 10.8.2.1 10.8.2.2&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;ccd/contractor2：&lt;br style=&quot;line-height: normal; &quot;&gt;ifconfig-push 10.8.2.5 10.8.2.6&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;※注意：&lt;br style=&quot;line-height: normal; &quot;&gt;1、文件名就是客户的Common Name，OpenVPN是根据该名称来获得指定客户端的；&lt;br style=&quot;line-height: normal; &quot;&gt;2、客户端的IP地址不是任意指定的，由于Windows的TAP驱动必须采用/30网段的IP，为兼容该协议，应从特定的IP地址中选择，而且是成组出现的；（可参考第一份文章附录介绍）&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;/strong&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;那最后，剩下的就是用iptables防火墙做限制即可：（假设PLOICY为Deny）&lt;br style=&quot;line-height: normal; &quot;&gt;iptables -A FORWARD -i tun0 -s 10.8.0.0/24 -d 10.66.4.4 -j ACCEPT&lt;br style=&quot;line-height: normal; &quot;&gt;iptables -A FORWARD -i tun0 -s 10.8.1.0/24 -d 10.66.4.0/24 -j ACCEPT&lt;br style=&quot;line-height: normal; &quot;&gt;iptables -A FORWARD -i tun0 -s 10.8.2.0/24 -d 10.66.4.12 -j ACCEPT&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;二、案例2&lt;/strong&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;让客户端内部子网可与服务端内部网互通，其实也就是实现点对点互连了。&lt;/strong&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;要求如下：&lt;br style=&quot;line-height: normal; &quot;&gt;1、客户端的子网网段必须唯一；&lt;br style=&quot;line-height: normal; &quot;&gt;2、客户端的Common Name要唯一，而且不能在服务器的配置文件中配置有duplicate-cn；&lt;br style=&quot;line-height: normal; &quot;&gt;3、客户端打开IP Forward（路由转发）和允许TUN、TAP进入；&lt;br style=&quot;line-height: normal; &quot;&gt;OK，那假设客户端子网为192.168.4.0，并且客户端网关和客户端OpenVPN是同一服务器，那可以这样配置：&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;server.conf增加：&lt;br style=&quot;line-height: normal; &quot;&gt;#下面是定义服务器读取特殊客户端配置文件的目录为ccd；&lt;br style=&quot;line-height: normal; &quot;&gt;client-config-dir ccd&lt;br style=&quot;line-height: normal; &quot;&gt;#服务器增加到192.168.4.0/24的路由&lt;br style=&quot;line-height: normal; &quot;&gt;route 192.168.4.0 255.255.255.0&lt;br style=&quot;line-height: normal; &quot;&gt;#允许客户端子网互通&lt;br style=&quot;line-height: normal; &quot;&gt;client-to-client&lt;br style=&quot;line-height: normal; &quot;&gt;#让所有客户端都增加到192.168.4.0/24的路由&lt;br style=&quot;line-height: normal; &quot;&gt;push &quot;route 192.168.4.0 255.255.255.0&quot;&lt;br style=&quot;line-height: normal; &quot;&gt;然后，对指定的客户端建立配置文件。&lt;br style=&quot;line-height: normal; &quot;&gt;mkdir /etc/openvpn/ccd&lt;br style=&quot;line-height: normal; &quot;&gt;在ccd目录下建立一个与客户端Common Name相同名字的文件名，并加入：&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;#这是告诉服务器，我（客户端）的子网网段是192.168.4.0/24；&lt;br style=&quot;line-height: normal; &quot;&gt;iroute 192.168.4.0 255.255.255.0&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;※注意：&lt;br style=&quot;line-height: normal; &quot;&gt;1、若OpenVPN Server不是服务端子网的网关，则必须在服务端子网网关加入指向192.168.4.0/24的路由；&lt;br style=&quot;line-height: normal; &quot;&gt;2、若客户端的OpenVPN Client也不是客户端子网的网关，同样的，也必须加入对应的路由，如：&lt;/strong&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;route add -net 192.168.4.0 netmask 255.255.255.0 gw 10.8.0.5 dev eth0&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;总而言之，就是必须让网关通过VPN服务器，可路由到所有的VPN子网，这无论是对于服务端还是客户端都是必须定义的。&lt;/strong&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;三、案例3&lt;/strong&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;OpenVPN内部提供了DHCP的服务，而不需要依赖外部的DHCP服务器。同样，也提供了DHCP服务的一些配置参数：&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;server.conf配置：&lt;br style=&quot;line-height: normal; &quot;&gt;#定义客户端的DNS服务器地址&lt;br style=&quot;line-height: normal; &quot;&gt;push &quot;dhcp-options DNS 192.168.228.1&quot;&lt;br style=&quot;line-height: normal; &quot;&gt;#定义客户端的WINS服务器地址&lt;br style=&quot;line-height: normal; &quot;&gt;push &quot;dhcp-options WINS 192.168.228.1&quot;&lt;br style=&quot;line-height: normal; &quot;&gt;#让客户端发起的所有IP请求都通过OpenVPN服务器&lt;br style=&quot;line-height: normal; &quot;&gt;push &quot;redirect-gateway def1&quot;&lt;br style=&quot;line-height: normal; &quot;&gt;其中，最后一项配置会修改客户端的默认路由为OpenVPN服务器。这样，通常还必须加入NAT转换：&lt;br style=&quot;line-height: normal; &quot;&gt;iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE&lt;br style=&quot;line-height: normal; &quot;&gt;这样，所有客户端当和OpenVPN服务器连接后，就可以把该服务器作为对外的路由服务器使用了。（类似Proxy）&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;四、案例4&lt;/strong&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;前面案例提到的，都是由服务端先生成客户端证书，然后分发到客户端，让客户端通过证书连接到服务器上。但有时候，这样的分发是比较麻烦的（也不安全）。这样，我们可以考虑另外一种方式：&lt;br style=&quot;line-height: normal; &quot;&gt;只在服务端制作客户端证书，而客户端只需要有ca.crt文件，而不需要拿到客户端证书，当登陆服务器的时候是通过用户名和密码即可登陆OpenVPN服务器。&lt;/strong&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;◎服务端配置：（以Linux版为例）&lt;br style=&quot;line-height: normal; &quot;&gt;OpenVPN可以通过插件（plugin）方式支持上述的用户名认证，在Linux下以PAM为例，必须先增加用户：&lt;br style=&quot;line-height: normal; &quot;&gt;useradd -M test&lt;br style=&quot;line-height: normal; &quot;&gt;passwd test&lt;br style=&quot;line-height: normal; &quot;&gt;然后修改server.conf增加：&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;#使用PAM插件&lt;br style=&quot;line-height: normal; &quot;&gt;plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so login&lt;br style=&quot;line-height: normal; &quot;&gt;#客户端可以不提供证书&lt;br style=&quot;line-height: normal; &quot;&gt;client-cert-not-required&lt;br style=&quot;line-height: normal; &quot;&gt;#用户登陆的用户名就是Common Name&lt;br style=&quot;line-height: normal; &quot;&gt;username-as-common-name&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;※注意：&lt;br style=&quot;line-height: normal; &quot;&gt;1、若不增加client-cert-not-required语句，默认PAM认证和证书验证是需要同时通过才能建立连接的；&lt;br style=&quot;line-height: normal; &quot;&gt;2、OpenVPN是基于SSL连接，所以，上述设置只是让客户端不用提供证书，但却必须提供ca.crt；&lt;br style=&quot;line-height: normal; &quot;&gt;3、而且OpenVPN服务器也必须用客户端使用的登陆名（如：test）建立相同Common Name的证书，否则客户端登陆的时候，服务器会提示找不到对应证书，而不能建立连接。&lt;/strong&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;◎客户端配置：&lt;br style=&quot;line-height: normal; &quot;&gt;client.conf增加：&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;#激活登陆认证方式&lt;br style=&quot;line-height: normal; &quot;&gt;auth-user-pass&lt;br style=&quot;line-height: normal; &quot;&gt;#修改认证证书，保留ca.crt即可，客户端证书可以不要了&lt;br style=&quot;line-height: normal; &quot;&gt;ca ./easy-rsa/keys/ca.crt&amp;nbsp;&lt;br style=&quot;line-height: normal; &quot;&gt;#cert ./easy-rsa/keys/client1.crt&amp;nbsp;&lt;br style=&quot;line-height: normal; &quot;&gt;#key ./easy-rsa/keys/client1.key&lt;br style=&quot;line-height: normal; &quot;&gt;这样，当手动启动客户端的时候，即会提示用户名和密码。（用户名和密码为登陆服务器PAM认证，通过后，OpenVPN会提取用户名作为Common Name，并验证客户端证书，若也通过，则连接搭建成功）&lt;br style=&quot;line-height: normal; &quot;&gt;※问题：若采用该方式，如何使用后台服务启动客户端？&lt;br style=&quot;line-height: normal; &quot;&gt;答：可以先建立一个文件author-keys（用户名和密码各一行），然后修改配置文件&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;auth-user-pass author-keys&lt;br style=&quot;line-height: normal; &quot;&gt;另其从中读取该文件以通过验证。&lt;br style=&quot;line-height: normal; &quot;&gt;但前提是必须在编译的时候增加--enable-password-save参数。（可以使用这里的rpm包，&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.linuxfly.org/upload/openvpn-2.0.7-2.redflag.i386-1155264163.rpm&quot; style=&quot;line-height: normal; &quot;&gt;&lt;font color=&quot;#0066cc&quot; style=&quot;line-height: normal; &quot;&gt;点击&lt;/font&gt;&lt;/a&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;）&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;五、其他&lt;/strong&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;1）若客户端不能访问OpenVPN使用的1194端口，可通过HTTP Proxy，但有要求：&lt;br style=&quot;line-height: normal; &quot;&gt;1、OpenVPN连接要使用tcp方式，而不能使用udp方式；&lt;br style=&quot;line-height: normal; &quot;&gt;2、客户端配置加入：&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;http-proxy ip port&lt;br style=&quot;line-height: normal; &quot;&gt;2）OpenVPN负载均衡&lt;br style=&quot;line-height: normal; &quot;&gt;要使用OpenVPN负载均衡，可以这样做：&lt;br style=&quot;line-height: normal; &quot;&gt;1、可以建立多台服务器，除server配置不同外，其余相同：&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;server1&lt;br style=&quot;line-height: normal; &quot;&gt;server 10.8.0.0 255.255.255.0&lt;br style=&quot;line-height: normal; &quot;&gt;server2&lt;br style=&quot;line-height: normal; &quot;&gt;server 10.8.1.0 255.255.255.0&lt;br style=&quot;line-height: normal; &quot;&gt;server3&lt;br style=&quot;line-height: normal; &quot;&gt;server 10.8.2.0 255.255.255.0&lt;br style=&quot;line-height: normal; &quot;&gt;2、客户端可以用多点尝试进行配置：&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;#默认从上往下尝试&lt;br style=&quot;line-height: normal; &quot;&gt;remote server1 port&lt;br style=&quot;line-height: normal; &quot;&gt;remote server2 port&lt;br style=&quot;line-height: normal; &quot;&gt;#也可以改为随机连接&lt;br style=&quot;line-height: normal; &quot;&gt;remote-random&lt;br style=&quot;line-height: normal; &quot;&gt;#为防止DNS解析错误导致不进行后续的尝试，可以加入下面的语句&lt;br style=&quot;line-height: normal; &quot;&gt;resolv-retry 60&lt;br style=&quot;line-height: normal; &quot;&gt;3）撤回证书&lt;br style=&quot;line-height: normal; &quot;&gt;前面已经提到，可以单方面的通过服务器撤回客户端证书，在easy-rsa目录下：&lt;br style=&quot;line-height: normal; &quot;&gt;source ./vars&lt;br style=&quot;line-height: normal; &quot;&gt;./revoke-full client2&lt;br style=&quot;line-height: normal; &quot;&gt;会生成crl.pem文件。把文件拷入对应目录，如keys。然后修改server.conf：&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;crl-verify ./easy-rsa/keys/crl.pem&lt;br style=&quot;line-height: normal; &quot;&gt;即可。（CRL List对于新客户是马上生效的，而且不需要重启服务器）&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;六、加强OpenVPN的安全性&lt;/strong&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;1、创建tls-auth&lt;br style=&quot;line-height: normal; &quot;&gt;openvpn --genkey --secret ta.key&lt;br style=&quot;line-height: normal; &quot;&gt;server.conf：&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;tls-auth ta.key 0&lt;br style=&quot;line-height: normal; &quot;&gt;client.conf：&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;tls-auth ta.key 1&lt;br style=&quot;line-height: normal; &quot;&gt;2、使用UDP协议&lt;br style=&quot;line-height: normal; &quot;&gt;因为UDP一般不会有DoS攻击，而且能能防止端口被扫描，能保证更安全。&lt;br style=&quot;line-height: normal; &quot;&gt;3、使用nobody用户和组运行服务&lt;br style=&quot;line-height: normal; &quot;&gt;对于非Win的服务器，可以在配置中加入：&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;user nobody&lt;br style=&quot;line-height: normal; &quot;&gt;group nobody&lt;br style=&quot;line-height: normal; &quot;&gt;4、使用chroot&lt;br style=&quot;line-height: normal; &quot;&gt;请参考：&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://openvpn.net/howto.html#security&quot; style=&quot;line-height: normal; &quot;&gt;&lt;font color=&quot;#0066cc&quot; style=&quot;line-height: normal; &quot;&gt;官方文档&lt;/font&gt;&lt;/a&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;5、使用Large RSA keys&lt;br style=&quot;line-height: normal; &quot;&gt;可以通过修改./easy-rsa/vars中的KEY_SIZE，增加到2048。但要注意，该修改必须重建所有的keys、以及配置文件。&lt;br style=&quot;line-height: normal; &quot;&gt;6、使用Large symmetric keys&lt;br style=&quot;line-height: normal; &quot;&gt;可以在配置文件中加入：&lt;br style=&quot;line-height: normal; &quot;&gt;引用&lt;br style=&quot;line-height: normal; &quot;&gt;cipher AES-256-CBC&lt;br style=&quot;line-height: normal; &quot;&gt;7、把ca.key单独存放&lt;br style=&quot;line-height: normal; &quot;&gt;最后，也是最重要的一点。从前面的配置文件可以看到，无论是服务端，还是客户端都不需要使用ca.key文件的。但该文件却很重要，所以，我们应该把它另外保存好，而不是放在服务器上哦！&lt;br style=&quot;line-height: normal; &quot;&gt;8、还有一种安全问题，就是Man-in-the-Middle攻击。&lt;br style=&quot;line-height: normal; &quot;&gt;也就是模拟server连接另一个client。可以参考&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://openvpn.net/howto.html#secnotes&quot; style=&quot;line-height: normal; &quot;&gt;&lt;font color=&quot;#0066cc&quot; style=&quot;line-height: normal; &quot;&gt;官方文档&lt;/font&gt;&lt;/a&gt;&lt;br style=&quot;line-height: normal; &quot;&gt;&lt;strong style=&quot;line-height: normal; &quot;&gt;※相信通过这些例子，今后对于OpenVPN的配置就不会再有任何问题了。&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;</content:encoded>
			<link>http://ubuntu.ucoz.co.uk/news/openvpn/2010-04-08-55</link>
			<dc:creator>forestrex</dc:creator>
			<guid>http://ubuntu.ucoz.co.uk/news/openvpn/2010-04-08-55</guid>
			<pubDate>Thu, 08 Apr 2010 17:37:52 GMT</pubDate>
		</item>
		<item>
			<title>解决ubuntu下filezilla登录ftp看不到中文目录和文件的问题</title>
			<description>&lt;span style=&quot;font-family: Arial; line-height: 21px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; &quot;&gt;打开filezilla 文件－站点管理器－新站点－－字符集－－使用自定义的字符集 ，填写gbk&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial; line-height: 21px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; &quot;&gt;p.s. 以上网络来源，有待验证&lt;/span&gt;&lt;/div&gt;</description>
			<content:encoded>&lt;span style=&quot;font-family: Arial; line-height: 21px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; &quot;&gt;打开filezilla 文件－站点管理器－新站点－－字符集－－使用自定义的字符集 ，填写gbk&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial; line-height: 21px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; &quot;&gt;p.s. 以上网络来源，有待验证&lt;/span&gt;&lt;/div&gt;</content:encoded>
			<link>http://ubuntu.ucoz.co.uk/news/ubuntu_filezilla_ftp/2010-04-08-54</link>
			<dc:creator>forestrex</dc:creator>
			<guid>http://ubuntu.ucoz.co.uk/news/ubuntu_filezilla_ftp/2010-04-08-54</guid>
			<pubDate>Thu, 08 Apr 2010 12:55:43 GMT</pubDate>
		</item>
	</channel>
</rss>