#1  
Old 9th October 2008, 08:34
andron26 andron26 is offline
Member
 
Join Date: Mar 2007
Posts: 52
Thanks: 6
Thanked 1 Time in 1 Post
 
Default QoS on ISPC

Hello,

I have such script for bandwidth managment on ISPC machine, can someone analyze it and tell me if it good? I'm new to bandwidth managment.

tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default 99
tc class add dev eth0 parent 1: classid 1:1 htb rate 3072kbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 384kbit ceil 384kbit prio 0
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 1024kbit ceil 3072kbit prio 1
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 1024kbit ceil 1512kbit prio 2
tc class add dev eth0 parent 1:1 classid 1:13 htb rate 512kbit ceil 1024kbit prio 3
tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev eth0 parent 1:11 handle 11: sfq perturb 10
tc qdisc add dev eth0 parent 1:12 handle 12: sfq perturb 10
tc qdisc add dev eth0 parent 1:13 handle 13: sfq perturb 10
tc filter add dev eth0 parent 1:0 protocol ip u32 match ip sport 22 0xffff classid 1:10
tc filter add dev eth0 parent 1:0 protocol ip u32 match ip sport 80 0xffff classid 1:11
tc filter add dev eth0 parent 1:0 protocol ip u32 match ip sport 110 0xffff classid 1:12
tc filter add dev eth0 parent 1:0 protocol ip u32 match ip sport 25 0xffff classid 1:13
iptables -t mangle -A POSTROUTING -p tcp --sport 22 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -p tcp --sport 80 -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -p tcp --sport 110 -j MARK --set-mark 12
iptables -t mangle -A POSTROUTING -p tcp --sport 25 -j MARK --set-mark 13
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
spamd / spamc with ISPc 2.2.21 jancici Installation/Configuration 18 15th September 2008 18:24
Debian 3.1 to 4.0 Upgrade with ISPC PoleCat Installation/Configuration 3 22nd April 2008 11:04
ISPC move to port 80 on dedicated IP, but now ISPC complains Apache down martinfst Installation/Configuration 3 12th January 2007 08:51
I wanna get aide running on the ISPC apache1.3? tom Installation/Configuration 5 8th May 2006 00:52
Sometimes ISPC hangs up tom Installation/Configuration 3 24th April 2006 20:34


All times are GMT +2. The time now is 20:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.