Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Michael Martins - 2019
- :if ($leaseBound = "1") do={
- /queue simple add name=$queueName target=($leaseActIP . "/32") limit-at=1024k/2048k max-limit=1024k/2048k comment=[/ip dhcp-server lease get [find where active-mac-address=$leaseActMAC && active-address=$leaseActIP] host-name];
- } else={
- ip firewall address-list add comment="cliente_bloqueado" list="BLOQUEIO INTERNET" address=$leaseActIP
- ip dhcp-server lease add mac-address=$leaseActMAC block-access=yes comment="BLOQUEADO" server="DHCP Server VLAN100" address=$leaseActIP
- ip firewall
- /queue simple remove $queueName
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement