Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 2004 01:05:06 +0200
From:      "lycanthrope" <lycanthrope@post.htnet.hr>
To:        "Roman Kurakin" <rik@cronyx.ru>
Cc:        freebsd-net@freebsd.org
Subject:   Re: QoS
Message-ID:  <000d01c46864$ac9a7b00$1205a8c0@jkhahhytncost7>
References:  <001501c46826$ea0f1740$1205a8c0@jkhahhytncost7> <40F2B3D0.8090308@cronyx.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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@cronyx.ru>
To: "lycanthrope" <lycanthrope@post.htnet.hr>
Cc: <freebsd-net@freebsd.org>
Sent: Monday, July 12, 2004 5:52 PM
Subject: Re: QoS


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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000d01c46864$ac9a7b00$1205a8c0>