how to configure webproxy in ubuntu

Asked by Nay Myo Win on 2008-10-07

i m using hardy. i would like to configure webproxy on it. i would like to set download limit for users by means of their IP. what do i do??

Question information

English Edit question
Ubuntu squid Edit question
No assignee Edit question
Solved by:
Shanmuhanathan T
Last query:
Last reply:
Shanmuhanathan T (shanmuha) said : #1

You can achieve this with wondershaper.
See this tutorial for further information:

Shanmuhanathan T (shanmuha) said : #2

Sorry, it helps you in achieveing bandwith shaping by limiting any internet connection speed thorugh your box. Not sure if it can solve your problem.

Shanmuhanathan T (shanmuha) said : #3

I think tc/tcng will help you with this problem. tc is a part of iproutes package and tcng is a separate package.

For more information:


Nay Myo Win (nmwin) said : #4


first of all, i tried to start squid. by typing /etc/inid.d/squid start and it said started.

from that time, i can't use internet. my update manager doesn't work and
i tried /etc/init.d/squid stop and it said it stopped and but internet not working again.

so i decided to do complete removal from Sympatic package manager. and restart machine.

now i got internet again.

can't i temporally disable?? coz i m learning how to configure in squid coz i have never used it before.

btw, i have installed wondershaper and i dont know how to open that. i m just now finding to read from /usr/share/doc/wondershaper.

Best Shanmuhanathan T (shanmuha) said : #5

Please ignore my earlier answers(they relate to bandwidth limiting). If you need plain download limiting (based on data sent/received during connecting to internet) then squid will solve your problem.

To get up and running with squid on ubuntu, the below two links will help you: (this guy has had the same problem as you and he gives his solution to it) (this is for transparent proxying)

Once you are comfortable using squid on one single machine, you can refer to (using ACL and delay pools together).


Nay Myo Win (nmwin) said : #6

Thanks Shanmuhanathan T, that solved my question.

Nay Myo Win (nmwin) said : #7

thanks shanmu i will try. i can't say for sure it will help or not