🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.bsd
Article #20983

Re: [openbsd] PF i pominiecie polaczenia w kolejkowaniu

#20983
From: WebSpider
Date: Sun, 06 Sep 2009 11:48
120 lines
6522 bytes
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

-- 
Pozdrawiam,
Konrad 
Technical Details
Message-ID: <h8084t$mk6$1@nemesis.news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsfeed.neostrada.pl!nemesis.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsfeed.neostrada.pl!nemesis.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
From: "WebSpider" <webs1821@spaaamowe.gmail.com>
Newsgroups: pl.comp.os.bsd
Subject: Re: [openbsd] PF i pominiecie polaczenia w kolejkowaniu
Date: Sun, 6 Sep 2009 13:48:06 +0200
Organization: TP - http://www.tp.pl/
Lines: 121
Message-ID: <h8084t$mk6$1@nemesis.news.neostrada.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>
NNTP-Posting-Host: 83.13.134.126
Mime-Version: 1.0
X-Trace: nemesis.news.neostrada.pl 1252238301 23174 83.13.134.126 (6 Sep 2009 11:58:21 GMT)
X-Complaints-To: usenet@news.neostrada.pl
NNTP-Posting-Date: Sun, 6 Sep 2009 11:58:21 +0000 (UTC)
In-Reply-To: <1oqcpwo3930px.dlg@torpi.slimaczek.pl>
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726
X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit