Project

General

Profile

Actions

Feature #15257

closed

Support using a mask to block MAC addresses in Captive Portal

Added by Gordon Bennett 2 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Captive Portal
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
24.03
Release Notes:
Default

Description

Blocking a MAC address in pfSense when using a mask is not working. However, if you use the pass option and specify the same mask, it works fine.

So when you add the mac with a mask for example 12:34:56:00:00:00/24 and select block you can still access the captive portal, authenticate and then browse the internet.

When you add the mac with a mask for example 12:34:56:00:00:00/24 and select pass I can browse the internet immediately without having to authenticate against the captive portal, as expected.

When you add a single MAC address without a mask and select block you get redirected to the Blocked MAC address redirect URL. So you know blocking does work but just not when using masks.

Actions #1

Updated by Chris W 2 months ago

  • Status changed from New to Confirmed

I can duplicate this on 23.09.1. A MAC address block rule which includes a mask still allows authentication and then access out to the internet. Worth noting that removing the mask does then result in the single MAC address being denied login to the portal.

Actions #2

Updated by Marcos M about 2 months ago

  • Tracker changed from Bug to Feature
  • Subject changed from Captive portal MAC address blocking with mask not working to Support using a mask to block MAC addresses in Captive Portal
  • Status changed from Confirmed to Pull Request Review
  • Assignee set to Marcos M
  • Target version set to 2.8.0
  • Plus Target Version set to 24.03
  • Affected Version deleted (2.7.2)
  • Affected Architecture deleted (All)
Actions #3

Updated by Marcos M about 2 months ago

  • Status changed from Pull Request Review to Feedback
  • % Done changed from 0 to 100
Actions #4

Updated by Georgiy Tyutyunnik about 1 month ago

Tested on
23.09.1-RELEASE (amd64)
built on Tue Mar 5 21:00:00 UTC 2024
FreeBSD 14.0-CURRENT

patch fixes the issue

Actions #5

Updated by Jim Pingle about 1 month ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF