squid: how to apply changes even downloading files
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
squid: how to apply changes even downloading files
If u config squid to block some users, it's work without any problem, just for new connections.
But if u change config to block another user that is downloading a file, and reconfigure squid, squid can't block it.
In other words, can squid apply new changes to online users (of course without stop squid!)?
Any help appreciated.
If u config squid to block some users, it's work without any problem, just for new connections.
But if u change config to block another user that is downloading a file, and reconfigure squid, squid can't block it.
In other words, can squid apply new changes to online users (of course without stop squid!)?
Any help appreciated.
Spell out your words, please...text-speak isn't appreciated; read the LQ Rules, please.
And no, you obviously can't, since squid has already accepted that users connection, and is running. To kill that session, it needs to be terminated first. You CAN reload the config file, in one of three ways:
/usr/sbin/squid -k reconfigure
/etc/init.d/squid reload
kill -HUP `cat /var/run/squid.pid`
Modify commands as needed, since your squid may be in a different directory, or the PID file may be elsewhere.
Thanks for your reply and of your hint.
It's very bad thing: "squid has already accepted that users connection, and is running".
So i can't manage quota limitation for each users.
Anyway, thank you again.
Thanks for your reply and of your hint.
It's very bad thing: "squid has already accepted that users connection, and is running".
So i can't manage quota limitation for each users.
Anyway, thank you again.
Why is it a 'bad thing' that squid is working exactly like you set it up?? If you want to apply quotas, restrictions, etc., then you will just need to restart the service. The worst thing that's going to happen, is that your users will have an interruption of a few seconds. You can even put the restart into cron, and have it restart itself at night, when no one is using it. Why are either of those bad things?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.