Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've configured squid3 on my Ubuntu-14.04-x86 server.
I want to limit speed limit for each ip 300kbps (i don't have a list of ips. just want to limit everyone who connects)
I've configured squid3 on my Ubuntu-14.04-x86 server.
I want to limit speed limit for each ip 300kbps (i don't have a list of ips. just want to limit everyone who connects)
We have pointed you out that you have to use delay pools in squid. Now it's up to you to read the documentation and implement it, so squid does what you want.
If the above example doesn't work, check squid logs for errors and use your favorite search engine for a solution, or to find another howto that fits your needs.
Your configuration looks close. However, if you changed that IP SUBNET to your IP ADDRESS then you would only be limiting yourself. You would want to put in a SUBNET which contains the IP ADDRESSES that you want to limit. Ie:
192.168.100.0/24 or 10.0.1.0/23
Also, you changed the pool parameters to 640000, which is far more bandwidth than you think.
Last edited by szboardstretcher; 10-13-2016 at 11:00 AM.
We have pointed you out that you have to use delay pools in squid. Now it's up to you to read the documentation and implement it, so squid does what you want.
If the above example doesn't work, check squid logs for errors and use your favorite search engine for a solution, or to find another howto that fits your needs.
Regards
I read whole doc. I know I'm close but still unable to do it.
Quote:
Originally Posted by szboardstretcher
Your configuration looks close. However, if you changed that IP SUBNET to your IP ADDRESS then you would only be limiting yourself. You would want to put in a SUBNET which contains the IP ADDRESSES that you want to limit. Ie:
192.168.100.0/24 or 10.0.1.0/23
Also, you changed the pool parameters to 640000, which is far more bandwidth than you think.
ah that 640000 just for testing. I can change it anytime.
I want to apply these limits to everyone who connects to my server. I can't specify by ip or subnet. It can be any country. There are tons of subnets.
How could I do that?
I want to apply these limits to everyone who connects to my server. I can't specify by ip or subnet. It can be any country. There are tons of subnets.
How could I do that?
I have never used delay-pools, but I guess you may try the following:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.