My pppoe customers are not reconnecting after updating to 6.47.1. Seems like their IPs are being blocked or something… IPs in lower range eg. x.x.88.102-150 are not working while the range x.x.88.201-250 are.
If I change their IP etc it connects. Also seems like Userman is corrputing?
So I stayed on old firmware to avoid the problem… A few days ago I needed to replace my MT and the oldest firmware for it was one that reproduced this problem.
After digging and digging I noticed that the problem was that when a PPPoE user lost connection due to reboot or power failure etc, their dial in remained “active” in userman sessions. Thus causing a new radius connection being unable to authenticate…
I finally found this solution posted by a fellow user which solved my problem after SO long!
“Remove false active sessions via script”
viewtopic.php?p=918297#p918297
:local LastSessionUpdate;
:local SessionTimeout;
:foreach i in=[/tool user-manager session find where active=yes] do={
# When was the last Update of the session-informations
:set [/tool user-manager session get $i till-time]
# SessionTimeout is a value that tells me how many seconds ago the last update of this session was
:set ([system clock get time] - [:pick $LastSessionUpdate ([:find $LastSessionUpdate " "]+1) [:len $LastSessionUpdate]]-[/system clock get gmt-offset])
# if last update is more then Timeout seconds ago then close session and log it
:if ($SessionTimeout > $Timeout) do={
/tool user-manager session remove numbers=$i
:log warning (" Removed false active session by Zaib - Username is " . [/tool user-manager session get $i user]);
}
}