<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rafan's blog &#187; Network</title>
	<atom:link href="http://blog.rafan.org/categories/network/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.rafan.org</link>
	<description>rafan? rafan!</description>
	<lastBuildDate>Mon, 26 Apr 2010 15:19:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-RC3-17376</generator>
		<item>
		<title>w3m 用 socks proxy</title>
		<link>http://blog.rafan.org/archives/157</link>
		<comments>http://blog.rafan.org/archives/157#comments</comments>
		<pubDate>Fri, 04 Jul 2008 10:11:54 +0000</pubDate>
		<dc:creator>rafan</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[lynx]]></category>
		<category><![CDATA[socks]]></category>
		<category><![CDATA[w3m]]></category>

		<guid isPermaLink="false">http://blog.rafan.org/?p=157</guid>
		<description><![CDATA[前幾天為了要在 command line 下面看某個網頁，可是那個網頁要看的時候又要透過某台特別的 socks proxy 才能看，然後，我平常用的 w3m 又沒有支援 socks。後來找了一下資料，發現可以用 dante (一個 socks proxy 的軟體) 裡面的 socksify 這個指令，他會 preload socks library 去蓋掉 connect(2)，因此就可以讓原本不支援 socks 的軟體用 socks 了 安裝好 dante 後，照個 socks.conf 裡面的範例改一下，就可以快樂的使用了。]]></description>
			<content:encoded><![CDATA[<p>前幾天為了要在 command line 下面看某個網頁，可是那個網頁要看的時候又要透過某台特別的 socks proxy 才能看，然後，我平常用的 w3m 又沒有支援 socks。後來找了一下資料，發現可以用 dante (一個 socks proxy 的軟體) 裡面的 socksify 這個指令，他會 preload socks library 去蓋掉 connect(2)，因此就可以讓原本不支援 socks 的軟體用 socks 了 <img src='http://blog.rafan.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>安裝好 dante 後，照個 socks.conf 裡面的範例改一下，就可以快樂的使用了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rafan.org/archives/157/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NFS locking in kernel</title>
		<link>http://blog.rafan.org/archives/156</link>
		<comments>http://blog.rafan.org/archives/156#comments</comments>
		<pubDate>Thu, 10 Apr 2008 10:52:06 +0000</pubDate>
		<dc:creator>rafan</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Network]]></category>

		<guid isPermaLink="false">http://blog.rafan.org/?p=156</guid>
		<description><![CDATA[一陣子之前，dfr@ 改寫了 NFS locking server 端的部份，從原本的 userland 搬進 kernel 處理了，kernel conf 裡面要加上 NFSLOCKD，預設 GENERIC 是打開的。數小時前，這部份整個也已經進了 7-STABLE，而 6-STABLE 可能過陣子才會進去。總之，這真是個好消息]]></description>
			<content:encoded><![CDATA[<p>一陣子之前，dfr@ 改寫了 NFS locking server 端的部份，從原本的 userland 搬進 kernel 處理了，kernel conf 裡面要加上 NFSLOCKD，預設 GENERIC 是打開的。數小時前，這部份整個也已經進了 7-STABLE，而 6-STABLE 可能過陣子才會進去。總之，這真是個好消息 <img src='http://blog.rafan.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rafan.org/archives/156/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Horde UTF-8 裡面處理 Big5 的問題</title>
		<link>http://blog.rafan.org/archives/150</link>
		<comments>http://blog.rafan.org/archives/150#comments</comments>
		<pubDate>Sat, 27 Oct 2007 07:42:42 +0000</pubDate>
		<dc:creator>rafan</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://blog.rafan.org/archives/150</guid>
		<description><![CDATA[兩年多前，我還在維護計中 webmail 的時候，曾經評估了 Horde/IMP 跑 UTF-8 模式會碰到的問題。當時有一個很大的問題就是很中信的標題都是直接放沒編碼過的 Big5 字，導致顯示不正常。那時候在 Horde 的 MIME::decode 做了一個很噁心的事情：把所有沒編碼的東西都當 Big5 轉一次到 UTF-8，之後測試的時候，一直注意到中文的副檔名不太正確，後來就沒繼續維護後，也一直沒有機會去看為甚麼。 剛才，因為某些緣故，跑去看了另外一套 Horde 的安裝，花了不到十分鐘，發現問題是我自己製造出來的。因為 MIME::decode() 傳進來的字串有可能是以經處理過的，所以已經變成 UTF-8，而我又轉了一次&#8230; XD 現在的作法是先 UTF-8 到 UTF-8 轉一次，如果不一樣的話，才當 Big5 處理。目前看起來狀況還不錯，再觀察看看。]]></description>
			<content:encoded><![CDATA[<p>兩年多前，我還在維護計中 webmail 的時候，曾經評估了 Horde/IMP 跑 UTF-8 模式會碰到的問題。當時有一個很大的問題就是很中信的標題都是直接放沒編碼過的 Big5 字，導致顯示不正常。那時候在 Horde 的 MIME::decode 做了一個很噁心的事情：把所有沒編碼的東西都當 Big5 轉一次到 UTF-8，之後測試的時候，一直注意到中文的副檔名不太正確，後來就沒繼續維護後，也一直沒有機會去看為甚麼。</p>
<p>剛才，因為某些緣故，跑去看了另外一套 Horde 的安裝，花了不到十分鐘，發現問題是我自己製造出來的。因為 MIME::decode() 傳進來的字串有可能是以經處理過的，所以已經變成 UTF-8，而我又轉了一次&#8230; XD 現在的作法是先 UTF-8 到 UTF-8 轉一次，如果不一樣的話，才當 Big5 處理。目前看起來狀況還不錯，再觀察看看。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rafan.org/archives/150/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>freepops</title>
		<link>http://blog.rafan.org/archives/132</link>
		<comments>http://blog.rafan.org/archives/132#comments</comments>
		<pubDate>Mon, 05 Feb 2007 14:05:21 +0000</pubDate>
		<dc:creator>rafan</dc:creator>
				<category><![CDATA[Mail]]></category>
		<category><![CDATA[Network]]></category>

		<guid isPermaLink="false">http://www.rafan.org/blog/archives/132</guid>
		<description><![CDATA[最近為了某些因素，要把 Hotmail 的信轉出來，而 Hotmail 不提供任何 forwarding 或者 POP3 的功能。想當然，對付這種邪惡的單位，一定有一堆人寫了一堆好用的程式，就剛好發現 freepops 這套用 lua (!) 寫的，可以在各種平台跑。它是將 Hotmail 轉成用 POP3 存取，因此，我就可以用 fetchmail 來幫我轉寄信件]]></description>
			<content:encoded><![CDATA[<p>最近為了某些因素，要把 Hotmail 的信轉出來，而 Hotmail 不提供任何 forwarding 或者 POP3 的功能。想當然，對付這種邪惡的單位，一定有一堆人寫了一堆好用的程式，就剛好發現 freepops 這套用 lua (!) 寫的，可以在各種平台跑。它是將 Hotmail 轉成用 POP3 存取，因此，我就可以用 fetchmail 來幫我轉寄信件 <img src='http://blog.rafan.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rafan.org/archives/132/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nfs mount 不要用 intr (-i)</title>
		<link>http://blog.rafan.org/archives/120</link>
		<comments>http://blog.rafan.org/archives/120#comments</comments>
		<pubDate>Thu, 16 Mar 2006 01:53:32 +0000</pubDate>
		<dc:creator>rafan</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[CSIE]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Workstation Lab]]></category>

		<guid isPermaLink="false">http://rafan.infor.org/blog/archives/120</guid>
		<description><![CDATA[前陣子在研究為什麼單純的 dd 寫到 nfs 上面 ^C 會 panic，在半天之內 post 三次到 stable@，不過都沒人理我 XD 後來翻 open PRs，看到 PR/79700，裡面說到 intr (-i) 這個選項會讓很多行為變得很怪，不太建議使用。後來仔細一看，我真的用了這個，拿掉之後，一切快樂無比&#8230;。 另外，我懷疑 217 很多卡在 nfsaio 的也是這個原因，不過要等下次重開機才能拿掉這選項了。]]></description>
			<content:encoded><![CDATA[<p>前陣子在研究為什麼單純的 dd 寫到 nfs 上面 ^C 會 panic，在半天之內 post 三次到 stable@，不過都沒人理我 XD 後來翻 open PRs，看到 <a title="kern/79700" href="http://www.freebsd.org/cgi/query-pr.cgi?pr=79700">PR/79700</a>，裡面說到 intr (-i) 這個選項會讓很多行為變得很怪，不太建議使用。後來仔細一看，我真的用了這個，拿掉之後，一切快樂無比&#8230;。</p>
<p>另外，我懷疑 217 很多卡在 nfsaio 的也是這個原因，不過要等下次重開機才能拿掉這選項了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rafan.org/archives/120/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows XP SP2 的防火牆</title>
		<link>http://blog.rafan.org/archives/118</link>
		<comments>http://blog.rafan.org/archives/118#comments</comments>
		<pubDate>Thu, 22 Dec 2005 20:33:45 +0000</pubDate>
		<dc:creator>rafan</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://rafan.infor.org/blog/archives/118</guid>
		<description><![CDATA[在裝 SP2 之後，他預設會把東西都擋光光，當有不在名單上的程式要 LISTEN 的話，他會問你要封鎖還是開放還是等等再說，而根據跳出來那個窗的說明是 Windows「現在已經封鎖」。 我之前在寫某門課作業的時候，才發現當他跳出來那個窗的時候，根本就還沒做動作，我的程式還是跑的很快樂.. !@#$%]]></description>
			<content:encoded><![CDATA[<p>在裝 SP2 之後，他預設會把東西都擋光光，當有不在名單上的程式要 LISTEN 的話，他會問你要封鎖還是開放還是等等再說，而根據跳出來那個窗的說明是 Windows「現在已經封鎖」。</p>
<p>我之前在寫某門課作業的時候，才發現當他跳出來那個窗的時候，根本就還沒做動作，我的程式還是跑的很快樂.. !@#$% </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rafan.org/archives/118/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>配合 firewall 擋亂掃 ssh 的方法</title>
		<link>http://blog.rafan.org/archives/116</link>
		<comments>http://blog.rafan.org/archives/116#comments</comments>
		<pubDate>Sun, 11 Sep 2005 08:11:19 +0000</pubDate>
		<dc:creator>rafan</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://rafan.infor.org/blog/?p=116</guid>
		<description><![CDATA[之前我知道 ports 裡面有一個 security/bruteforceblocker 可以用，可是他用 pf，而我不會用&#8230;。剛剛找了一下，發現一個叫做 sshit 的東西，是用 ipfw 做的，而且還可以設定多久後拿掉 firewall rule。剛剛用了一下，感覺也不錯。 UPDATE: 結果他不知道為什麼會生出一大堆（70~80 隻）perl 在那邊 idle，看了相當不爽。 UPDATE: 這個問題後來 (2006 or 2007) 已經修正了，現在用起來沒什麼問題。]]></description>
			<content:encoded><![CDATA[</p>
<p>之前我知道 ports 裡面有一個 security/bruteforceblocker 可以用，可是他用 pf，而我不會用&#8230;。剛剛找了一下，發現一個叫做 <a href="http://anp.ath.cx/sshit/">sshit</a> 的東西，是用 ipfw 做的，而且還可以設定多久後拿掉 firewall rule。剛剛用了一下，感覺也不錯。</p>
<p><strong> UPDATE</strong>: 結果他不知道為什麼會生出一大堆（70~80 隻）perl 在那邊 idle，看了相當不爽。</p>
<p><strong>UPDATE</strong>: 這個問題後來 (2006 or 2007) 已經修正了，現在用起來沒什麼問題。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rafan.org/archives/116/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IRC to Any</title>
		<link>http://blog.rafan.org/archives/98</link>
		<comments>http://blog.rafan.org/archives/98#comments</comments>
		<pubDate>Wed, 27 Apr 2005 01:37:28 +0000</pubDate>
		<dc:creator>rafan</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Ports]]></category>

		<guid isPermaLink="false">http://rafan.infor.org/blog/archives/98</guid>
		<description><![CDATA[剛看到 ports 多了 thales 這個東西，他是 IRC to MySQL 的 gateway，再加上以前玩的 bitlbee (IRC to MSN/ICQ/&#8230;)，這年頭 IRC 可以幹的壞事越來越多了 XD]]></description>
			<content:encoded><![CDATA[<p>剛看到 ports 多了 <a href="http://www.gnu.org/software/thales/">thales</a> 這個東西，他是 IRC to MySQL 的 gateway，再加上以前玩的 bitlbee (IRC to MSN/ICQ/&#8230;)，這年頭 IRC 可以幹的壞事越來越多了 XD</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rafan.org/archives/98/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dns/scavenge 太邪惡了&#8230;</title>
		<link>http://blog.rafan.org/archives/95</link>
		<comments>http://blog.rafan.org/archives/95#comments</comments>
		<pubDate>Wed, 20 Apr 2005 03:25:26 +0000</pubDate>
		<dc:creator>rafan</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Ports]]></category>
		<category><![CDATA[Spyware]]></category>

		<guid isPermaLink="false">http://rafan.infor.org/blog/archives/95</guid>
		<description><![CDATA[dns/scavenge 是一個檢查正反解有沒有弄好的工具，有點像是 dnsdnswalk，不過他不用 zone transfer 而是自己用 Net::DNS 來跑，然後他裡面還會用 nmap 去看機器在不在&#8230; 這太邪惡了]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.freshports.org/dns/scavenge/">dns/scavenge</a> 是一個檢查正反解有沒有弄好的工具，有點像是 <a href="http://www.freshports.org/dns/dnswalk/">dnsdnswalk</a>，不過他不用 zone transfer 而是自己用 Net::DNS 來跑，然後他裡面還會用 nmap 去看機器在不在&#8230; 這太邪惡了 <img src='http://blog.rafan.org/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rafan.org/archives/95/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Open Source Spyware&#8230;</title>
		<link>http://blog.rafan.org/archives/93</link>
		<comments>http://blog.rafan.org/archives/93#comments</comments>
		<pubDate>Tue, 19 Apr 2005 03:39:43 +0000</pubDate>
		<dc:creator>rafan</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Spyware]]></category>

		<guid isPermaLink="false">http://rafan.infor.org/blog/archives/93</guid>
		<description><![CDATA[剛在 gslin&#8217;s blog 看到這篇，這實在是&#8230;。剛把 code 看完，以後幹壞事就方便多了？ XD 附註：原本的文章在 The first open source spyware。]]></description>
			<content:encoded><![CDATA[<p>剛在 gslin&#8217;s blog 看到<a href="http://gslin.org/2005/04/19/1067/">這篇</a>，這實在是&#8230;。剛把 code 看完，以後幹壞事就方便多了？ XD</p>
<p>附註：原本的文章在 <a href="http://www.securityfocus.com/archive/1/396165/2005-04-15/2005-04-21/0">The first open source spyware</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rafan.org/archives/93/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

