Project

General

Profile

Actions

Bug #6763

closed

Squid ClamAv wrong redirect URL

Added by Richard Eberhard over 7 years ago. Updated about 7 years ago.

Status:
Not a Bug
Priority:
Normal
Assignee:
-
Category:
Squid
Target version:
-
Start date:
09/05/2016
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
All
Affected Plus Version:
Affected Architecture:

Description

After changing the pfsense hostname the squid proxy still redirects to the old hostname if it finds a virus. I also tried adding a redirect command in the custom squid config: no effect. I'm not the only one with this problem. Ref: https://forum.pfsense.org/index.php?topic=115323.0


Files

1.PNG (10.4 KB) 1.PNG Frank Pineau, 11/29/2016 07:27 PM
3.PNG (20.9 KB) 3.PNG Frank Pineau, 11/29/2016 07:27 PM
2.PNG (9.72 KB) 2.PNG Frank Pineau, 11/29/2016 07:29 PM
Actions #1

Updated by Kill Bill over 7 years ago

Richard Eberhard wrote:

I also tried adding a redirect command in the custom squid config: no effect.

Why? It's configurable in the GUI.

Actions #2

Updated by Kill Bill over 7 years ago

No bug here, let alone "very high" severity, can be closed. This is configurable in the GUI as shown above.

Actions #3

Updated by Jim Pingle over 7 years ago

  • Status changed from New to Not a Bug
  • Priority changed from Very High to Normal
Actions #4

Updated by Richard Eberhard over 7 years ago

Kill Bill wrote:

Richard Eberhard wrote:

I also tried adding a redirect command in the custom squid config: no effect.

Why? It's configurable in the GUI.

This option is not working also.

At first I changed the hostname of the pfsense installation. After that squid still redirected to the OLD hostname.(This is BUG NO. 1) Then I tried to set the "Redirect URL". Squid STILL redirects to the OLD hostname ( BUG NO.2 )

So there is not only one Bug. There are two....

Actions #6

Updated by Kill Bill over 7 years ago

The default URL is set to the pfSense GUI URL on package install. Simply because that's the only sensible default. There is no hook anywhere to make the package discover that you all of a sudden have decided to change your hostname. When you change the hostname, kindly do your job properly and do it everywhere as required.

Actions #7

Updated by Kill Bill over 7 years ago

And as for "the GUI does nothing":

$ grep "redirect http" /usr/local/etc/c-icap/squidclamav.conf
redirect https://gw.testnet.local/squid_clwarn.php


$ grep "redirect http" /usr/local/etc/c-icap/squidclamav.conf
redirect http://proxy.example.com/blocked.html

After making it empty yet again:

$ grep "redirect http" /usr/local/etc/c-icap/squidclamav.conf
redirect https://gw.testnet.local/squid_clwarn.php
Actions #8

Updated by Frank Pineau over 7 years ago

I'm seeing the same redirect behavior. I can confirm that changing the GUI does update the squidclamav.conf file as indicated, but I'm still redirected to the original URL when testing with EICAR. You can see a sample browser window in the third image. I did not change my host name, I'm just trying to redirect to another server (using the word "flooby" as a placeholder for the other server URL)



Actions #9

Updated by Richard Eberhard over 7 years ago

Frank Pineau wrote:

I'm seeing the same redirect behavior.

Exact my problem.

So please reopen the issue. @Kill Bill

Actions #10

Updated by Roma Golbraich about 7 years ago

Solution:
when I installed pfSense with all packages I use, I gave it a domain name.
After some while, I changed the domain name to my DC, somehow SquidClamAV keeps the old data so I get pointed to unavailable address.
To fix this issue I edited 2 files: (Diagnostics - Edit File)
/usr/local/etc/c-icap/squidclamav.conf
/usr/local/etc/c-icap/squidclamav.conf.pfsense

  • Why them both? because every time I edited the .conf file my settings get back to what it was. after changing them both pfSense kept the configuration and problem were fixed.
Actions

Also available in: Atom PDF