Passing IV_HWADDR to Radius

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
itktit
OpenVpn Newbie
Posts: 1
Joined: Mon Aug 07, 2023 2:56 pm

Passing IV_HWADDR to Radius

Post by itktit » 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?

fra
OpenVpn Newbie
Posts: 1
Joined: Tue Feb 06, 2024 2:05 pm

Re: Passing IV_HWADDR to Radius

Post by fra » Tue Feb 06, 2024 2:06 pm

I have the same problem.
There was a solution ?

Post Reply