Re: [FreeBSD] FreeBSD - PF Firewall

看板FreeBSD作者時間21年前 (2005/01/18 19:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
感謝敢謝 :) <: Neuro :> === "或許…我不是我" <ant.bbs@bbs.sayya.org> 撰寫於郵件新聞:4GH4hV$nC7@bbs.sayya.org... >※ 引述《goaway@nowhere.not (老英學生 Old English Student)》之銘言: >> 我的環境: >> fBSD 在 192.168.1.2 ; 跑各種 server >> 及 intranet 192.168.1.0/24 ; intranet 還有多部 windowsXP . >> router, 在 192.168.1.1, 已設 將外來 access 全指過來給 fBSD 這台 server. >> 希望能限制 外出頻寬 ; 但不限制 內部頻寬 . >> 限制 外出頻寬 如果能限制 每個 ip 最多達某個上限頻寬 就最好. >> 這是我的 /etc/pf.conf ; 能不能請幫我看一眼 這樣設可以嗎? >> ####################### >> # /etc/pf.conf 開始 >> altq on $extdev cbq bandwidth 512Kb queue { std_out } >> queue std_out bandwidth 256Kb cbq (default) >> altq on $extdev cbq bandwidth 100Mb queue { std_in } >> queue std_in bandwidth 2Mb cbq (default borrow) > > altq on $extdev cbq bandwidth 100Mb queue { std_int, std_out } > queue std_int cbq(default) > queue std_out bandwidth 512Kb { limit_ext } > queue limit_ext bandwidth 256Kb cbq(red) > > pass out on $extdev from { ip1, ip2, ip3 } to any queue limit_ext > > 這樣試試看,我沒試過 > >> # end of /etc/pf.conf 結束 >> ####################### >> 個人小事, >> 感謝 前輩撥冗費心了 :) >> 謝謝 >> <: Neuro :> >> http://neuro.ohbi.net >> http://neuro.no-ip.info >> http://neuro.dyndns.tv >> http://neuro.supt.net >> http://neuro.taiwantop.com >> e-mails : >> neuro@neuro.supt.net >> neuroh@hotmail.com > > -- > > \||||||/ 「一直到中古時期結束之前,理性代表具備一種心智,能夠看 > q ^ ^ p 出各種事物之間精神層次的關聯、在主體與客體之間的律動 > ╰ 0 ╯ o 、微妙平衡或分配比率。 」 > </ 菠 \-/ - Seven Life Lessons of Chaos > -- > ※ Origin: SayYA 資訊站 <bbs.sayya.org> > ◆ From: 140.138.148.181
文章代碼(AID): #11xEnl00 (FreeBSD)
文章代碼(AID): #11xEnl00 (FreeBSD)