<html>
<body>
<br>
Daniel, <br><br>
Do you have a working firewall ruleset for HTB, optimized for voip
?<br><br>
Joachim. (Zoa)<br><br>
<br><br>
<br>
At 10:55 1/06/2004, you wrote:<br>
<blockquote type=cite class=cite cite="">Hi Carlos,<br>
<br>
Try HTB. It is better than CBQ, requires less CPU and have a better
help:<br><br>
<a href="http://luxik.cdi.cz/~devik/qos/htb/">http://luxik.cdi.cz/~devik/qos/htb/</a><br><br>
Daniel<br><br>
Carlos Arnt wrote:<br>
<blockquote type=cite class=cite cite=""><br>
Hi all,<br><br>
<br><br>
Reading about CBQ on internet i can say "I dont understand
well" ;)<br><br>
So anyone that has a good background can help me out with this simple
question ?<br><br>
<br><br>
I just want priorize my UDP packets to always has 90% of my link when use
a VOIP<br><br>
connection with asterisk.<br><br>
<br><br>
My asterisk run in the same machine then my firewall.<br><br>
<br><br>
How then can i :<br><br>
<br><br>
1 - Mark the packets with iptables then i will know TCP and UDP packets
then come in and out<br><br>
2 - Use CBQ to put a prio=1 in the UDP Packets then i will always know
that when a VOIP conn start will<br><br>
always have the best rate of my link.<br><br>
<br><br>
I think i know how mark the packets with the Iptables.<br><br>
<br><br>
iptables -t mangle -A PREROUTING -p tcp -j MARK --set-mark 9000<br><br>
iptables -t mangle -A PREROUTING -p udp -j MARK --set-mark 9002<br><br>
<br><br>
and<br><br>
<br><br>
iptables -t mangle -A OUTPUT -p tcp -j MARK --set-mark 9001<br><br>
iptables -t mangle -A OUTPUT -p udp -j MARK --set-mark 9003<br><br>
<br><br>
I think that i mark all UDP and TCP packets.<br><br>
<br><br>
So i just need use a CBQ RUle (Now it's the worst) <br><br>
Honestly i dont know ..<br><br>
<br><br>
So let's see.<br><br>
<br><br>
DEVICE=eth0,10Mbit,1Mbit<br><br>
RATE=112Kbit<br><br>
WEIGHT=1Kbit<br><br>
MARK=9000<br><br>
<br><br>
etc etc<br><br>
<br><br>
I use an 256kbits(Down) - 128Kbits(Up) ADSL connection<br><br>
<br><br>
Then i have PPP0 and my eth1 for my internet net.<br><br>
<br><br>
Just need put the best priority to all UDP Packets forcing the rest of
services like<br><br>
SMTP/POP3./HTTP etc that use TCP in the low priority<br><br>
<br><br>
Can anyone help me ? Because i think my Voip has a poor quality because
this (Heavy use of mail and http services).<br><br>
<br><br>
Thanks alot for helping out.<br><br>
<br><br>
Carlos<br><br>
<br><br>
<br><br>
I<br>
_______________________________________________ Asterisk-Users mailing
list
<a href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" eudora="autourl">http://lists.digium.com/mailman/listinfo/asterisk-users</a> To UNSUBSCRIBE or update options visit: <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a> </blockquote>_______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" eudora="autourl">http://lists.digium.com/mailman/listinfo/asterisk-users</a> To UNSUBSCRIBE or update options visit: <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" eudora="autourl">http://lists.digium.com/mailman/listinfo/asterisk-users</a> </blockquote></body>
</html>