<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>Felix's Blog</title>
	
	<link>http://blog.felixc.at</link>
	<description />
	<lastBuildDate>Sun, 13 May 2012 10:37:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/felixcatsum" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="felixcatsum" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>猫颜文字 For Fcitx QuickPhrase</title>
		<link>http://blog.felixc.at/2012/05/kitty-for-fcitx-quickphrase/</link>
		<comments>http://blog.felixc.at/2012/05/kitty-for-fcitx-quickphrase/#comments</comments>
		<pubDate>Sun, 13 May 2012 10:22:54 +0000</pubDate>
		<dc:creator>Felix Yan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Fcitx]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.felixc.at/?p=1115</guid>
		<description><![CDATA[嗯, 原版来自猫老师的 http://catfan.me/_/p18814 喵, 俺只是简单转了下格式. 把下面的内容放到 ~/.config/fcitx/data/QuickPhrase.mb 就可以了(没这个文件/目录就建一下) &#8230; [visit site to read more]]]></description>
			<content:encoded><![CDATA[<p>嗯, 原版来自猫老师的 <a href="http://catfan.me/_/p18814" target="_blank">http://catfan.me/_/p18814</a> 喵, 俺只是简单转了下格式.<br />
把下面的内容放到 ~/.config/fcitx/data/QuickPhrase.mb 就可以了(没这个文件/目录就建一下)<br />
 &#8230; [<a href="http://blog.felixc.at/2012/05/kitty-for-fcitx-quickphrase/">visit site to read more</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.felixc.at/2012/05/kitty-for-fcitx-quickphrase/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>在 Xfce4 里一键切换 Composite 开关</title>
		<link>http://blog.felixc.at/2012/05/one-key-toggle-composite-in-xfce4/</link>
		<comments>http://blog.felixc.at/2012/05/one-key-toggle-composite-in-xfce4/#comments</comments>
		<pubDate>Sun, 13 May 2012 08:36:13 +0000</pubDate>
		<dc:creator>Felix Yan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Xfce]]></category>

		<guid isPermaLink="false">http://blog.felixc.at/?p=1110</guid>
		<description><![CDATA[常用 KDE4 的用户可能很熟悉 KDE 的 Alt-Shift-F12 切换 Composite 状态, 下面咱让 Xfce4 拥有相同的效果: xfconf-query -c xfwm4 -p /general/use_compositing -T 在 Xfce4 的快捷键设置里, 定义一个快捷键(我选的是Ctrl-Alt-Backspace, 不知为何 Alt-Shift-F12 无法选用), 绑定上面的命令, 就可以了 &#8230; [visit site to read more]]]></description>
			<content:encoded><![CDATA[<p>常用 KDE4 的用户可能很熟悉 KDE 的 Alt-Shift-F12 切换 Composite 状态, 下面咱让 Xfce4 拥有相同的效果:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xfconf-query <span style="color: #660033;">-c</span> xfwm4 <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>general<span style="color: #000000; font-weight: bold;">/</span>use_compositing <span style="color: #660033;">-T</span></pre></div></div>

<p>在 Xfce4 的快捷键设置里, 定义一个快捷键(我选的是Ctrl-Alt-Backspace, 不知为何 Alt-Shift-F12 无法选用), 绑定上面的命令, 就可以了 &#8230; [<a href="http://blog.felixc.at/2012/05/one-key-toggle-composite-in-xfce4/">visit site to read more</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.felixc.at/2012/05/one-key-toggle-composite-in-xfce4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google TalkPlugin (包括 Hangout) 不能正常使用与 iptables NAT</title>
		<link>http://blog.felixc.at/2012/05/google-talkplugin-hangout-conflict-with-iptables-nat/</link>
		<comments>http://blog.felixc.at/2012/05/google-talkplugin-hangout-conflict-with-iptables-nat/#comments</comments>
		<pubDate>Fri, 04 May 2012 04:28:32 +0000</pubDate>
		<dc:creator>Felix Yan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[NAT]]></category>

		<guid isPermaLink="false">http://blog.felixc.at/?p=1105</guid>
		<description><![CDATA[嗯, 准确的说, 如果 iptables -t nat 吃掉了 lo 的包 (MASQUERADE 之类的), Google TalkPlugin 就会傲娇掉, 具体表现为无论刷新重装多少次, 都提示没有连接, 网上介绍的各种方法都无效. [006:450] Started GoogleTalkPlugin, path=/opt/google/talkplugin/GoogleTalkPlugin [006:450] Waiting for GoogleTalkPlugin to start... [007:451] Read port file, port=52545 [007:453] Initiated connection to GoogleTalkPlugin [007:551] Socket ... [visit site to read more]]]></description>
			<content:encoded><![CDATA[<p>嗯, 准确的说, 如果 iptables -t nat 吃掉了 lo 的包 (MASQUERADE 之类的), Google TalkPlugin 就会傲娇掉, 具体表现为无论刷新重装多少次, 都提示没有连接, 网上介绍的各种方法都无效.</p>
<pre lang="txt">
[006:450] Started GoogleTalkPlugin, path=/opt/google/talkplugin/GoogleTalkPlugin<br />
[006:450] Waiting for GoogleTalkPlugin to start...<br />
[007:451] Read port file, port=52545<br />
[007:453] Initiated connection to GoogleTalkPlugin<br />
[007:551] Socket ... [<a href="http://blog.felixc.at/2012/05/google-talkplugin-hangout-conflict-with-iptables-nat/">visit site to read more</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.felixc.at/2012/05/google-talkplugin-hangout-conflict-with-iptables-nat/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>最新 nvidia 295.20 驱动造成 gnome-shell 搜索时崩溃的临时解决方案</title>
		<link>http://blog.felixc.at/2012/02/latest-nvidia-295-20-crashes-gnome-shell-on-search-temp-solution/</link>
		<comments>http://blog.felixc.at/2012/02/latest-nvidia-295-20-crashes-gnome-shell-on-search-temp-solution/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 07:34:13 +0000</pubDate>
		<dc:creator>Felix Yan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nvidia]]></category>

		<guid isPermaLink="false">http://blog.felixc.at/?p=1098</guid>
		<description><![CDATA[最近的 nvidia 295.20 驱动会造成 gnome-shell 搜索时崩溃, 查看自己的log有类似如下输出者即为此 bug 所致: /var/log$ sudo grep gnome messages.log &#124; grep nvidia Feb 15 14:16:16 archdesktop kernel: &#91;10841.584296&#93; gnome-shell&#91;9257&#93;: segfault at c ip b5433ea3 sp ab7f3c8c error 6 in libnvidia-tls.so.295.20&#91;b5433000+3000&#93; 下面翻译来自 Arch 官方论坛的一些临时解决方案(任选): 清除GLCache的旧缓存文件:]]></description>
			<content:encoded><![CDATA[<p>最近的 nvidia 295.20 驱动会造成 gnome-shell 搜索时崩溃, 查看自己的log有类似如下输出者即为此 bug 所致:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> gnome messages.log <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> nvidia
Feb <span style="color: #000000;">15</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">16</span>:<span style="color: #000000;">16</span> archdesktop kernel: <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">10841.584296</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> gnome-shell<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">9257</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: segfault at c ip b5433ea3 sp ab7f3c8c error <span style="color: #000000;">6</span> <span style="color: #000000; font-weight: bold;">in</span> libnvidia-tls.so.295.20<span style="color: #7a0874; font-weight: bold;">&#91;</span>b5433000+<span style="color: #000000;">3000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>下面翻译来自 Arch 官方论坛的一些临时解决方案(任选):</p>
<ol>
<li>清除GLCache的旧缓存文件:
<pre ... [<a href="http://blog.felixc.at/2012/02/latest-nvidia-295-20-crashes-gnome-shell-on-search-temp-solution/">visit site to read more</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.felixc.at/2012/02/latest-nvidia-295-20-crashes-gnome-shell-on-search-temp-solution/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>在地址栏输入一个字母后的网址</title>
		<link>http://blog.felixc.at/2011/10/these-websites-best-describe-me/</link>
		<comments>http://blog.felixc.at/2011/10/these-websites-best-describe-me/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 14:02:16 +0000</pubDate>
		<dc:creator>Felix Yan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.felixc.at/?p=1088</guid>
		<description><![CDATA[在好友的日志里看到了一份他的网址列表, 随手整理了一下自己的 &#8220;These websites best describe me.&#8221; a is for aur.archlinux.org //好地方不解释&#8230; b is for bilibili.tv //这个..必须的..看糟糕物的地方 c is for chdbits.org //下电影的地方&#8230; d is for]]></description>
			<content:encoded><![CDATA[<p>在<a href="http://aifreedom.com/mylife/175">好友的日志</a>里看到了一份他的网址列表, 随手整理了一下自己的 &#8220;These websites best describe me.&#8221;</p>
<p>a is for <span style="color: #0000ff;">aur.archlinux.org</span> //好地方不解释&#8230;<br />
b is for <span style="color: #0000ff;">bilibili.tv</span> //这个..必须的..看糟糕物的地方<br />
c is for <span style="color: #0000ff;">chdbits.org</span> //下电影的地方&#8230;<br />
d is for <span style="color: ... [<a href="http://blog.felixc.at/2011/10/these-websites-best-describe-me/">visit site to read more</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.felixc.at/2011/10/these-websites-best-describe-me/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>解决SSH远程登录后屏幕尺寸不对的问题</title>
		<link>http://blog.felixc.at/2011/08/fix-ssh-remote-screen-auto-resize/</link>
		<comments>http://blog.felixc.at/2011/08/fix-ssh-remote-screen-auto-resize/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 19:26:21 +0000</pubDate>
		<dc:creator>Felix Yan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://blog.felixc.at/?p=1059</guid>
		<description><![CDATA[首先解释下标题: 其实我想表达的是: 解决SSH远程登录后本地终端窗口大小改变远程屏幕尺寸没有随之改变导致显示混乱的问题, 但是太长了, 嗯. 我的一部分Linux VPS存在这个问题, 而另一部分是正常的; 一个由镜像默认安装的Ubuntu 10.04 Server一定存在这个问题. 具体解决方法其实很简单, 只是因为搜索的时候有点小纠结, 所以当做译文吧: 编辑 &#8230; [visit site to read more]]]></description>
			<content:encoded><![CDATA[<p>首先解释下标题: 其实我想表达的是: <font color=blue>解决SSH远程登录后本地终端窗口大小改变远程屏幕尺寸没有随之改变导致显示混乱的问题</font>, 但是太长了, 嗯.<br />
我的一部分Linux VPS存在这个问题, 而另一部分是正常的; 一个由镜像默认安装的Ubuntu 10.04 Server一定存在这个问题.</p>
<p>具体解决方法其实很简单, 只是因为搜索的时候有点小纠结, 所以当做译文吧:<br />
编辑 &#8230; [<a href="http://blog.felixc.at/2011/08/fix-ssh-remote-screen-auto-resize/">visit site to read more</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.felixc.at/2011/08/fix-ssh-remote-screen-auto-resize/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>让libTorrent优先选择教育网IPv6地址</title>
		<link>http://blog.felixc.at/2011/08/libtorrent-choose-cernet-ipv6-address-first/</link>
		<comments>http://blog.felixc.at/2011/08/libtorrent-choose-cernet-ipv6-address-first/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 16:44:43 +0000</pubDate>
		<dc:creator>Felix Yan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[libtorrent]]></category>
		<category><![CDATA[rtorrent]]></category>

		<guid isPermaLink="false">http://blog.felixc.at/?p=1053</guid>
		<description><![CDATA[猫在教育网机子上挂PT, 但是机子同时是内网的IPv6网关(HE的/64), 结果rtorrent每次返回给tracker的&#038;ipv6=后面总是我在HE的2001:470:xx:xx::1, 和教育网PT上其他用户之间连接效果差爆了. 在折腾了几种workaround无效后, 最后不得不改libtorrent的代码了! 由于ipv6部分本身就是由一个patch加上去的, 我只需要对这个patch再patch一次即可: 安装过程就不再赘述了, 满网上都是的&#8230; --- ... [visit site to read more]]]></description>
			<content:encoded><![CDATA[<p>猫在教育网机子上挂PT, 但是机子同时是内网的IPv6网关(HE的/64), 结果rtorrent每次返回给tracker的&#038;ipv6=后面总是我在HE的2001:470:xx:xx::1, 和教育网PT上其他用户之间连接效果差爆了.</p>
<p>在折腾了几种workaround无效后, 最后不得不改libtorrent的代码了! 由于ipv6部分本身就是由一个patch加上去的, 我只需要对这个patch再patch一次即可:<br />
安装过程就不再赘述了, 满网上都是的&#8230;</p>
<pre lang="diff">--- ... [<a href="http://blog.felixc.at/2011/08/libtorrent-choose-cernet-ipv6-address-first/">visit site to read more</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.felixc.at/2011/08/libtorrent-choose-cernet-ipv6-address-first/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>给用NexusPHP的PT站写的分流/保种员自动发工资脚本</title>
		<link>http://blog.felixc.at/2011/08/auto-pay-for-nexusphp/</link>
		<comments>http://blog.felixc.at/2011/08/auto-pay-for-nexusphp/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 04:52:26 +0000</pubDate>
		<dc:creator>Felix Yan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.felixc.at/?p=1048</guid>
		<description><![CDATA[如题.使用说明: 1, 为实现统计本月流量/保种时间(NexusPHP默认的数据表没有留这些数据), 需要在users表里增加 downloaded_lastmonth, uploaded_lastmonth, seedtime_lastmonth 三个字段. 2, 需要获取分流员/保种员信息, 也需指定pipeliner/guarder字段(enum或boolean, 后者需略微改动此代码) 3, 需要python2.x环境, 以及python-MySQLDb库. 4, 需要服务器上有正常的crontab, 每月1日0点执行即可. 5, 此脚本还提供了记录上月实际上传下载(不含优惠信息), 以及下载时间的统计部分, 相应部分默认已注释掉, 可以手动替换启用. 如需显示在userdetails页面上, 只需做一个简单的减法(当前-上月). 实际上传/下载量的统计还需修改announce.php. 6, 工资(魔力/邀请)参考下面的设置修改. 本初始数据来自CMCT-PT的考核标准和奖励细则. 7, 修改数据库连接字符串的相应部分, 即可用. &#8230; [visit site to read more]]]></description>
			<content:encoded><![CDATA[<p>如题.使用说明:<br />
1, 为实现统计本月流量/保种时间(NexusPHP默认的数据表没有留这些数据), 需要在users表里增加    downloaded_lastmonth, uploaded_lastmonth, seedtime_lastmonth 三个字段.<br />
2, 需要获取分流员/保种员信息, 也需指定pipeliner/guarder字段(enum或boolean, 后者需略微改动此代码)<br />
3, 需要python2.x环境, 以及python-MySQLDb库.<br />
4, 需要服务器上有正常的crontab, 每月1日0点执行即可.<br />
5, 此脚本还提供了记录上月实际上传下载(不含优惠信息), 以及下载时间的统计部分, 相应部分默认已注释掉, 可以手动替换启用. 如需显示在userdetails页面上, 只需做一个简单的减法(当前-上月). 实际上传/下载量的统计还需修改announce.php.<br />
6, 工资(魔力/邀请)参考下面的设置修改. 本初始数据来自CMCT-PT的考核标准和奖励细则.<br />
7, 修改数据库连接字符串的相应部分, 即可用.<br />
 &#8230; [<a href="http://blog.felixc.at/2011/08/auto-pay-for-nexusphp/">visit site to read more</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.felixc.at/2011/08/auto-pay-for-nexusphp/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>让 Linux 里的 .xmind 文件能被双击打开</title>
		<link>http://blog.felixc.at/2011/08/linux-xmind-double-click-open/</link>
		<comments>http://blog.felixc.at/2011/08/linux-xmind-double-click-open/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 13:49:03 +0000</pubDate>
		<dc:creator>Felix Yan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[XMind]]></category>

		<guid isPermaLink="false">http://blog.felixc.at/?p=1039</guid>
		<description><![CDATA[这其实只是一个简单的小trick ubuntu和arch默认安装的xmind, 如果直接在WM/DE的文件管理器里双击打开, 只会打开一个新脑图, 而不会打开你指定的文件, 这个问题还是相当annoying的. 下面是解决方法: 编辑 /usr/share/applications/xmind.desktop 文件, 找到 Exec= 开头的那一行, 修改为: Exec=/usr/share/xmind/xmind-bin %f (如果安装位置不一样请自行修改, &#8230; [visit site to read more]]]></description>
			<content:encoded><![CDATA[<p>这其实只是一个简单的小trick <img src='http://blog.felixc.at/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>ubuntu和arch默认安装的xmind, 如果直接在WM/DE的文件管理器里双击打开, 只会打开一个新脑图, 而不会打开你指定的文件, 这个问题还是相当annoying的. 下面是解决方法:</p>
<p>编辑 /usr/share/applications/xmind.desktop 文件,<br />
找到 Exec= 开头的那一行, 修改为:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Exec=/usr/share/xmind/xmind-bin %f</pre></div></div>

<p>(如果安装位置不一样请自行修改, &#8230; [<a href="http://blog.felixc.at/2011/08/linux-xmind-double-click-open/">visit site to read more</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.felixc.at/2011/08/linux-xmind-double-click-open/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>内网Windows XP用户使用ISATAP隧道的方法(附自动配置脚本)</title>
		<link>http://blog.felixc.at/2011/07/isatap-behind-nat-windows-xp-auto-config-python-script/</link>
		<comments>http://blog.felixc.at/2011/07/isatap-behind-nat-windows-xp-auto-config-python-script/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 17:19:31 +0000</pubDate>
		<dc:creator>Felix Yan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[isatap]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.felixc.at/?p=1032</guid>
		<description><![CDATA[声明: 本文采用方法来自 http://blog.lifetoy.org/2010/01/31/isatap-behide-nat/, 我仅仅是写了一个自动配置脚本(不包括配置路由器). 首先, 这个方法只能让内网一台机器用上ISATAP隧道(仅仅是简单的转发了相关数据包而已). 主要步骤分为两个: 配置路由器转发协议号41的数据包到你的内网机器 修改本机的ISATAP相关配置(拥有外网环境则会自动完成这一步, 内网环境需要手动处理一些问题) 只有一部分路由器本来的FIRMWARE支持转发协议号41的数据包, 如果你用的路由器不支持, 那就只能尝试dd-wrt或者openwrt了. 如果你的路由器很不幸的也不能刷这类自定义固件, 那也就没办法了..(嗯) Linux类环境可以使用iptables实现转发(假设你的内网IP地址为192.168.0.10, 网关IP为192.168.0.1, 下同): iptables -t nat -A PREROUTING -d 192.168.0.10 -p 41 -j DNAT --to 192.168.0.1 openwrt则可以修改文件 /etc/config/firewall: (此段为转载) config redirect option src wan option dest lan option dest_ip 192.168.0.10 option proto 41 至此, 第一步就做完了. 第二步, 可以用下面的脚本自动完成. 原文给出的bat脚本我在win7和winxp里都试过, 不能发挥应有的作用, 而且每次外网ip变动时都需要修改, [...]]]></description>
			<content:encoded><![CDATA[<p>声明: 本文采用方法来自 <a href="http://blog.lifetoy.org/2010/01/31/isatap-behide-nat/">http://blog.lifetoy.org/2010/01/31/isatap-behide-nat/</a>, 我仅仅是写了一个自动配置脚本(不包括配置路由器).</p>
<p>首先, 这个方法只能让内网一台机器用上ISATAP隧道(仅仅是简单的转发了相关数据包而已). 主要步骤分为两个:</p>
<ul>
<li>配置路由器转发协议号41的数据包到你的内网机器</li>
<li>修改本机的ISATAP相关配置(拥有外网环境则会自动完成这一步, 内网环境需要手动处理一些问题)</li>
</ul>
<p>只有一部分路由器本来的FIRMWARE支持转发协议号41的数据包, 如果你用的路由器不支持, 那就只能尝试dd-wrt或者openwrt了. 如果你的路由器很不幸的也不能刷这类自定义固件, 那也就没办法了..(嗯)</p>
<p>Linux类环境可以使用iptables实现转发(假设你的内网IP地址为192.168.0.10, 网关IP为192.168.0.1, 下同):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">iptables <span style="color: #660033;">-t</span> nat <span style="color: #660033;">-A</span> PREROUTING <span style="color: #660033;">-d</span> 192.168.0.10 <span style="color: #660033;">-p</span> <span style="color: #000000;">41</span> <span style="color: #660033;">-j</span> DNAT <span style="color: #660033;">--to</span> 192.168.0.1</pre></div></div>

<p>openwrt则可以修改文件 /etc/config/firewall: (此段为转载)</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">config redirect
option src                      wan
option dest                     lan
option dest_ip          192.168.0.10
option proto            41</pre></div></div>

<p>至此, 第一步就做完了.</p>
<p>第二步, 可以用下面的脚本自动完成.<br />
原文给出的bat脚本我在win7和winxp里都试过, 不能发挥应有的作用, 而且每次外网ip变动时都需要修改, 这对于动态ip用户更是无法接受的. 于是我用Python重写了一个脚本, 目前只能在XP系统使用. (其实要在Win7下用应该只需要很小的修改, 不过我暂时没测试环境:P)<br />
注: 脚本中写的是上交的isatap隧道服务器配置, 如需使用其他服务器, 稍加修改即可.<br />
 &#8230; [<a href="http://blog.felixc.at/2011/07/isatap-behind-nat-windows-xp-auto-config-python-script/">visit site to read more</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.felixc.at/2011/07/isatap-behind-nat-windows-xp-auto-config-python-script/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 1.879 seconds. --><!-- Cached page generated by WP-Super-Cache on 2012-05-17 23:38:14 --><!-- Compression = gzip -->

