Feature #1482
closed
Captive Portal support for a configurable RADIUS NAS ID
Added by Richard Gate about 14 years ago.
Updated over 9 years ago.
Description
When running network traces to examine the packets sent/received during Captive Portal authentication and accounting with RADIUS,
I noticed that pfSense Captive Portal uses the local host and domain name for the RADIS NAS ID. I can see this is set in /etc/inc/cativeposrtl.inc
in the function getNasID().
Do you intend to make this a configurable option?
This would help users migrating from DD-WRT WiFiGator configurations, such as myself :-)
You could implement the code here - http://mike.eire.ca/2010/08/25/setting-nas-id-on-pfsense/
Thanks, Richard
Files
- Project changed from pfSense Packages to pfSense
- Assignee deleted (
Ermal Luçi)
Hi just found out that the code in /etc/inc/radius.inc function putStandardAttributes() does not call the getNasId() function but works out the NAS ID for itself in the same way that getNasId() does. So it will need updating to call getNasId() in a similar way that getNasIp() is a few lines before before.
Hope this helps, Richard
- Status changed from New to Feedback
There have been NAS IP options for CP in the code base for a while now.
BTW its "NAS ID" not "NAS IP".
Assuming that was a typo, where can you set the "NAS ID" in the CP configuration?
We're just putting together our first 2.0 boxes; it's currently untested, but I've attached the patch we're planning to try, based on our patch for 1.23 (that's my web page cited in the original report.) It would be nice to get this option added to the code.
I'd like to see the 2.1 patch get in there. Richard.
Please send a pull request on github as everyone else since its easier to merge/review/...
Merged thank you for the pull request.
- Status changed from Feedback to Resolved
Also available in: Atom
PDF