[FUG-BR] ALTQ e pf
Márcio Luciano Donada
mdonada em gmail.com
Terça Julho 28 17:35:06 BRT 2009
Giancarlo Rubio escreveu
> Vc tem certeza que seu pf esta ativo e com suporte a ALTQ?
>
> pfctl -nf /etc/pf.conf nao deveria retornar erros
> pfctl -e (para habilita-lo)
>
Sim, absoluta:
pfctl -sa|more
FILTER RULES:
pass in on sis0 inet proto tcp from any to any port = smtp flags S/SA
keep state queue www_int
pass in on sis0 inet proto tcp from any to any port = http flags S/SA
keep state queue www_int
pass in on sis0 inet proto tcp from any to any port = https flags S/SA
keep state queue www_int
pass in on sis0 inet proto tcp from any to any port = 8000 flags S/SA
keep state queue www_int
pass in on sis0 inet proto tcp from any to any port = 8080 flags S/SA
keep state queue www_int
pass in on sis0 inet proto tcp from any to any port = ias-2 flags S/SA
keep state queue sistema
pass in on sis0 inet proto tcp from any to any port = ias flags S/SA
keep state queue sistema
pass out quick on sis0 inet proto tcp from any to any port = ias-2 flags
S/SA keep state queue sistema
pass out quick on sis0 inet proto tcp from any to any port = ias flags
S/SA keep state queue sistema
ALTQ:
queue root_sis0 on sis0 bandwidth 1Mb priority 0 cbq( wrr root ) {std,
sistema, mail, ssh, www_int}
queue std on sis0 bandwidth 40Kb cbq( default )
queue sistema on sis0 bandwidth 510Kb priority 2 cbq( red borrow )
queue mail on sis0 bandwidth 100Kb priority 0 cbq( red ecn borrow )
queue ssh on sis0 bandwidth 50Kb cbq( borrow )
queue www_int on sis0 bandwidth 300Kb cbq( borrow )
queue root_xl0 on xl0 bandwidth 1Mb priority 0 cbq( wrr root ) {std_in,
sistema_in, mail_in, ssh_in, www_in}
queue std_in on xl0 bandwidth 40Kb cbq( default )
queue sistema_in on xl0 bandwidth 510Kb priority 2 cbq( red borrow )
queue mail_in on xl0 bandwidth 100Kb priority 0 cbq( red ecn borrow )
queue ssh_in on xl0 bandwidth 50Kb cbq( borrow )
queue www_in on xl0 bandwidth 300Kb cbq( borrow )
kernel:
device pf
device pflog
device pfsync
device if_bridge
options ALTQ
options ALTQ_CBQ
options ALTQ_RED
options ALTQ_RIO
options ALTQ_HFSC
options ALTQ_CDNR
options ALTQ_PRIQ
options ALTQ_NOPCC
options ALTQ_DEBUG
Mais detalhes sobre a lista de discussão freebsd