Monthly Archive for September, 2005

配合 firewall 擋亂掃 ssh 的方法

之前我知道 ports 裡面有一個 security/bruteforceblocker 可以用,可是他用 pf,而我不會用…。剛剛找了一下,發現一個叫做 sshit 的東西,是用 ipfw 做的,而且還可以設定多久後拿掉 firewall rule。剛剛用了一下,感覺也不錯。

UPDATE: 結果他不知道為什麼會生出一大堆(70~80 隻)perl 在那邊 idle,看了相當不爽。

UPDATE: 這個問題後來 (2006 or 2007) 已經修正了,現在用起來沒什麼問題。

FreeBSD foot-shooting!

As of 5.x and above, you can NOT modify partition table whose disk is in-use. This is so-called anti-foot-shooting feature of GEOM.

After searching mailing lists, I found that setting the 4-th bit of kern.geom.debugflags to 1 will turn off this *feature*. *grin*

The original message is here.

softupdate 的 bug

從很久以前,有幾台 4.x 的機器,就一直也遇到一個問題。有時候,明明 du 出來就是沒那麼大,可是 df 看出來硬碟被用光光的事情。之前是有找過,據說是跟 softupdate 有關係,當碰到的時候,只能 *硬* reboot 然後 fsck 才會好。

前陣子,在 current 修了一個 softupdate 在處理對於被砍掉的檔案還有 dirty buffer 的問題,而剛剛我在 mailing 看到說這個問題會造成的一種狀況就是我以前碰到的問題。

目前還不是很清楚有沒有辦法 merge 進 RELENG_4_11(這個是 security branch 不是 errata branch),不過我想直接跑 4-STABLE 應該是 ok 的。