Community discussions

MikroTik App

Search found 3 matches

by aceror
Sun Apr 12, 2020 2:37 am
Forum: Scripting
Topic: dhcp lease to firewall
Replies: 1
Views: 1649

Re: dhcp lease to firewall

Ya lo resolvi :foreach ITEM in=[/ip dhcp-server lease find dynamic] do={ :local MAC [/ip dhcp-server lease get $ITEM active-mac-address]; :local COMMENT [/ip dhcp-server lease get $ITEM host-name]; /ip firewall filter add chain=forward src-mac-address=$MAC action=drop disabled=yes protocol=tcp place...
by aceror
Sat Apr 11, 2020 1:44 pm
Forum: Scripting
Topic: DynDNS Script from Mikrotik Wiki (correction)
Replies: 33
Views: 39201

Re: DynDNS Script from Mikrotik Wiki (correction)

Hello Make script call DynDns and paste this # Set needed variables :local username "YOURUSERNAME" :local password "YOURPASSWORD" :local hostname "YOURHOSTNAME.dyndns.org" :global dyndnsForce :global previousIP # print some debug info :log info ("UpdateDynDNS: user...
by aceror
Sat Apr 11, 2020 12:26 pm
Forum: Scripting
Topic: dhcp lease to firewall
Replies: 1
Views: 1649

dhcp lease to firewall

Hello I want to add with script all the dhcp list to the firewall li I do with IP-BINDING (see script) how can I do it? THANKS!! :foreach ITEM in=[/ip hotspot ip-binding find] do={ :local MAC [/ip hotspot ip-binding get $ITEM mac-address]; :local COMMENT [/ip hotspot ip-binding get $ITEM comment]; /...