<div dir="ltr"><div>Hello, I have configured freeradius for accept one host conection over host mac address<br><br></div>This is the log, at the end appear the error:<br><div><br> Called-Station-Id = "00-90-0B-23-2E-BF:EquiposPortatiles"<br>
Calling-Station-Id = "98-0C-82-B5-00-F2"<br> Framed-MTU = 1250<br> NAS-Port-Type = Wireless-802.11<br> Framed-Compression = None<br> Connect-Info = "CONNECT 802.11g"<br> EAP-Message = 0x02010010016c756e612e20626f726a61<br>
Message-Authenticator = 0xa4425334968358101505d6ea0a22f5d8<br>Fri Jun 21 12:25:22 2013 : Info: # Executing section authorize from file /etc/raddb/sites-enabled/default<br>Fri Jun 21 12:25:22 2013 : Info: +- entering group authorize {...}<br>
Fri Jun 21 12:25:22 2013 : Info: ++[preprocess] returns ok<br>Fri Jun 21 12:25:22 2013 : Info: ++- entering policy rewrite.calling_station_id {...}<br>Fri Jun 21 12:25:22 2013 : Info: +++? if ((Calling-Station-Id) && "%{Calling-Station-Id}" =~ /^%{config:policy.mac-addr}$/i)<br>
Fri Jun 21 12:25:22 2013 : Info: ?? Evaluating (Calling-Station-Id) -> TRUE<br>Fri Jun 21 12:25:22 2013 : Info: expand: %{Calling-Station-Id} -> 98-0C-82-B5-00-F2<br>Fri Jun 21 12:25:22 2013 : Info: expand: policy.mac-addr -> policy.mac-addr<br>
Fri Jun 21 12:25:22 2013 : Info: expand: ^%{config:policy.mac-addr}$ -> ^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$<br>Fri Jun 21 12:25:22 2013 : Info: ? Evaluating ("%{Calling-Station-Id}" =~ /^%{config:policy.mac-addr}$/i) -> TRUE<br>
Fri Jun 21 12:25:22 2013 : Info: +++? if ((Calling-Station-Id) && "%{Calling-Station-Id}" =~ /^%{config:policy.mac-addr}$/i) -> TRUE<br>Fri Jun 21 12:25:22 2013 : Info: +++- entering if ((Calling-Station-Id) && "%{Calling-Station-Id}" =~ /^%{config:policy.mac-addr}$/i) {...}<br>
Fri Jun 21 12:25:22 2013 : Info: expand: %{1}-%{2}-%{3}-%{4}-%{5}-%{6} -> 98-0C-82-B5-00-F2<br>Fri Jun 21 12:25:22 2013 : Info: expand: %{tolower:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}} -> 98-0c-82-b5-00-f2<br>Fri Jun 21 12:25:22 2013 : Info: ++++[request] returns ok<br>
Fri Jun 21 12:25:22 2013 : Info: ++++[updated] returns updated<br>Fri Jun 21 12:25:22 2013 : Info: +++- if ((Calling-Station-Id) && "%{Calling-Station-Id}" =~ /^%{config:policy.mac-addr}$/i) returns updated<br>
Fri Jun 21 12:25:22 2013 : Info: +++ ... skipping else for request 3: Preceding "if" was taken<br>Fri Jun 21 12:25:22 2013 : Info: ++- policy rewrite.calling_station_id returns updated<br>Fri Jun 21 12:25:22 2013 : Info: [authorized_macs] expand: %{Calling-Station-ID} -> 98-0c-82-b5-00-f2<br>
Fri Jun 21 12:25:22 2013 : Info: ++[authorized_macs] returns noop<br><br clear="all"><div><br></div><div>I have this authorized_macs file:<br><br> 98-0c-82-b5-00-f2<br> Reply-Message = "Device with MAC Address %{Calling-Station-Id} authorized for network access"<br>
<br><br></div><div>What's wrong?<br><br></div><div>I have try with:<br><br> 98-0c-82-b5-00-f2 Expiration := "10 Jul 2013"<br></div><div><br> 98-0c-82-b5-00-f2<br> Auth-Type := Accept<br></div><div>
<br><br>But nothing runs.<br><br></div><div>Thank you.<br></div><div><br></div><div><br><br>
-- <br>Un saludo.<br>____________________<br><br>Roberto Ortega<br>Profesor de Informática.<br><a href="http://www.proyectoret.es" target="_blank">http://www.proyectoret.es</a><br><br>Escuelas San José Valencia<br>Avd.Cortes Valencianas nº1<br>
46015 Valencia<br>R4600489A<br>Tf:<a href="tel:963499011%20ext.%20262" value="+34963499011" target="_blank">963499011 ext. 262</a><br>Fax:<a href="tel:963488835" value="+34963488835" target="_blank">963488835</a><br><a href="http://www.escuelassj.com" target="_blank">http://www.escuelassj.com</a><br>
<br>No imprimas este correo si no es necesario. Protejamos el medio ambiente.<br>
</div></div></div>