mi problema es el siguiente:
nesesito hacer un script que coja las ip de una lista de baneados y la bloquee esa ip en el dhcp estatico.
el motivo es el siquiente. cuando detecto un escaneo de red en la lan interna aunque balla al grupo de baneo, no surte efecto ya que esta en la lan, pero si lo blokeo del dhcp pierde su acceso ala red ya que el dhcp esta amarrado por mac, y el ARP por reply-only
My problem is the following:
I need to make a script that takes the ip from a banned list and blocks that ip in the static dhcp.
the reason is the next. when I detect a network scan in the internal lan but balla to the group of bane, it does not take effect since it is in the lan, but if I block it from the dhcp it loses its access to the network since the dhcp is tied by mac, and the ARP by reply-only
Are you fine with the fact that the ban will take place minutes or hours after the malicious activity has been detected, because the DHCP server cannot withdraw a lease from a DHCP client during its validity period, it can only not renew the lease when the clients asks for the renewal?
Are all devices in the LAN connected directly to Mikrotik Ethernet ports, each by its own cable, or are there any other switchec/hubs between the Mikrotik and the devices in LAN?
asi que la idea general es cojer la lista de ip baneadas tirarla contra el dhcp y si esta hay, cambiar su estado a bloqueada, eso para la lan interna, si no esta pues no se hace nada, por que los externos si los bloquea perfectamente, el problema es con los internos en la lan.
so the general idea is to take the banned ip list throw it against the dhcp and if there is, change its status to blocked, that for the internal lan, if it is not then nothing is done, because the external ones are blocked perfectly , the problem is with the interns in the lan.
si se que el dhcp le da un tiempo de vida, pero si a la pc le blokeo el tikec se queda fuera de la red al perder su leased, el tikec normal es de 1 minuto
if I know that the dhcp gives you a time to live, but if the pc is blocked the tikec stays out of the network when losing its leased, the normal tikec is 1 minute
i yo le bloqueo su asignacion de ip en el dhcp queda blokeado automaticamente, ya que la red esta cerrada conrtra el arp, y el dhcp tira directo las ip al arp segun son asignadas
if I blocked your ip assignment in the dhcp is automatically blocked, since the network is closed conrtra the arp, and the dhcp directly shoots the ip to the arp as they are assigned