Passing IV_HWADDR to Radius
Posted: Mon Aug 07, 2023 3:04 pm
Hi,
with OpenVpn Server 2.5.4 (pfsense 2.6.0) i followed this guide:
https://wiki.freeradius.org/guide/mac-auth
and edited this section of /etc/inc/openvpn.auth-user.php:
$attributes = array("nas_identifier" => "openVPN",
"nas_port_type" => RADIUS_VIRTUAL,
"nas_port" => $_GET['nas_port'],
/*"calling_station_id" => get_interface_ip() . ":" . $_GET['nas_port']);*/
"calling_station_id" => getenv("IV_HWADDR"));
to pass FreeRadius the Clients MAC Addresses via Calling-Station-Id.
After the upgrade to OpenVpn 2.6.4 (pfsense 2.7.0) this stopped working.
I missed something?
with OpenVpn Server 2.5.4 (pfsense 2.6.0) i followed this guide:
https://wiki.freeradius.org/guide/mac-auth
and edited this section of /etc/inc/openvpn.auth-user.php:
$attributes = array("nas_identifier" => "openVPN",
"nas_port_type" => RADIUS_VIRTUAL,
"nas_port" => $_GET['nas_port'],
/*"calling_station_id" => get_interface_ip() . ":" . $_GET['nas_port']);*/
"calling_station_id" => getenv("IV_HWADDR"));
to pass FreeRadius the Clients MAC Addresses via Calling-Station-Id.
After the upgrade to OpenVpn 2.6.4 (pfsense 2.7.0) this stopped working.
I missed something?