Article View: pl.comp.os.bsd
Article #20984Re: [openbsd] PF i pominiecie polaczenia w kolejkowaniu
From: mlotek
Date: Sun, 06 Sep 2009 12:34
Date: Sun, 06 Sep 2009 12:34
124 lines
6714 bytes
6714 bytes
Użytkownik "WebSpider" <webs1821@spaaamowe.gmail.com> napisał w wiadomości
news:h8084t$mk6$1@nemesis.news.neostrada.pl...
> Użytkownik "Tomasz Sowa" <tomcio@slimaczek.BEZSPAMOWY.pl> napisał
>> altq on $int1_if hfsc bandwidth 100000Kb queue { internet_in, local_in }
>>
>> queue internet_in bandwidth 3800Kb hfsc(upperlimit 3800Kb linkshare 0Kb)
>> {
>> gr1_in, gr2_in, gr3_in, gr4_in }
>>
>> # ruch wejsciowy ze swiata dzielimy dalej na kolejki
>> queue gr1_in bandwidth 10% hfsc(realtime 32Kb)
>> queue gr2_in bandwidth 30% hfsc(realtime 512Kb)
>> queue gr3_in bandwidth 20% hfsc(realtime 128Kb)
>> queue gr4_in bandwidth 10% hfsc(default realtime 128Kb)
>>
>> queue local_in bandwidth 90000Kb hfsc(realtime 0Kb linkshare 90000Kb)
>>
>> # regulki lapiace dla sieci lokalnej
>>
>> pass in quick on $int1_if inet proto udp from $lan1 to $int1_if port {
>> 53,
>> 137, 138 } keep state (if-bound) queue local_in
>>
>> pass in quick on $int1_if inet proto tcp from $lan1 to $int1_if port {
>> 21,
>> 53, 139, 445 } flags S/SA keep state (if-bound) queue local_in
>>
>> # wszystkie inne nie zlapane wpadna do domyslnej kolejki (download ze
>> swiata)
>>
>
> Właśnie o to chodziło, pięknie dziękuję.
> Jeśli by jeszcze ktoś spojrzał co tu popsułem, bo składnię wydaje mi się,
> że znam, ale czegoś brakuje:
>
> altq on $wew_if hfsc bandwidth 100Mb queue { internet_in, local_in }
> queue internet_in hfsc bandwidth 4Mb queue { std_down, a2_down, a3_down,
> a4_down, a5_down, a6_down, a7_down, a8_down, a12_down, k20_down, k21_down,
> k22_down, k23_down, k24_down, k25_down, k26_down,
> k27_down, k28_down, k29_down, k30_down, k31_down, k34_down, k35_down,
> k36_down, k37_down, k38_down, k39_down, k40_down, k42_down, k44_down,
> dns_down }
> queue std_down bandwidth 10Kb hfsc (default)
> queue a2_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit 3Mb)
> priority 2
> queue a3_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit 3Mb)
> priority 2
> queue a4_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit 4Mb)
> priority 2
> queue a5_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit 4Mb)
> priority 2
> queue a6_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit 4Mb)
> priority 2
> queue a7_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit 2Mb)
> priority 2
> queue a8_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 512Kb) priority 2
> queue a12_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit 4Mb)
> priority 2
> queue k20_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 512Kb) priority 3
> queue k21_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit 2Mb)
> priority 3
> queue k22_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 512Kb) priority 3
> queue k23_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 512Kb) priority 3
> queue k24_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 512Kb) priority 3
> queue k25_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 512Kb) priority 3
> queue k26_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 512Kb) priority 3
> queue k27_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 768Kb) priority 3
> queue k28_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 512Kb) priority 3
> queue k29_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 512Kb) priority 3
> queue k30_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit 1Mb)
> priority 3
> queue k31_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit 1Mb)
> priority 3
> queue k34_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit 1Mb)
> priority 3
> queue k35_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 512Kb) priority 3
> queue k36_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit 1Mb)
> priority 3
> queue k37_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 512Kb) priority 3
> queue k38_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 640Kb) priority 3
> queue k39_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 512Kb) priority 3
> queue k40_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 640Kb) priority 3
> queue k42_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 512Kb) priority 3
> queue k44_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit 1Mb)
> priority 3
> queue dns_down bandwidth 100Kb hfsc (realtime 100Kb upperlimit
> 128Kb) priority 7
> queue local_in hfsc bandwidth 95Mb
>
> komunikat jest taki, że brakuje "rodzica":
> # pfctl -f /etc/pf.conf.nowe
> /etc/pf.conf.nowe:59: syntax error
> /etc/pf.conf.nowe:60: queue std_down has no parent
> /etc/pf.conf.nowe:60: errors in queue definition
> /etc/pf.conf.nowe:61: queue a2_down has no parent
> /etc/pf.conf.nowe:61: errors in queue definition
> /etc/pf.conf.nowe:62: queue a3_down has no parent
> /etc/pf.conf.nowe:62: errors in queue definition
> /etc/pf.conf.nowe:63: queue a4_down has no parent
> /etc/pf.conf.nowe:63: errors in queue definition
> /etc/pf.conf.nowe:64: queue a5_down has no parent
> /etc/pf.conf.nowe:64: errors in queue definition
> /etc/pf.conf.nowe:65: queue a6_down has no parent
> /etc/pf.conf.nowe:65: errors in queue definition
> /etc/pf.conf.nowe:66: queue a7_down has no parent
>
wystarczy ze z 59 linijki usuniesz drugie slowo queue
Technical Details
Message-ID:
<h80a9j$kbb$1@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mailReferences:
<h7p524$6i4$1@nemesis.news.neostrada.pl> <h7qv4g$lp2$1@news.onet.pl> <h7u0h0$qes$1@atlantis.news.neostrada.pl> <h7u5fu$nsd$1@news.onet.pl> <h7u91a$f1b$1@atlantis.news.neostrada.pl> <1oqcpwo3930px.dlg@torpi.slimaczek.pl> <h8084t$mk6$1@nemesis.news.neostrada.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail From: "mlotek" <mlotek@buziaczek.pl> Newsgroups: pl.comp.os.bsd Subject: Re: [openbsd] PF i pominiecie polaczenia w kolejkowaniu Date: Sun, 6 Sep 2009 14:34:57 +0200 Organization: http://onet.pl Lines: 125 Message-ID: <h80a9j$kbb$1@news.onet.pl> References: <h7p524$6i4$1@nemesis.news.neostrada.pl> <h7qv4g$lp2$1@news.onet.pl> <h7u0h0$qes$1@atlantis.news.neostrada.pl> <h7u5fu$nsd$1@news.onet.pl> <h7u91a$f1b$1@atlantis.news.neostrada.pl> <1oqcpwo3930px.dlg@torpi.slimaczek.pl> <h8084t$mk6$1@nemesis.news.neostrada.pl> NNTP-Posting-Host: 77.87.0.22 Mime-Version: 1.0 X-Trace: news.onet.pl 1252240499 20843 77.87.0.22 (6 Sep 2009 12:34:59 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Sun, 6 Sep 2009 12:34:59 +0000 (UTC) In-Reply-To: <h8084t$mk6$1@nemesis.news.neostrada.pl> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6002.18005 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit