--- Nikolay Kalev <[EMAIL PROTECTED]> wrote:
> Tihomir Koychev wrote:
> 
> >--- Nikolay Kalev <[EMAIL PROTECTED]> wrote:
> >  
> >
> >>Can please anyone tell me if this is posible or
> not
> >>:
> >>I have several users behind a firewall + nat and i
> >>have to accomplish
> >>3 types of shaping per user :
> >>local country shape, internet shape, and upload
> >>shape
> >> Is this posible or not with altq. I know for sure
> >>that inbound and
> >>outbound can be done but i;m not sure that i can
> >>separate 2 diferent
> >>tipes of inbound. Please put sum examples if
> >>possible. Thanks in
> >>advance
> >>
> >>-- 
> >>Key fingerprint = 9864 E575 E207 FB90 44C8  26A2
> >>0167 E57E 66ED 0F1D
> >>
> >>    
> >>
> >
> >Yes, you can.
> >Just assign queue to you filter rule.upload queue
> must
> >be assign on your $ext_if.
> >example:
> >
> >table <local_country> persist file
> "/etc/bulgaria.pf"
> >
> >pass out on $int_if from any to ip.client1 queue
> >local_country
> >pass out on $int_if from <local_country> to
> ip.client1
> >queue local_country
> >
> >look at "/usr/share/pf" for examples and
> >man 5 pf.conf
> >
> >
> >Unix is very simple, but it takes a genius to
> understand the simplicity.
> >(Dennis Ritchie)
> >Key fingerprint=2499 DE87 82ED 23A8 FD20 3078 04FE
> 610E 300D 6655
> >
> >
> >             
> >__________________________________ 
> >Do you Yahoo!? 
> >Plan great trips with Yahoo! Travel: Now over
> 17,000 guides!
> >http://travel.yahoo.com/p-travelguide
> >
> >  
> >
> Ok but as soon as i tested it i can;t get one client
> to be in 2 diferent 
> queues for example cbq algoritm one with smaller bw
> and one with bigger ?
> 

pass out on $int_if from any to ip.client1 queue
small_queue
pass out on $int_if from <local_country> to
ip.client1 queue big_queue

This two rules are just example.When packet arrive
from internet and its distenation is ip.client1 pf
evaluate it.1-st rule is allways applied, so this is
default rule.2-nd rule is applied only when packets
source is within <local_country> table.
Note that "last matching rule win!"

again there are queue examples about Boss's and
devolopers in \use\share\pf

if you want complete pf.conf mail me

bye



Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
Key fingerprint=2499 DE87 82ED 23A8 FD20 3078 04FE 610E 300D 6655


                
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs

Reply via email to