raab
March 30th, 2005, 06:59
I was wondering if someone had a clear cut, working, altq example.. I've looked at all the howtos I can find and most are confusing and/or aren't much use as to what I actually want to achieve with traffic shaping.
Basically what I want to do is be able to, when I feel like it, uncomment the altq code reload the pf.conf file and have the shaping take effect once i kill their connection..
I want to be able to limit a certain ip and/or port to a specific speed like 50Kbits/s or there abouts..
I tried:
altq on $ext_if cbq bandwidth 2Mb queue { std, bt }
queue std bandwidth 2Mb cbq(default)
queue bt bandwidth 6Kb
and
pass in on $ext_if proto tcp from any to any port 21 queue bt
But that didn't appear to work at all, I tried without the port 21 there and nothing either..
Can anyone help? I have a flatmate that constantly leeches things from bittorrent and I would like some bandwidth left over without placing a block rule on him..
Basically what I want to do is be able to, when I feel like it, uncomment the altq code reload the pf.conf file and have the shaping take effect once i kill their connection..
I want to be able to limit a certain ip and/or port to a specific speed like 50Kbits/s or there abouts..
I tried:
altq on $ext_if cbq bandwidth 2Mb queue { std, bt }
queue std bandwidth 2Mb cbq(default)
queue bt bandwidth 6Kb
and
pass in on $ext_if proto tcp from any to any port 21 queue bt
But that didn't appear to work at all, I tried without the port 21 there and nothing either..
Can anyone help? I have a flatmate that constantly leeches things from bittorrent and I would like some bandwidth left over without placing a block rule on him..