<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE type=text/css>LI {
        DISPLAY: list-item; MARGIN: 0in
}
P {
        DISPLAY: block; MARGIN: 0in
}
BODY {
        
}
</STYLE>
</HEAD>
<BODY>
<DIV><SPAN class=437135318-02062004><FONT face=Arial size=1>IAX2 does not use
RTP, and is fixed to port 4569 so the script works. Whereas SIP uses RTP and the
RTP port is dynamicalyy allocated. Port 5060 is used only for signalling not
media. </FONT></SPAN></DIV>
<DIV><SPAN class=437135318-02062004><FONT face=Arial
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=437135318-02062004><FONT face=Arial size=1>There are ways of
forcing RTP on specific ports, I will let others comment on that as I have no
first hand experiance of that. </FONT></SPAN></DIV>
<DIV><SPAN class=437135318-02062004><FONT face=Arial
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=437135318-02062004><FONT face=Arial
size=1>Umar.</FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
asterisk-users-admin@lists.digium.com
[mailto:asterisk-users-admin@lists.digium.com]<B>On Behalf Of </B>Carlos
Arnt<BR><B>Sent:</B> 01 June 2004 05:07<BR><B>To:</B>
asterisk-users@lists.digium.com<BR><B>Subject:</B> Re: [Asterisk-Users] VOIP
CBQ BandLimit HELP!!<BR><BR></FONT></DIV>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'">That's
great.</SPAN></P>
<P> </P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'">Maybe i will ask a
nonsense question.</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'">Let go then
:</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'">Sip uses RTP right ?
So open a SIP channel 5060 i have alot of RTP packets .</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'">Did i don't need mark
this RTP packets too ?? </SPAN></P>
<P> </P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'">I mean IAX2 use RTP
? In you script i see that i MARK IAX2 then i can control the rate and
give</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'">to my VOIP connection
more priority then the other services, (Web,Mail,FTP etc), always making the
voip connection the best possible.</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'">That's great,
awesome!</SPAN></P>
<P> </P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'">But in your script ?
If i change this : </SPAN></P>
<P> </P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'"> iptables -t
mangle ${IPTOP} PREROUTING -p udp -m udp --dport 4569 -</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'"> j MARK
--set-mark 0x1</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'"> iptables -t
mangle ${IPTOP} PREROUTING -p udp -m udp --dport 4569 -</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'"> j
RETURN</SPAN></P>
<P> </P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'">to this ?</SPAN></P>
<P> </P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'"> iptables -t
mangle ${IPTOP} PREROUTING -p udp -m udp --dport 5060 -</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'"> j MARK
--set-mark 0x1</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'"> iptables -t
mangle ${IPTOP} PREROUTING -p udp -m udp --dport 5060 -</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'"> j
RETURN</SPAN></P>
<P> </P>
<P><SPAN style="FONT-SIZE: 10pt">All my SIP connections will receive now the
best priority in the link ??</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt">Sorry the question again but and the RTP
packets ???</SPAN></P>
<P> </P>
<P><SPAN style="FONT-SIZE: 10pt">Can with this script give from my link 512up
and 512down 90% to Voip when used and let the rest (Web,FTP,Mail), with the
rest 10%, so when the VoIP finish give more to the others
services???</SPAN></P>
<P> </P>
<P><SPAN style="FONT-SIZE: 10pt">Anyway thanks alot for the answer
!</SPAN></P>
<P> </P>
<P><SPAN style="FONT-SIZE: 10pt">Carlos.</SPAN></P>
<P> </P>
<P><SPAN style="FONT-SIZE: 10pt"><BR><BR>On Tue, 1 Jun 2004 09:30:29 -0400,
Andrew Kohlsmith wrote:<BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> On Tuesday 01 June 2004 05:44,
joachim wrote:</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: maroon">>> Do you have a working firewall
ruleset for HTB, optimized for</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: maroon">>> voip ?</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: maroon">>></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> Here, for your viewing pleasure, is
my htb script. I am *positive*</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> it can be improved upon. I
found I had to put the bulk traffic in</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> a separate HTB "branch" or otherwise
it would tend to borrow from</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> the VOIP branch way too early and
cause a lot of stutter.</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> Again, this isn't to be taken as an
official, proven and perfect</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> system. I am welcome to any
suggestions or improvements. As you</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> can see from the diagram I am
planning on doing some more fine</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> tuning, but it works pretty damned
well as is. My next post will</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> be the Cisco 2610's configuration on
the other side of the link.</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> Regards,</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> Andrew</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> #!/bin/sh</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> TCOP="add"</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> IPTOP="-A"</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> if [ "$1" == "stop" ];
then</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> echo "Stopping..."</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> TCOP="del"</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> IPTOP="-D"</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> fi</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> #
+---------+</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> #
| root 1: |</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> #
+---------+</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> #
|</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> #
+----------------------------+</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # |
class 1:1 |</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> #
+----------------------------+</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # |
| |</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # +----+ +----+
+----+</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # |1:10| |1:20|
|1:30|</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # +----+ +----+
+----+</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> #
|</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> #
+--------+--------+</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # |
| |</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # +-----+ +-----+
+-----+</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # |1:100| |1:101|
|1:102|</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # +-----+ +-----+
+-----+</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # 1:10 is the class for VOIP
traffic, pfifo qdisc</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # 1:20 is for bulk traffic (htb,
leaves use sfq)</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # 1:30 is the class that interactive
and TCP SYN/ACK traffic (sfq</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> qdisc)</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # 1:20 is further split up into
different kinds of bulk traffic:</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> web, mail and # everything else.
1:100-102 fight amongst</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> themselves for their slice of
excess</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # bandwidth, and in turn 1:10,20 and
30 then fight for any excess</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> above their # minimum
rates.</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # which interface to throw all this
on (DSL)</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> IF=eth2</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # ciel is 75% of max rate
(768kbps)</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # rate is 65% of max
rate</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # we don't let it go to 100% because
we don't want the DSL modems</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> to have a ton</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # of packets in their buffers.
*we* want to do the buffering.</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> RATE=576</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> CEIL=640</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> #RATE=450</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> #CEIL=500</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> tc qdisc ${TCOP} dev ${IF} root
handle 1: htb default 102</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> tc class ${TCOP} dev ${IF} parent 1:
classid 1:1 htb rate</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> ${RATE}kbit ceil
${CEIL}kbit</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> tc class ${TCOP} dev ${IF} parent
1:1 classid 1:10 htb rate 64kbit</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> ceil ${RATE}kbit prio 1</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> tc class ${TCOP} dev ${IF} parent
1:1 classid 1:20 htb rate 64kbit</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> ceil ${RATE}kbit prio 2</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> tc class ${TCOP} dev ${IF} parent
1:20 classid 1:100 htb rate</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> ${RATE}kbit tc class ${TCOP} dev
${IF} parent 1:20 classid 1:101</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> htb rate ${RATE}kbit tc class
${TCOP} dev ${IF} parent 1:20 classid</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> 1:102 htb rate
${RATE}kbit</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> tc qdisc ${TCOP} dev ${IF} parent
1:10 handle 10: pfifo</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> tc qdisc ${TCOP} dev ${IF} parent
1:100 handle 100: sfq perturb 10</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> tc qdisc ${TCOP} dev ${IF} parent
1:101 handle 101: sfq perturb 10</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> tc qdisc ${TCOP} dev ${IF} parent
1:102 handle 102: sfq perturb 10</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> tc filter ${TCOP} dev ${IF} parent
1:0 protocol ip prio 1 handle 1</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> fw classid 1:10</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> tc filter ${TCOP} dev ${IF} parent
1:0 protocol ip prio 4 handle 4</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> fw classid 1:100</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # IAX2 prio 0.</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> iptables -t mangle ${IPTOP}
PREROUTING -p udp -m udp --dport 4569 -</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> j MARK --set-mark 0x1</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> iptables -t mangle ${IPTOP}
PREROUTING -p udp -m udp --dport 4569 -</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> j RETURN</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> # everything else goes into lowest
priority (best effort).</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> iptables -t mangle ${IPTOP}
PREROUTING -j MARK --set-mark 0x4</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> iptables -t mangle ${IPTOP} OUTPUT
-j MARK --set-mark 0x4</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">>
_______________________________________________</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> Asterisk-Users mailing
list</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">>
Asterisk-Users@lists.digium.com</SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> <A
href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> To UNSUBSCRIBE or update options
visit:</SPAN><SPAN style="FONT-SIZE: 10pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy">> <A
href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A></SPAN><SPAN
style="FONT-SIZE: 10pt"><BR><BR></SPAN></P>_______________________________________________
Asterisk-Users mailing list Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or
update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users</BLOCKQUOTE></BODY></HTML>