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

Language:
English Edit question
Status:
Solved
For:
Ubuntu squid Edit question
Assignee:
No assignee Edit question
Solved by:
Shanmuhanathan T
Solved:
2008-10-10
Last query:
2008-10-10
Last reply:
2008-10-08
Shanmuhanathan T (shanmuha) said : #1

Hi,
You can achieve this with wondershaper.
See this tutorial for further information:
http://ubuntuforums.org/archive/index.php/t-25911.html

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

Hi,
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:
http://manpages.ubuntu.com/manpages/dapper/man8/tc.html
http://tcng.sourceforge.net/
https://wiki.edubuntu.org/Tcng

Regards!

Nay Myo Win (nmwin) said : #4

brother,

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

Hi,
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:
http://ubuntulinuxhelp.com/speed-up-and-improve-web-surfing-with-an-ubuntu-squid-server/ (this guy has had the same problem as you and he gives his solution to it)
http://www.ubuntugeek.com/how-to-setup-transparent-squid-proxy-server-in-ubuntu.html (this is for transparent proxying)

Once you are comfortable using squid on one single machine, you can refer to http://quark.humbug.org.au/publications/squid/aclsquid.html (using ACL and delay pools together).

Regards,
Shanmu.

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