OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: ishtiaqaj on November 01, 2018, 01:58:13 pm

Title: Voucher to MAC Binding
Post by: ishtiaqaj on November 01, 2018, 01:58:13 pm
dear all,

i am planning to switch from pfsense to opnsense. in my case i always creat 43200 mints vouchers and i want to enforce that one voucher always stays on same device. @fabian is there option in opensense that bind voucher to mac. so voucher work on same device always..
Title: Re: Voucher to MAC Binding
Post by: fabian on November 01, 2018, 06:28:07 pm
The vouchers are valid for any MAC as long as you don't use them. When you log into the network on the captive portal it may be bound since the captive portal seems to store some MAC addresses. (https://github.com/opnsense/core/blob/master/src/opnsense/scripts/OPNsense/CaptivePortal/lib/db.py). As far as I know, the CP has a feature for concurrent sessions, which may be very similar. Please note that I have not worked directly with the CP scripts and I don't expect that I will do soon.