[Asterisk-Users] VOIP CBQ BandLimit HELP!!

joachim zoachien at securax.org
Tue Jun 1 02:44:40 MST 2004


Daniel,

Do you have a working firewall ruleset for HTB, optimized for voip ?

Joachim. (Zoa)




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


More information about the asterisk-users mailing list