![]() |
|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
![]()
Hi guys!
I'm new to OpenBSD but i try to do my best to master this OS and its features. ![]() I have a router which does the shaping to my users. Now it runs Slackware Linux and works very well, but I have an idea to set it using OpenBSD. ![]() I've read carefully an OpenBSD's PF faq, but still have 2 questions. (NOTE: I don't write here some details, like default queue or macroses, because it's not so importnat here) 1. As I create the root queue of 2 mbit/s and have 30 users, 256 kbit/s each, I wrote this: Code:
altq on $int_if cbq bandwidth 2Mb queue {pc2, pc3, pc4 ....... pc31} queue pc2 $int_if bandwidth 256Kb cbq queue pc3 $int_if bandwidth 256Kb cbq queue pc4 $int_if bandwidth 256Kb cbq ... queue pc30 $int_if bandwidth 256Kb cbq pass out on $int_if from any to $pc2 queue pc2 pass out on $int_if from any to $pc3 queue pc3 pass out on $int_if from any to $pc4 queue pc4 ... pass out on $int_if from any to $pc31 queue pc31 2 question. Is it possible to make this ruleset smaller? Or I have to write a line for each queue name and then - for each IP , to assign a queue to it ? Say, I will not write many lines - a line for each IP, bit if I'll use '10.84.27.0/24' - will the queue be assigned to ALL subnet, or PF will understand my desire to allocate the bandwidth to each IP of this subnet? Quote:
I had the same question while writing the shaping rules in Linux, but didn't find anything and wrote a ruleset with an 'IP rule per line'. PS: sorry for my English, I'm not a native speaker ![]() Last edited by Lexus45; 4th September 2010 at 08:33 AM. |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PF w/ ALTQ - Queue errors exceeding bandwidth | plexter | OpenBSD Security | 11 | 26th October 2008 12:01 AM |
PF/ALTQ rules not working as intended | Weaseal | FreeBSD Security | 4 | 6th August 2008 12:41 PM |
ALTQ Question regarding | RudiK | FreeBSD Security | 4 | 23rd July 2008 01:59 PM |
[PF] Problem with ftp and ALTQ | gotian | FreeBSD Security | 1 | 22nd July 2008 11:25 PM |
Queuing with PF and ALTQ | Weaseal | FreeBSD Security | 1 | 22nd July 2008 05:18 PM |