ALTQ + CBQ -> http & ftp

Gilberto Villani Brito linux at giboia.org
Tue Jul 3 18:35:24 UTC 2007


On 03/07/07, Andrei Manescu <andrei.manescu at clicknet.ro> wrote:
> Hello everyone.
>
> Probabily this is not the first email on this topic, so I'll be brief:
> I have the following queues:
>
> altq on xl0 cbq bandwidth 5000Kb queue { def, ftp, http, ssh, icmp, ack }
> queue ack bandwidth 50Kb priority 7 cbq(borrow)
> queue ssh bandwidth 50Kb priority 6 { ssh_login, ssh_bulk }
>     queue ssh_login bandwidth 25% priority 6 cbq(borrow)
>     queue ssh_bulk bandwidth 75% priority 5 cbq(borrow)
> queue http bandwidth 4000Kb priority 5 cbq
> queue ftp bandwidth 390Kb priority 2 cbq(borrow)
> queue def bandwidth 500Kb priority 1 cbq(default)
> queue icmp bandwidth 10Kb priority 0 cbq
> ... and these rules for http & ftp traffic:
>
> pass in log-all quick on $ext_if1 proto tcp from any to <jails> port {80, 8080} flags S/SA synproxy state queue http
>
> pass in log quick on $ext_if1 proto tcp from any to <jails> port ftp flags S/SA synproxy state
> pass out log-all quick on $ext_if1 proto {tcp,udp} from $external_addr1 \
> to any port 65530:65534 flags S/SA keep state queue ftp
>
> The thing is that ftp is in passive mode and when there is traffic both on http & ftp each type of transfer has ~50% of the bandwidth, so the higher priority from http queue doesn't apply at all.
>
> Has anyone some suggestion for the rules above ?
>
> Thank you in advance for your pacience and wisdom :)
>
> Andrei.
> _______________________________________________
> freebsd-pf at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-pf
> To unsubscribe, send any mail to "freebsd-pf-unsubscribe at freebsd.org"
>

How much is the traffic each connection??


-- 
Gilberto Villani Brito
System Administrator
Londrina - PR
Brazil
gilbertovb(a)gmail.com


More information about the freebsd-pf mailing list