<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: 使用 expect 防止 sshgfw 代理断线</title>
	<atom:link href="http://blog.zhuli.name/archives/6644/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.zhuli.name/archives/6644</link>
	<description>Keep your heart with all vigilance; for from it flow the springs of life.</description>
	<lastBuildDate>Tue, 21 Feb 2012 02:15:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: vehiclee</title>
		<link>http://blog.zhuli.name/archives/6644#comment-1064</link>
		<dc:creator>vehiclee</dc:creator>
		<pubDate>Sun, 04 Dec 2011 02:11:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhuli.name/?p=6644#comment-1064</guid>
		<description>autossh挺好的，不折腾</description>
		<content:encoded><![CDATA[<p>autossh挺好的，不折腾</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: howdy</title>
		<link>http://blog.zhuli.name/archives/6644#comment-980</link>
		<dc:creator>howdy</dc:creator>
		<pubDate>Sun, 10 Jul 2011 17:06:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhuli.name/?p=6644#comment-980</guid>
		<description>How power a significant invalidate cell lookup function? This can subsist a means of knowledge a someone&#039;s name, where they be alive along with further private details by court of their telephone number.</description>
		<content:encoded><![CDATA[<p>How power a significant invalidate cell lookup function? This can subsist a means of knowledge a someone&#8217;s name, where they be alive along with further private details by court of their telephone number.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deli</title>
		<link>http://blog.zhuli.name/archives/6644#comment-672</link>
		<dc:creator>deli</dc:creator>
		<pubDate>Wed, 09 Jun 2010 12:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhuli.name/?p=6644#comment-672</guid>
		<description>感谢楼主，今天刚好用上。</description>
		<content:encoded><![CDATA[<p>感谢楼主，今天刚好用上。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brooklyn</title>
		<link>http://blog.zhuli.name/archives/6644#comment-669</link>
		<dc:creator>Brooklyn</dc:creator>
		<pubDate>Wed, 09 Jun 2010 08:23:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhuli.name/?p=6644#comment-669</guid>
		<description>哈哈，谢谢啦，解决了我两个大麻烦。</description>
		<content:encoded><![CDATA[<p>哈哈，谢谢啦，解决了我两个大麻烦。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rhythm</title>
		<link>http://blog.zhuli.name/archives/6644#comment-565</link>
		<dc:creator>rhythm</dc:creator>
		<pubDate>Mon, 12 Oct 2009 02:32:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhuli.name/?p=6644#comment-565</guid>
		<description>windows的软件越来越匮乏了，看来不得不去学Linux了。</description>
		<content:encoded><![CDATA[<p>windows的软件越来越匮乏了，看来不得不去学Linux了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wood</title>
		<link>http://blog.zhuli.name/archives/6644#comment-562</link>
		<dc:creator>wood</dc:creator>
		<pubDate>Sun, 04 Oct 2009 14:05:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhuli.name/?p=6644#comment-562</guid>
		<description>archlinux下使用免费Ultravpn代理

windows下Ultravpn的使用非常简单，去http://ultravpn.fr/下载一个ultravpn-install.exe文件安装，然后http://ultravpn.fr/account.htm申请一个免费的帐号登录连接就可以了。我使用的是Archlinux，虽然linux下使用Ultravpn的介绍文章很多（如使用openvpn+networkmanager等），但照着做下去，总有各式各样的问题。好不容易找到一个英文的介绍文档，做下去终于成功。下面将方法详细翻译过来，以方便大家特别是新手安装。该方法应该也适用于其他的linux发行版，关键要搞清楚配置文件的路径。

1、申请帐号：和windows下一样，首先去http://ultravpn.fr/account.htm申请一个免费的帐号。

2、安装openvpn：对Archlinux，使用yaourt 安装执行：yaourt openvpn 或者root权限执行：pacman -S openvpn 命令即可，目前的版本是openvpn-2.1_rc19-4 。其他发行版请采用适当的命令安装，如Fedora用sudo yum install openvpn。安装完成后，配置文件在/etc/openvpn目录下，其他发行版请注意相应的配置文件的安装路径。

3、创建连接配置文件和证书文件：我们采用借用windows下配置文件和证书文件的方法。去http://ultravpn.fr/下载一个ultravpn-install.exe文件安装到一台windows XP的机器上，windows下默认的安装路径是   c：\Program Files\UltraVPN，如果您找不到可用的windows机器，也可以采用linux下的wine模拟安装，命令为：wine ultravpn-install.exe（请先安装wine！）。一般的安装目录在~/.wine/drive_c/Program\ Files/UltraVPN/。

4、拷贝windows下的配置文件于linux下使用：将windows机器上安装路径  c：\Program Files\UltraVPN\config目录中的client.ovpn和ca.crt两个文件拷贝到archlinux的/etc/openvpn/目录，并且重命名为 UltraVPN.conf 和 UltraVPN.crt。

5、编辑配置文件：用文本编辑器打开UltraVPN.conf ，将其中的&quot;cert ca.crt&quot; 一行改为&quot;ca /etc/openvpn/UltraVPN.crt&quot;，并且在该行的下一行加上一行：route xxx.xxx.xxx.xxx 255.255.255.255 net_gateway。把这里的 xxx.xxx.xxx.xxx  替换
为你当地的DNS地址，如 202.61.95.35 。

6、连接代理服务器：打开终端，以root权限执行命令：openvpn /etc/openvpn/UltraVPN.conf  ，即可以出现登录画面。

输入你申请到的用户名和密码即可，如下所示：
___________________________________________________________________________________
[root@MYNEW wpp]# openvpn /etc/openvpn/UltraVPN.conf
Fri Oct  9 05:21:38 2009 OpenVPN 2.1_rc19 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Sep 22 2009
Enter Auth Username:*********用户名
Enter Auth Password:*********密码
______________________________________________________________________________
连接时间视网络状况而定，连接成功后的画面如下（出现  nitialization Sequence Completed 字样）：
_______________________________________________________________________________
Fri Oct  9 05:45:11 2009 OPTIONS IMPORT: timers and/or timeouts modified
Fri Oct  9 05:45:11 2009 OPTIONS IMPORT: --ifconfig/up options modified
Fri Oct  9 05:45:11 2009 OPTIONS IMPORT: route options modified
Fri Oct  9 05:45:11 2009 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Fri Oct  9 05:45:11 2009 ROUTE default_gateway=192.168.1.1
Fri Oct  9 05:45:11 2009 TUN/TAP device tun0 opened
Fri Oct  9 05:45:11 2009 TUN/TAP TX queue length set to 100
Fri Oct  9 05:45:11 2009 /sbin/ifconfig tun0 10.8.181.186 pointopoint 10.8.181.185 mtu 1500
Fri Oct  9 05:45:11 2009 /sbin/route add -net 87.98.173.225 netmask 255.255.255.255 gw 192.168.1.1
Fri Oct  9 05:45:11 2009 /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 10.8.181.185
Fri Oct  9 05:45:11 2009 /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 10.8.181.185
Fri Oct  9 05:45:11 2009 /sbin/route add -net xxx.xxx.xxx.xxx  netmask 255.255.255.255 gw 192.168.1.1
Fri Oct  9 05:45:11 2009 /sbin/route add -net 10.8.0.1 netmask 255.255.255.255 gw 10.8.181.185
Fri Oct  9 05:45:11 2009 Initialization Sequence Completed
______________________________________________________________________________

7、如果不希望每次都输入用户名和密码，则可以在上述配置文件的同一目录下建立一个名为UltraVPN.pw的文件，文件只有两行，第一行为用户名，第二行为密码。修改配置文件UltraVPN.conf 的最后一行“auth-user-pass“
为：auth-user-pass /etc/openvpn/UltraVPN.pw 即可。

下面是我的配置文件UltraVPN.conf 内容，供参考。


client



dev tun



proto udp



hand-window 15



remote-random



remote servers443.ultravpn.fr 443

remote servers24.ultravpn.fr 24

remote servers21.ultravpn.fr 21

remote servers54.ultravpn.fr 54

remote servers24.ultravpn.net 24

remote servers443.ultravpn.net 443



resolv-retry infinite



nobind





# Try to preserve some state across restarts.

persist-key

persist-tun





ca /etc/openvpn/UltraVPN.crt



route 3.4.5.6 255.255.255.255 net_gateway

# Enable compression on the VPN link.

# Don&#039;t enable this unless it is also

# enabled in the server config file.

comp-lzo



# Set log file verbosity.

verb 3



auth-user-pass /etc/openvpn/UltraVPN.pw</description>
		<content:encoded><![CDATA[<p>archlinux下使用免费Ultravpn代理</p>
<p>windows下Ultravpn的使用非常简单，去http://ultravpn.fr/下载一个ultravpn-install.exe文件安装，然后http://ultravpn.fr/account.htm申请一个免费的帐号登录连接就可以了。我使用的是Archlinux，虽然linux下使用Ultravpn的介绍文章很多（如使用openvpn+networkmanager等），但照着做下去，总有各式各样的问题。好不容易找到一个英文的介绍文档，做下去终于成功。下面将方法详细翻译过来，以方便大家特别是新手安装。该方法应该也适用于其他的linux发行版，关键要搞清楚配置文件的路径。</p>
<p>1、申请帐号：和windows下一样，首先去http://ultravpn.fr/account.htm申请一个免费的帐号。</p>
<p>2、安装openvpn：对Archlinux，使用yaourt 安装执行：yaourt openvpn 或者root权限执行：pacman -S openvpn 命令即可，目前的版本是openvpn-2.1_rc19-4 。其他发行版请采用适当的命令安装，如Fedora用sudo yum install openvpn。安装完成后，配置文件在/etc/openvpn目录下，其他发行版请注意相应的配置文件的安装路径。</p>
<p>3、创建连接配置文件和证书文件：我们采用借用windows下配置文件和证书文件的方法。去http://ultravpn.fr/下载一个ultravpn-install.exe文件安装到一台windows XP的机器上，windows下默认的安装路径是   c：\Program Files\UltraVPN，如果您找不到可用的windows机器，也可以采用linux下的wine模拟安装，命令为：wine ultravpn-install.exe（请先安装wine！）。一般的安装目录在~/.wine/drive_c/Program\ Files/UltraVPN/。</p>
<p>4、拷贝windows下的配置文件于linux下使用：将windows机器上安装路径  c：\Program Files\UltraVPN\config目录中的client.ovpn和ca.crt两个文件拷贝到archlinux的/etc/openvpn/目录，并且重命名为 UltraVPN.conf 和 UltraVPN.crt。</p>
<p>5、编辑配置文件：用文本编辑器打开UltraVPN.conf ，将其中的&#8221;cert ca.crt&#8221; 一行改为&#8221;ca /etc/openvpn/UltraVPN.crt&#8221;，并且在该行的下一行加上一行：route xxx.xxx.xxx.xxx 255.255.255.255 net_gateway。把这里的 xxx.xxx.xxx.xxx  替换<br />
为你当地的DNS地址，如 202.61.95.35 。</p>
<p>6、连接代理服务器：打开终端，以root权限执行命令：openvpn /etc/openvpn/UltraVPN.conf  ，即可以出现登录画面。</p>
<p>输入你申请到的用户名和密码即可，如下所示：<br />
___________________________________________________________________________________<br />
[root@MYNEW wpp]# openvpn /etc/openvpn/UltraVPN.conf<br />
Fri Oct  9 05:21:38 2009 OpenVPN 2.1_rc19 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Sep 22 2009<br />
Enter Auth Username:*********用户名<br />
Enter Auth Password:*********密码<br />
______________________________________________________________________________<br />
连接时间视网络状况而定，连接成功后的画面如下（出现  nitialization Sequence Completed 字样）：<br />
_______________________________________________________________________________<br />
Fri Oct  9 05:45:11 2009 OPTIONS IMPORT: timers and/or timeouts modified<br />
Fri Oct  9 05:45:11 2009 OPTIONS IMPORT: &#8211;ifconfig/up options modified<br />
Fri Oct  9 05:45:11 2009 OPTIONS IMPORT: route options modified<br />
Fri Oct  9 05:45:11 2009 OPTIONS IMPORT: &#8211;ip-win32 and/or &#8211;dhcp-option options modified<br />
Fri Oct  9 05:45:11 2009 ROUTE default_gateway=192.168.1.1<br />
Fri Oct  9 05:45:11 2009 TUN/TAP device tun0 opened<br />
Fri Oct  9 05:45:11 2009 TUN/TAP TX queue length set to 100<br />
Fri Oct  9 05:45:11 2009 /sbin/ifconfig tun0 10.8.181.186 pointopoint 10.8.181.185 mtu 1500<br />
Fri Oct  9 05:45:11 2009 /sbin/route add -net 87.98.173.225 netmask 255.255.255.255 gw 192.168.1.1<br />
Fri Oct  9 05:45:11 2009 /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 10.8.181.185<br />
Fri Oct  9 05:45:11 2009 /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 10.8.181.185<br />
Fri Oct  9 05:45:11 2009 /sbin/route add -net xxx.xxx.xxx.xxx  netmask 255.255.255.255 gw 192.168.1.1<br />
Fri Oct  9 05:45:11 2009 /sbin/route add -net 10.8.0.1 netmask 255.255.255.255 gw 10.8.181.185<br />
Fri Oct  9 05:45:11 2009 Initialization Sequence Completed<br />
______________________________________________________________________________</p>
<p>7、如果不希望每次都输入用户名和密码，则可以在上述配置文件的同一目录下建立一个名为UltraVPN.pw的文件，文件只有两行，第一行为用户名，第二行为密码。修改配置文件UltraVPN.conf 的最后一行“auth-user-pass“<br />
为：auth-user-pass /etc/openvpn/UltraVPN.pw 即可。</p>
<p>下面是我的配置文件UltraVPN.conf 内容，供参考。</p>
<p>client</p>
<p>dev tun</p>
<p>proto udp</p>
<p>hand-window 15</p>
<p>remote-random</p>
<p>remote servers443.ultravpn.fr 443</p>
<p>remote servers24.ultravpn.fr 24</p>
<p>remote servers21.ultravpn.fr 21</p>
<p>remote servers54.ultravpn.fr 54</p>
<p>remote servers24.ultravpn.net 24</p>
<p>remote servers443.ultravpn.net 443</p>
<p>resolv-retry infinite</p>
<p>nobind</p>
<p># Try to preserve some state across restarts.</p>
<p>persist-key</p>
<p>persist-tun</p>
<p>ca /etc/openvpn/UltraVPN.crt</p>
<p>route 3.4.5.6 255.255.255.255 net_gateway</p>
<p># Enable compression on the VPN link.</p>
<p># Don&#8217;t enable this unless it is also</p>
<p># enabled in the server config file.</p>
<p>comp-lzo</p>
<p># Set log file verbosity.</p>
<p>verb 3</p>
<p>auth-user-pass /etc/openvpn/UltraVPN.pw</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wood</title>
		<link>http://blog.zhuli.name/archives/6644#comment-561</link>
		<dc:creator>wood</dc:creator>
		<pubDate>Sun, 04 Oct 2009 03:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhuli.name/?p=6644#comment-561</guid>
		<description>你好，能否帮忙申请一个ssh帐号，我现在用的VPN，时常不稳定。请原谅不能转发

您的文章，我会采取其他方式做的，谢谢！</description>
		<content:encoded><![CDATA[<p>你好，能否帮忙申请一个ssh帐号，我现在用的VPN，时常不稳定。请原谅不能转发</p>
<p>您的文章，我会采取其他方式做的，谢谢！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: forrest</title>
		<link>http://blog.zhuli.name/archives/6644#comment-543</link>
		<dc:creator>forrest</dc:creator>
		<pubDate>Thu, 23 Jul 2009 09:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhuli.name/?p=6644#comment-543</guid>
		<description>用autossh跑成daemon最佳

autossh

http://www.harding.motd.ca/autossh/</description>
		<content:encoded><![CDATA[<p>用autossh跑成daemon最佳</p>
<p>autossh</p>
<p><a href="http://www.harding.motd.ca/autossh/">http://www.harding.motd.ca/autossh/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gfwgo2hell</title>
		<link>http://blog.zhuli.name/archives/6644#comment-542</link>
		<dc:creator>gfwgo2hell</dc:creator>
		<pubDate>Wed, 22 Jul 2009 01:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhuli.name/?p=6644#comment-542</guid>
		<description>@admin
郵件已收到，謝謝你的分享。</description>
		<content:encoded><![CDATA[<p>@admin<br />
郵件已收到，謝謝你的分享。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://blog.zhuli.name/archives/6644#comment-539</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 21 Jul 2009 11:58:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhuli.name/?p=6644#comment-539</guid>
		<description>@gfwgo2hell
已发你 Email</description>
		<content:encoded><![CDATA[<p>@gfwgo2hell<br />
已发你 Email</p>
]]></content:encoded>
	</item>
</channel>
</rss>

