LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-16-2014, 04:33 AM   #1
ele2a
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
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.
 
Old 04-16-2014, 11:09 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ele2a View Post
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.

Last edited by TB0ne; 04-16-2014 at 11:12 AM.
 
Old 04-17-2014, 12:11 AM   #3
ele2a
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
Old 04-17-2014, 10:41 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ele2a View Post
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to apply delay pools on squid? gardenair Linux - Networking 1 03-08-2011 05:47 AM
Using squid to apply download limit on users on LAN doode31 Linux - Server 2 01-12-2009 06:35 AM
How to apply a squid patch installed from rpm Niceman2005 Linux - Software 3 08-08-2008 09:13 PM
To apply acl for two diffrent user,group in RHEL5,Squid 2.6 mbnaik Linux - Enterprise 0 10-01-2007 10:27 AM
In SQUID - Block all websites but a couple - but only apply to a particular IP range shifflav Linux - Networking 1 08-07-2007 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration