Problem with mikrotik hotspot

Ответить
sepehr
Сообщения: 4
Зарегистрирован: Ср окт 17, 2018 7:38 am

Problem with mikrotik hotspot

Сообщение sepehr »

Hello
I have a hotspot network over ethernet with average 160 concurrent users with a freeradius as radius server, everything works fine but sometimes users disconnect right after successful login (redirected to a status page then when refresh it is already logged out)
I realized that it is happening when a simultaneous request for access is increased at a time, (ie. the employees come back from dinner)

Is it possible if Mikrotik gives the same IP to Multiple users and then one of them authorized faster than other one?

Logs (hotspot) the only thing I found :
logged out: host removed: authorized client needs your IP

Full log :

Код: Выделить всё

11:39:59 hotspot, info, debug user1 (X.X.10.171) : trying to log in by http-chap
11:39:59 hotspot, debug user1 (X.X.10.171): local user not found
11:39:59 hotspot, debug user1 (X.X.10.171): sending RADIUS authentication request
11:39:59 hotspot, debug user1 (X.X.10.171): Access-Accept from RADIUS
11:39:59 hotspot, debug user1 (X.X.10.171): using profile <VLAN2 user_profiles
11:39:59 hotspot, debug user1 (X.X.10.171) : rate limit <768k/768k> from RADIUS
11:39:59 hotspot, debug user1 (X.X.10.171): getting ip address from pool,
11:39:59 hotspot, debug user1 (X.X.10.171): using ip X.X.101.184
11:39:59 hotspot, debug user1 (X.X.101.184): adding ip->user binding
11:39:59 hotspot, debug user1 (X.X.101.184): adding queue <768k/768k>
11:39:59 hotspot, debug VLAN2: authorized host X.X.101.184 removed: authorized client needs your ip
11:39:59 hotspot, account, info, debug user1 (X.X.101.184): logged in
11:39:59 hotspot, debug user1 (X.X.101.184): sending RADIUS accounting Start request
11:39:59 hotspot, debug user1 (X.X.101.184): RADIUS accounting request sent
11:39:59 hotspot, info, debug user1 (X.X.101.184): logged out: host removed: authorized client needs your ip
11:39:59 hotspot, account user1 (X.X.101.184): 1 666 52 31 (host removed: authorized client needs your ip)
11:39:59 hotspot, debug user1 (X.X.101.184): removing queue
11:39:59 hotspot, debug user1 (X.X.101.184): removing ip->user binding 11.39.59 hotspot, debug user1 (X.X.101.184): sending RADIUS accounting stop request
11:39:59 hotspot, debug user1 (X.X.101.184): RADIUS accounting request sent
11:39:59 hotspot, debug user1 (X.X.101.184): RADIUS accounting request sent
My setup :
Users get IP from DHCP (X.X.10.0/24)
Then when users authenticate (Freeradius Abills) gets a new IP from the hotspot pool (X.X.101.0/24) Mikrotik manage the pool, not radius server
I also have netmap configured for internet X.X.101.0/24 to public IP
router board with the latest firmware upgraded (6.43.2)

Any help would be appreciated, Thanks

sepehr
Сообщения: 4
Зарегистрирован: Ср окт 17, 2018 7:38 am

Re: Problem with mikrotik hotspot

Сообщение sepehr »

Update :
Found that sometimes users authenticated successfully and get IP from ip-pool but the assigned ip is not added to "Used Addresses" List !!
but the ip already assigned and i can see it in active users in hotspot!!
when new user authenticated it gives same ip to new user and again and again so it is disconnecting other user!!
any idea what is the reason ?

sepehr
Сообщения: 4
Зарегистрирован: Ср окт 17, 2018 7:38 am

Re: Problem with mikrotik hotspot

Сообщение sepehr »

Found the problem, it is related to duplicate mac address because of my network topology, i read the auth2.pl and found that duplicate mac is not allowed by default and enabling hard_simultaneously_control option fixed the problem! :D :) :roll: :roll:
After that i found the documentation in wiki! :lol: :oops:

kyig
Сообщения: 1
Зарегистрирован: Пт дек 27, 2019 11:46 am
Контактная информация:

Re: Problem with mikrotik hotspot

Сообщение kyig »

The same thing!

Ответить