Project

General

Profile

Actions

Feature #16680

closed

Captive Portal Adjustable Voucher Lengths

Added by Christopher Cope 18 days ago. Updated 18 days ago.

Status:
Rejected
Priority:
Low
Assignee:
-
Category:
Captive Portal
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default

Description

We had a customer request to be able to easily set a desired length for the vouchers in the GUI.

When high security isn't an issue, a shorter voucher length makes it easier for patrons to type in the voucher without leaving the connection completely open.

Some workarounds exist on the forum which rely on old versions of pfSense with older versions of OpenSSL.

Actions #1

Updated by Jim Pingle 18 days ago

  • Status changed from New to Rejected

The voucher keys are already weak for security, lowering it would make the codes predictable. I am against adding options to make it that weak in the GUI.

If someone wants to generate a shorter key by hand, they can use the code that the GUI uses now to do so, just change the key size in the function (e.g. from 64 to 31):

source:src/usr/local/www/services_captiveportal_vouchers.php#L45

They could edit/patch the source and use the GUI button, or run that code manually and copy/paste the resulting keys.

Actions

Also available in: Atom PDF