<div dir="ltr">Hi, I would like to store freeradius session information like Acct-Session-Id, Acct-Start-Time, Acct-Stop-Time, Acct-Input-Octets, Acct-Output-Octets, Framed-IP-Address, NAS-IP-Address in external database.<br>
<br>We have our devices connected to databases which are readonly so we cannot store those informations there. Also we have database where we want to store session statistics from all devices.<br><br>Is that possible to achieve ?<br>
<br>Till now we tried setting up virtual host with Auth-Type rules redirecting to script but we cannot receive Acct-Session-Id. Here is how our /etc/freeradius/sites-avaliable/default looks like:<br><br><dl class=""><dd><code>authorize {<br>
chap<br> mschap<br> sql<br> update control {<br>
Auth-Type := `/etc/freeradius/bin/testradius '%{User-Name}'
'%{Calling-Station-Id}' '%{NAS-IP-Address}' '%{reply:Framed-IP-Address}'
'%{reply:Acct-Session-Id}' '%{reply:Acct-Unique-Session-Id}'`<br> }<br>}<br>authenticate {<br> Auth-Type PAP {<br> pap<br> }<br> Auth-Type CHAP {<br> chap<br> }<br> Auth-Type MS-CHAP {<br>
mschap<br> }<br>}<br><br>preacct {<br> acct_unique<br>}<br><br>accounting {<br># sql<br>}<br><br>session {<br># sql<br>}<br><br>post-auth {<br># sql<br>}</code></dd></dl><p>Sorry for any language mistakes :)<br>
</p><br><div><div><div><div><br>-- <br>Pozdrawiam<br>Maciej Lew<br><br>tel. 883-376-062
</div></div></div></div></div>