QoS

lycanthrope lycanthrope at post.htnet.hr
Mon Jul 12 16:06:46 PDT 2004


hello
I made use of pipes,dummynet and queues. now,I would like someone to tell me
how to improve my rules:
I want priority like this: news&smtp, http, the rest
can you tell me whether this rules are ok? what to improve, change?


thank you!


RULES:

#ADSL is max 384/64
ipfw pipe 1 config bw 350kbits/s
ipfw pipe 2 config bw 60kbits/s

#news
ipfw queue 1 config pipe 1 weight 15
#smtp
ipfw queue 2 config pipe 1 weight 15
#http
ipfw queue 3 config pipe 1 weight 8
#the rest
ipfw queue 4 config pipe 1 weight 3

#OUTGOING traffic
ipfw queue 5 config pipe 2 weight 15
ipfw queue 6 config pipe 2 weight 7

#outgoing
ipfw add 10 queue 5 icmp from 192.168.2.0/24 to any out xmit via tun0
ipfw add 20 queue 6 ip from 192.168.2.0/24 to any out xmit via tun0
ipfw add 30 queue 5 icmp from 192.168.5.18/32 to any out xmit via tun0
ipfw add 40 queue 6 ip from 192.168.5.18/32 to any out xmit via tun0

#incoming to 2.0 subnet (one NIC)
ipfw add 100 queue 1 ip from any to 192.168.2.0/24 119 in via tun0
ipfw add 110 queue 2 ip from any to 192.168.2.0/24 25 in via tun0
ipfw add 120 queue 3 ip from any to 192.168.2.0/24 80 in via tun0
ipfw add 130 queue 4 ip from any to 192.168.2.0/24 in via tun0


#incoming to only one machine on another subnet (other NIC)
ipfw add 200 queue 1 ip from any to 192.168.5.18/32 119 in via tun0
ipfw add 210 queue 2 ip from any to 192.168.5.18/32 25 in via tun0
ipfw add 220 queue 3 ip from any to 192.168.5.18/32 80 in via tun0
ipfw add 230 queue 4 ip from any to 192.168.5.18/32 in via tun0




----- Original Message -----
From: "Roman Kurakin" <rik at cronyx.ru>
To: "lycanthrope" <lycanthrope at post.htnet.hr>
Cc: <freebsd-net at freebsd.org>
Sent: Monday, July 12, 2004 5:52 PM
Subject: Re: QoS


> Hi,
>
> man ipfw
> I think pipes is what you need.






More information about the freebsd-net mailing list