Remove Duplicate Connections

Hello

I’m using CCR1036 for clients authentication ( ROS v6.29.1 )
When the connection of my users weakens or 1 second is losst , two connections are made

exmaple :




and more …


The router does not Disconnect the old connection and creates a new connection !!!
I need a script that checks all username and remove duplicates


Attention :
I can not upgrade the ROS system
I can not edit PPPoE-Server profile
I should use the script

Script that:
Or check all the usernames and remove duplicates
Or delete all the usernames that have their end (-)
Or check all the usernames and delete the username that is older (uptime is higher)

Refresh

please guide me

/ppp active {:foreach t1 in=[find name=pppoe-winuser]   do={remove name=$t1}}
/ppp active {:foreach t2 in=[find name=pppoe-winuser-1] do={remove $t2}}
/ppp active {:foreach t3 in=[find name=pppoe-winuser-2] do={remove $t3}}
/ppp active {:foreach t4 in=[find name=pppoe-winuser-3] do={remove $t4}}

i need :

if pppoe-winuser-3 & pppoe-winuser-2 & pppoe-winuser-1 & pppoe-winuser
then disconnect all

please guide me

I have the same problem…

Refresh

please help me

help

It is works

:local sessions [/ppp active print count-only where name=$user]
:if ( $sessions > 1) do={
:log info ("disconecting" . $user  ."duplicate" )
/ppp active remove [find where (name=$user && uptime<00:00:30 )]
}

basically if the user have one active session kill the new one