Project

General

Profile

Bug #4001

disconnected CP client no longer gets redirected to portal page

Added by Chris Buechler almost 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
High
Category:
Captive Portal
Target version:
Start date:
11/11/2014
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.2
Affected Architecture:

Description

On 2.2, after disconnecting a user from CP on status_captiveportal.php, their HTTP requests no longer are redirected to the portal page. Just sending SYNs that get no reply at all.

Associated revisions

Revision b4e0f02b (diff)
Added by Renato Botelho almost 6 years ago

Make sure $cpzoneid is defined and use it to call pfSense_ipfw_Tableaction() and pfSense_ipfw_getTablestats(). Also fix fieldnames for captiveportal_hostnames. It should fix #4001

History

#1 Updated by Renato Botelho almost 6 years ago

  • Assignee set to Renato Botelho

I'll take this one

#2 Updated by Renato Botelho almost 6 years ago

  • Status changed from New to Assigned

#3 Updated by Renato Botelho almost 6 years ago

After investigate it a bit I noted IPs are not being added to ipfw tables, all are added as 0.0.0.0/32:

2.2-BETA][root@pfs22amd64.home]/root: ipfw -x 2 table 2 list
0.0.0.0/32 mac 08:00:27:69:67:b4 2001

To make sure if it is a problem on pfSense php module or ipfw itself I tried to manually add an IP to a table using ipfw CLI, issue is the same, probably one of our patches is broken. Maybe Ermal has an idea about it. Will dig a bit more tomorrow morning.

#4 Updated by Ermal Lu├ži almost 6 years ago

Renato Botelho wrote:

After investigate it a bit I noted IPs are not being added to ipfw tables, all are added as 0.0.0.0/32:

[...]

To make sure if it is a problem on pfSense php module or ipfw itself I tried to manually add an IP to a table using ipfw CLI, issue is the same, probably one of our patches is broken. Maybe Ermal has an idea about it. Will dig a bit more tomorrow morning.

This is cosmetic Renato which has been fixed on next coming snapshots.

#5 Updated by Renato Botelho almost 6 years ago

  • Status changed from Assigned to Feedback
  • % Done changed from 0 to 100

#6 Updated by Chris Buechler almost 6 years ago

  • Status changed from Feedback to Resolved

fixed

Also available in: Atom PDF