Project

General

Profile

Actions

Bug #868

closed

transparent Squid breaks captive portal

Added by Chris Buechler over 14 years ago. Updated over 12 years ago.

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

0%

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

Description

Squid's transparent redirect breaks captive portal.

Actions #1

Updated by Erik Fonnesbeck over 14 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.

Actions #2

Updated by Chris Buechler over 14 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.

Actions #3

Updated by Burkart Orlowski over 14 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.

Actions #4

Updated by Burkart Orlowski over 14 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.

Actions #5

Updated by chudy fernandez about 14 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");

Actions #6

Updated by Tahar GUEBLI about 14 years ago

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

Thanks

Actions #7

Updated by Ermal Luçi about 14 years ago

  • Status changed from New to Feedback
Actions #8

Updated by Jim Pingle over 12 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF