Today I spotted a bug / problem in Mikrotik PPPoE Server in ver 5.14. I don’t know if its a bug or configuration mistake, but it happened on 3 mikrotik boxes with same config. This mikrotik was acting as a simple pppoe server with few users. (defined in secret)
I used the option “One Sesstion Per Host” But still simultaneous connection on single ID was possible.
I tried various method and check every setting multiple times , but no use. I can see multiple pppoe login using same User ID. e.g;
SOLUTION # 1
After banging my head on Mikrotik Wall few minutes , I was able to solve it by using CLI method to instruct pppoe server to USE ONLY ONE session for each ID.
e.g:
/ppp profile set numbers=1 only-one=yes
(numbers=1 is my pppoe server profile, you can check your profile number by /ppp profile pr command)
Strange !
SOLUTION # 2
You can create an Script Which will check all connected users Id’s and will see duplication, If found it will disconnect it, you can also disable this ID and log it in any text file for review / management purposes. You can Schedule it to run after every 10 seconds or any specific time.
:local userX; :local userY; :local i; :local u; :local clogged 0; :local addr; :local addr2; :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; } } } }
Regard’s
Syed Jahanzaib
Dear,
is there any option to set only 1 session on per host ? ?? ? ?
LikeLike
Comment by Aamirzia Charan — April 5, 2012 @ 4:21 PM
Yes , by using following command
/ppp profile set numbers=1 only-one=yes
(numbers=1 is my pppoe server profile, you can check your profile number by /ppp profile pr command)
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — April 5, 2012 @ 4:37 PM
thanks! Jahanzaib bhai 🙂
LikeLike
Comment by faizan — April 6, 2012 @ 1:15 AM
Welcome !
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — April 6, 2012 @ 9:08 AM
Caller id is also a Best Solution . I m using caller id & only one session per host .
LikeLike
Comment by luckysunny88 — April 7, 2012 @ 1:21 PM
CALLER ID is also another workaround to tighten the security, It’s an option, but Setting Caller ID for every user is quite an overhead management for admin.
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — April 7, 2012 @ 2:43 PM
caller is also a best solution . i m using caller id & only one session per host . its good for me
LikeLike
Comment by luckysunny88 — April 7, 2012 @ 1:23 PM
Caller ID is not best solution bcz U can clone MAC address and gain to access …
LikeLike
Comment by Laxmi — June 29, 2014 @ 11:24 AM
Dear sir , how i will use caller id ..please say it
LikeLike
Comment by sazalach — April 15, 2012 @ 10:33 AM
dear , caller id is a mac address of end users , just copy the mac address of the user & paste in the user account . for exp
/ppp secret
add caller-id=00:0F:FE:80:86:A2 name=test password=test profile=256k
service=pppoe
LikeLike
Comment by luckysunny88 — October 27, 2012 @ 12:39 PM
Asalaam O alikum Sir maine mikrotik 5.18 pppoe banaya hai sir sub kuch theek hai bilkul magar net bohat had se zaida slow chal raha hai Bandwidth bhi barha k daikh lia magar phir bhi bohat slow hojata hai kindly help me… Mikrotik 3.30 me theek hai
LikeLike
Comment by waqas — October 27, 2012 @ 9:27 AM
I am sure its not the problem of version. If you think this is the case, then try 5.20 (its crack is also available on the internet.
License version keeps you away form many hurdles and unknown issues like these. So its better to buy a legal licensed version from mikrotik.
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — October 27, 2012 @ 6:10 PM
thanks alot sir
LikeLike
Comment by waqas — October 28, 2012 @ 3:55 AM
i using caller id & /ppp profile set numbers=1 only-one=yes last frm 3 years .. 😀 ..
LikeLike
Comment by luckysunny88 — October 27, 2012 @ 12:31 PM
Assalaam O alikum Sir Umeed hai ap theek honge.
Sir main PTCL dsl se net liya hua hai and usay Mikrotik se Users me share kiya hua hai PPPOE server K through.. And sir maine Connect Net walo se 1mb ka net Liya hua hai unka Web shairing server Dodear bohat acha hai main chata hoon k Mere Mikrotik Users k Pass Dodear sharing acess hojaye without any problem… Please sir tell me maine kafi Searching bhi karli hai magar koi Tarika nahi pata lag raha Ap Help karen…….THAKNS
LikeLike
Comment by waqas — October 28, 2012 @ 3:56 AM
Assalamu alikum Bro, This is Nahid from Bangladesh. I am facing some problem in Mikrotik PPPoE Dial up system. I setup pppoe server as right instruction.. If my user connect to network by dial up there is no problem they can use it properly. But problem is that if I add any Broadband Wireless Router to my Network then all user disconnect from network ..Only router user can connect to network…If i connect from any Desktop pc its disconnect connection when router user come to network…Please Give me some tips so that I can use PPPOE Dial up system with Mikrotik Router..Thank you..
LikeLike
Comment by Md.Nahidul Islam — September 1, 2013 @ 12:47 PM
it depend on the router you are adding.
how you are adding the router to the network? I hope you are adding it in isolation mode, means lan cable should be added in WAN interface.
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — September 1, 2013 @ 3:02 PM
sir why there is problem of disconnection and connection in my mikrotik when i connect to may client
LikeLike
Comment by roshan chaulagain — September 18, 2013 @ 3:37 PM
Describe in details.
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — September 18, 2013 @ 3:56 PM
actually this kind of problem is arising in isp environment when we use mikrotik as ppoe server and connecting it with ubnt device
LikeLike
Comment by roshan chaulagain — September 18, 2013 @ 4:05 PM
Assalaam O alikum Sir Umeed hai ap theek honge.
Sir main PTCL dsl se net liya hua hai and usay Mikrotik se Users me share kiya hua hai And sir maine Connect Net walo se 1mb ka net Liya hua hai unka Web shairing server Dodear bohat acha hai main chata hoon k Mere Mikrotik Users k Pass Dodear sharing acess hojaye without any problem… Please sir tell me maine kafi Searching bhi karli hai magar koi Tarika nahi pata lag raha Ap Help karen
LikeLike
Comment by sohail — November 5, 2013 @ 7:28 PM
Hi all of you out there!
I am having this same problem using DMA radius manager.
a single user from DMA can login by PPPOE and by Hotspot using the same user name and pw.
is there anny one having this same problem?
warren
LikeLike
Comment by warren — January 30, 2014 @ 5:59 PM
We donot have such issue.
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — January 31, 2014 @ 10:17 AM
hello sir agar hotspot main same yeh command lagani ho tu kia changing karien plz explain
/ppp profile set numbers=1 only-one=yes
yani hotspot main bi one season per host karna ho tu
LikeLike
Comment by Nadeem — June 17, 2015 @ 2:05 PM
dear sir can you provide some idea about multiple vlan eoip and eompls in mikrotik
with best regards roshan chaulagain Date: Wed, 17 Jun 2015 09:05:28 +0000 To: chroshan@hotmail.com
LikeLike
Comment by Roshan Chaulagain — June 23, 2015 @ 8:02 AM
Assalam-o-Alikum, jahanzaib bhai i need your help me ne 5.18 per pppoe with usermanager setp kiya hay sab set hay working fine but meray kuch user aisa hain jin k pass ups backup wagera nahi hay to jab woh light anay per dubara on hotay hain to mujhay usermanager se us user ko disable or enable karna parhta hay on session per host opetion b use kar k dekha hay per not wotking please tell me how to resolve this problem…. jazakALLAH
LikeLike
Comment by sumair — February 4, 2017 @ 12:14 PM
you need to put some script which can check for dead sessions and remove them from active list.
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — February 7, 2017 @ 9:09 AM
How to schedule Script
LikeLike
Comment by Abdul Rasheed — May 2, 2018 @ 11:27 AM
1 active 2nd expiry pool help me
LikeLike
Comment by DAHA NETWORKS — April 8, 2020 @ 10:34 PM