Mr. Rextended, I see that you are a person who knows a lot about scripts.
:local cmac $"mac-address"
:foreach RANDOOM in=[/ip hotspot active find user="$username" mac-address!=$cmac] do={
/ip hotspot active remove $RANDOOM}
Can you tell me why the script doesn’t work?
Thank you.
You can usually help yourself by putting scripts like this inside some brackets and pasting it in to the terminal in winbox.
Can someone help me please.
Rextended friend, can you help me?
Thank you.
at least, untested, something like this:
/ip hotspot active remove [find where user=$username and mac-address!=$"mac-address"]
and you do not provide any relevant detail, like routeros version and where the script is put.
Thanks for responding friend Rextended.
This script goes in: IP HOTSPOT USER PROFILE SCRIPT and the firmware is 6.49.17
I want to use it to eliminate those clients who use random Macs on their computers, I hope you understand me.
You want remove all user with same name but different mac-address? See my previous script example.
Not using hotspots I do not guarantee that work as expected, but the script is correct.
I want to eliminate users who connect to the hotspot with a different mac address than the user who is already connected first, I hope you understand me
Do it on wifi, do not allow fake/service MAC.
But experienced user can still change to one apparenlty valid MAC…
set only one “shared users” on user profile, and if you use user-manager bind MAC on first use.
What you want do can not be doed on scripts, must doed on settings and eventually AP connect list or on interface traffic filter.
:local cmac $"mac-address"
:foreach RANDOOM in=[/ip hotspot active find user="$username" mac-address!=$cmac] do={
/ip hotspot active remove $RANDOOM}
Friend REXTENDED, but is the script the way I wrote it wrong?
Please clarify that for me friend REXTENDED.
I won’t add anything else, just read post #9
anav
October 14, 2024, 11:42am
13
Dice che gli script non risolveranno le tue esigenze e che utilizzeranno le impostazioni del router disponibili inclusi ma non limitati a elenchi e filtri.