lighttpd inside jail behind pf
標題亂寫,不過意思就是在 pf 控管下的 jail 裡的 lighttpd 有點問題要解決,也許也有人遇到過一樣的問題…
情況如下,這是 lighttpd 的 errorlog 記錄:
2007-01-17 16:53:50: (network_freebsd_sendfile.c.97) writev failed: Operation not permitted 10
2007-01-17 16:53:50: (connections.c.588) connection closed: write failed on fd 10
2007-01-17 16:54:02: (network_freebsd_sendfile.c.97) writev failed: Operation not permitted 8
2007-01-17 16:54:02: (connections.c.588) connection closed: write failed on fd 8
完全查不出來原因,雖然我知道跟 pf 有關,不過又不知道會不會跟 jail 有關(1) ,所以整個一團亂。最後終於在 trac.lighttpd 上查找到有關的內容, ticket #812。最後的解決方法是在 pf.conf 中加上 quick / keep state 的關鍵字就行啦。 :p
不知道可不可以再簡化,不過沒空搞啦,能 work 就好。然後,這應該跟 jail 無關,不過也可以做個參考囉。
- 沒錯,本 blog 剛搬完家,感謝學弟的鼎力相助
[back]















一月 17th, 2007 at 10:05 pm
[...] Original post by clsung [...]