Red Hat Bugzilla – Bug 862252
[PATCH] Squid doesn't reload on VPN up/down, or network down
Last modified: 2012-12-01 03:42:56 EST
Created attachment 620276 [details]
Fix network manager dispatcher
Description of problem:
I use squid to reverse proxy some sites for a local network, some of which are only available over a VPN. If I start squid first, then the VPN, in that order, squid will not be able to access sites over the VPN. However, if I then cause squid to reconfigure it can access sites over the VPN. I assume squid is doing something with DNS caching, but haven't investigated.
I notice squid already has a network manager dispatcher script, but it appears a little unloved. Firstly it still uses /sbin/service. Secondly it only reloads on the "up" event.
The following works for me:
case "$2" in
/bin/systemctl reload squid.service || :
I've attached a patched against rawhide git. This bug is applicable at least to F17, F18 and rawhide.
Version-Release number of selected component (if applicable):
Thank you for your report and patch Matthew.
squid-3.2.3-2.fc18 has been submitted as an update for Fedora 18.
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing squid-3.2.3-2.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
squid-3.2.3-2.fc17 has been submitted as an update for Fedora 17.
squid-3.2.3-2.fc16 has been submitted as an update for Fedora 16.
squid-3.2.3-2.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
squid-3.2.3-2.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.