Community discussions

MikroTik App
 
network99
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Wed Nov 22, 2017 8:47 pm

Remove Duplicate Connections

Sat Feb 10, 2018 2:31 pm

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 :
<pppoe-winuser>
<pppoe-winuser-1>
<pppoe-winuser-2>
<pppoe-winuser-3>
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)

Image
 
network99
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Wed Nov 22, 2017 8:47 pm

Re: Remove Duplicate Connections

Mon Feb 12, 2018 8:26 am

Refresh
 
network99
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Wed Nov 22, 2017 8:47 pm

Re: Remove Duplicate Connections

Mon Feb 19, 2018 11:08 am

please guide me
 
network99
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Wed Nov 22, 2017 8:47 pm

Re: Remove Duplicate Connections

Mon Mar 12, 2018 2:16 pm

/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
 
network99
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Wed Nov 22, 2017 8:47 pm

Re: Remove Duplicate Connections

Wed Mar 14, 2018 7:21 am

please guide me
 
paolonebiz
just joined
Posts: 1
Joined: Mon Apr 02, 2018 8:09 pm

Re: Remove Duplicate Connections

Tue Apr 17, 2018 10:04 pm

I have the same problem...
 
network99
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Wed Nov 22, 2017 8:47 pm

Re: Remove Duplicate Connections

Fri Jun 15, 2018 1:09 pm

Refresh
 
network99
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Wed Nov 22, 2017 8:47 pm

Re: Remove Duplicate Connections

Sun Jun 17, 2018 7:28 pm

please help me
 
network99
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Wed Nov 22, 2017 8:47 pm

Re: Remove Duplicate Connections

Fri Jun 22, 2018 12:02 pm

help
 
lemuelgv
just joined
Posts: 1
Joined: Tue Apr 24, 2018 3:43 pm

Re: Remove Duplicate Connections

Wed Apr 08, 2020 9:55 pm

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

Who is online

Users browsing this forum: No registered users and 11 guests