aquaballoon

Webmin-HTB module

May 24th, 2012
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.97 KB | None | 0 0
  1. # http://blog.carlosgomez.net/2009/10/traffic-shaping-on-linux-ubuntu-or-red.html
  2.  
  3. ***Install the HTB.init script
  4.  
  5. wget http://downloads.sourceforge.net/project/htbinit/HTB.init/0.8.5/htb.init-v0.8.5?use_mirror=voxel
  6.  
  7. cp htb.init-v0.8.5 /etc/init.d/htb.init
  8.  
  9. ***Install the DAG::Tree perl library
  10. cpan -i Tree::DAG_Node or,
  11. apt-get install libtree-dagnode-perl
  12.  
  13. ***Install the webmin module itself
  14. cd /usr/share/webmin
  15. wget http://sehier.fr/webmin-htb/webmin-htb.tar.gz
  16. tar -zxvf webmin-htb.tar.gz
  17. #This creates a "htb" directory with all needed files in it.
  18. Or,
  19. Go Webmin ---> Webmin Configuration --> Webmin Modules
  20. on Third Party Module : http://sehier.fr/webmin-htb/webmin-htb.tar.gz
  21. and Install it.
  22.  
  23. ***Confirurate htb
  24. mkdir /etc/sysconfig/htb
  25. cp htb /etc/sysconfig/htb
  26.  
  27. cd /etc/sysconfig/htb
  28. nano eth0
  29. DEFAULT=30
  30. R2Q=100
  31.  
  32. nano eth0-2.root
  33. RATE=100Kbit
  34. *root class containing outgoing bandwidth
  35.  
  36. /etc/init.d/htb.init start
  37.  
  38. /etc/init.d/htb.init stats
Advertisement
Add Comment
Please, Sign In to add comment