Project

General

Profile

Bug #868

transparent Squid breaks captive portal

Added by Chris Buechler about 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Squid
Target version:
-
Start date:
09/01/2010
Due date:
% Done:

0%

Estimated time:
Affected Version:
Affected Architecture:

Description

Squid's transparent redirect breaks captive portal.

History

#1 Updated by Erik Fonnesbeck about 9 years ago

The issue is likely that the two are competing for trying to redirect connections going to port 80 and the squid package is the one that gets the redirect.

It may need a redirect in ipfw that catches attempts to access squid by systems that are not logged into the captive portal.

#2 Updated by Chris Buechler about 9 years ago

The ipfw fwd gets hit, but I believe after that it gets hit by the pf rdr for Squid. A 'no rdr' for traffic destined to the interface IP (even manually entered as a user rule if the ordering suffices) would probably fix.

#3 Updated by Burkart Orlowski about 9 years ago

I had the same problem and found a workaround.

Edit the following line in /usr/local/captiveportal/index.php
$ourhostname = „{$ifip}:8000“; ändern in $ourhostname = „<IP pfsense>:8000“;

Then it should work fine again.

#4 Updated by Burkart Orlowski about 9 years ago

Burkart Orlowski wrote:

I had the same problem and found a workaround.

Edit the following line in /usr/local/captiveportal/index.php
$ourhostname = „{$ifip}:8000“; and change it to

$ourhostname = „<IP pfsense>:8000“;

Then it should work fine again.

#5 Updated by chudy fernandez almost 9 years ago

add header("Connection: close"); in /usr/local/captiveportal/index.php will fix the issue

header("Expires: 0");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Connection: close");

#6 Updated by Tahar GUEBLI almost 9 years ago

With adding :header("Connection: close"), Portal Captive work fine even squid is installed.

Thanks

#7 Updated by Ermal Luçi almost 9 years ago

  • Status changed from New to Feedback

#8 Updated by Jim Pingle about 7 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF