On Jul 13, 2016, at 5:36 AM, Roman <romeo.r@gmail.com> wrote:
As Mikrotiks now send with ifDesk MIB the port numbers needed to radzap all the staled sessions, it now becomes the matter of modifying the checkrad script in the way I need it or to write a custom one. Thi logic could be radzap every single session showed in radwho output and not running on the PPPoE Server. Am I right here?
Sounds right.
Also I'd like to disconnect the session, when user makes second connection. Running this and simple command like exec(exec "/bin/echo User-Name = $ARGV[3] | radclient -r 1 IP disconnect secret"); should be enough to solve this one?
You can run radclient directly. No need to run "echo".
If I'll leave only the session part for radutmp to control the Simultaneous-Use would it be enough to skip moving to the SQL? I don't need the accounting thing much.
If you have ~1000 users, radutmp is OK. Past that, use SQL. Alan DeKok.