Hi! I’m clsung

Hi! I’m clsung

clsung’s blog site, or you can call me AlanSung

Hi! I’m clsung RSS Feed
 
 
 
 

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

pass in quick on $extdev proto tcp from any to $jail_t2 keep state

不知道可不可以再簡化,不過沒空搞啦,能 work 就好。然後,這應該跟 jail 無關,不過也可以做個參考囉。

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • funp
  • Haohao
  • Hemidemi
  • Live
  • MisterWong
  • TwitThis
  • udn
  1. 沒錯,本 blog 剛搬完家,感謝學弟的鼎力相助 :D [back]

One Response to “lighttpd inside jail behind pf”

  1. 1
    Planeta FreeBSD » lighttpd inside jail behind pf:

    [...] Original post by clsung [...]

Leave a Reply

噗浪:

  • clsung 已經 買了上週發現的好吃快炒店的炒麵。 5 hours 前
  • clsung 說 原來老師已經回來了。 10 hours 前
  • clsung 說 為了怕在家裡洗頭到一半瓦斯沒了,今天一定要來去游泳 *握拳* 11 hours 前

分類

Flickr

    clsung. Get yours at bighugelabs.com/flickr

Blogroll

    馬的警總回來了
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan