Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 21660

Scripting • Re: How to get IP address from DHCP leases, by looking for key word on COMMENT content

$
0
0
Hey EmmeToledo, greetings from ... (won't tell, too close to ****) and welcome to this forum.

If you want to have some static hosts, keep their ip address and ban them in mangle rule ... it tells me that we don't speak the same logic.

You can mark the static lease banned, clear client id, replace ip address with 0.0.0.0 and mark blocked:
Code:
add block-access=yes mac-address=B6:78:13:CD:D8:66 server=wlan
I do this, but is more like a teasing than a security measure.
If you want the ip leased to a specific mac address and then added to an address list you can just fill the "Address list" field in the Winbox gui.

I am just guessing what you want to achieve: block or tease. Security is not this way.

Statistics: Posted by A9691 — Fri Mar 28, 2025 8:14 pm



Viewing all articles
Browse latest Browse all 21660

Trending Articles