Sinner
Senior Member
Code:
custom_rates() {
echo "Modifying Class Rates"
${tc} class change dev br0 parent 1:1 classid 1:10 htb ${PARMS}prio 0 rate ${DownRate0}Kbit ceil ${DownCeil}Kbit burst ${DownBurst0} cburst ${DownCburst0}
${tc} class change dev br0 parent 1:1 classid 1:11 htb ${PARMS}prio 1 rate ${DownRate1}Kbit ceil ${DownCeil}Kbit burst ${DownBurst1} cburst ${DownCburst1}
${tc} class change dev br0 parent 1:1 classid 1:12 htb ${PARMS}prio 2 rate ${DownRate2}Kbit ceil ${DownCeil}Kbit burst ${DownBurst2} cburst ${DownCburst2}
${tc} class change dev br0 parent 1:1 classid 1:13 htb ${PARMS}prio 3 rate ${DownRate3}Kbit ceil ${DownCeil}Kbit burst ${DownBurst3} cburst ${DownCburst3}
${tc} class change dev br0 parent 1:1 classid 1:14 htb ${PARMS}prio 4 rate ${DownRate4}Kbit ceil ${DownCeil}Kbit burst ${DownBurst4} cburst ${DownCburst4}
${tc} class change dev br0 parent 1:1 classid 1:15 htb ${PARMS}prio 5 rate ${DownRate5}Kbit ceil ${DownCeil}Kbit burst ${DownBurst5} cburst ${DownCburst5}
${tc} class change dev br0 parent 1:1 classid 1:16 htb ${PARMS}prio 7 rate ${DownRate6}Kbit ceil ${DownCeil}Kbit burst ${DownBurst6} cburst ${DownCburst6}
${tc} class change dev br0 parent 1:1 classid 1:17 htb ${PARMS}prio 6 rate ${DownRate7}Kbit ceil ${DownCeil}Kbit burst ${DownBurst7} cburst ${DownCburst7}
${tc} class change dev eth0 parent 1:1 classid 1:10 htb ${PARMS}prio 0 rate ${UpRate0}Kbit ceil ${UpCeil}Kbit burst ${UpBurst0} cburst ${UpCburst0}
${tc} class change dev eth0 parent 1:1 classid 1:11 htb ${PARMS}prio 1 rate ${UpRate1}Kbit ceil ${UpCeil}Kbit burst ${UpBurst1} cburst ${UpCburst1}
${tc} class change dev eth0 parent 1:1 classid 1:12 htb ${PARMS}prio 2 rate ${UpRate2}Kbit ceil ${UpCeil}Kbit burst ${UpBurst2} cburst ${UpCburst2}
${tc} class change dev eth0 parent 1:1 classid 1:13 htb ${PARMS}prio 3 rate ${UpRate3}Kbit ceil ${UpCeil}Kbit burst ${UpBurst3} cburst ${UpCburst3}
${tc} class change dev eth0 parent 1:1 classid 1:14 htb ${PARMS}prio 4 rate ${UpRate4}Kbit ceil ${UpCeil}Kbit burst ${UpBurst4} cburst ${UpCburst4}
${tc} class change dev eth0 parent 1:1 classid 1:15 htb ${PARMS}prio 5 rate ${UpRate5}Kbit ceil ${UpCeil}Kbit burst ${UpBurst5} cburst ${UpCburst5}
${tc} class change dev eth0 parent 1:1 classid 1:16 htb ${PARMS}prio 7 rate ${UpRate6}Kbit ceil ${UpCeil}Kbit burst ${UpBurst6} cburst ${UpCburst6}
${tc} class change dev eth0 parent 1:1 classid 1:17 htb ${PARMS}prio 6 rate ${UpRate7}Kbit ceil ${UpCeil}Kbit burst ${UpBurst7} cburst ${UpCburst7}
this stuff you don't need to touch at all ever.. these lines use the %'s that are changeable further up.. the only thing you may be interested in changing are the..
Code:
#################### Bandwidth Setup #####################
user_variables() {
#Percent of download speed guaranteed per QOS category, change below as desired (minimum value per section 5, sum should not be greater than 100)
NetControl_DownBandPercent=10 #This value can be adjust as desired ** no spaces before or after the "=" sign **
VoIP_DownBandPercent=10 #This value can be adjust as desired ** no decimals **
Gaming_DownBandPercent=10 #This value can be adjust as desired
Others_DownBandPercent=10 #This value can be adjust as desired #Note: New destination for unidentified traffic
WebSurfing_DownBandPercent=10 #This value can be adjust as desired
Video_DownBandPercent=30 #This value can be adjust as desired
FileTransfer_DownBandPercent=10 #This value can be adjust as desired
Default_DownBandPercent=10 #This value can be adjust as desired #Note: Original destination for unidentified traffic, repurposed for "Gaming Downloads on ports 80/443"
#Percent of upload speed guaranteed per QOS category, change below as desired (minimum value per section 5, sum should not be greater than 100)
NetControl_UpBandPercent=10 #This value can be adjust as desired
VoIP_UpBandPercent=10 #This value can be adjust as desired
Gaming_UpBandPercent=10 #This value can be adjust as desired
Others_UpBandPercent=10 #This value can be adjust as desired #Note: New destination for unidentified traffic
WebSurfing_UpBandPercent=10 #This value can be adjust as desired
Video_UpBandPercent=30 #This value can be adjust as desired
FileTransfer_UpBandPercent=10 #This value can be adjust as desired
Default_UpBandPercent=10 #This value can be adjust as desired #Note: Original destination for unidentified traffic, repurposed for "Gaming Downloads on ports 80/443
adjust those as desired if needed and that's it.