it is working with hotspot(userman and hotspot), there is an option, named as shared users. and it work corretcly.
When i want to use userman with PPPoE server, also there is an option named as as only-one.
My problem is, same account can login many times mikrotik PPPoE server.(PPPoE with userman),
in PPPoE only-one options is only works with the local secrets; not with the radius and userman. but i want to use with it userman.
is there any way to use with userman ?
or i will setup externel free-raadius and set the simultaneous checking ?
:foreach i in=[/ppp active find] do={
:set userX [/ppp active get $i name];
:set clogged 0;
:foreach u in=[/ppp active find name=$userX ] do={
:set clogged (clogged +1);
:if (clogged>1) do={
:set userY [/ppp active get $u name];
:set addr [/ppp active get $u caller-id];
:set addr2 [/ppp active get $i caller-id];
:if ($addr != addr2) do={
:log info “MPPP: FIRST ACTIVE <<$userX>> FROM IP $addr2”;
:log info “MPPP: THE $clogged° <<$userY>> CALLING FROM IP $addr NOW DISCONNECTED”;
/ppp active remove $u;
}