Community discussions

MikroTik App
 
upower3
Member
Member
Topic Author
Posts: 425
Joined: Thu May 07, 2015 11:46 am

Script on rogue DHCP detection event - variable for MAC?

Thu Apr 12, 2018 4:08 pm

I try to use rogue DHCP detector ( https://wiki.mikrotik.com/wiki/Manual:I ... ver#Alerts ) to detect bad hosts within legacy network. I would like to use script to run on detection event but what I would like to know is how can I know MAC of rogue DHCP server found?

I will set up sending message to admin when a host is found if I will know the MAC.
 
Shadeofspirit
Member Candidate
Member Candidate
Posts: 203
Joined: Fri May 27, 2016 12:15 am
Location: Minsk
Contact:

Re: Script on rogue DHCP detection event - variable for MAC?

Thu Apr 12, 2018 4:19 pm

I try to use rogue DHCP detector ( https://wiki.mikrotik.com/wiki/Manual:I ... ver#Alerts ) to detect bad hosts within legacy network. I would like to use script to run on detection event but what I would like to know is how can I know MAC of rogue DHCP server found?

I will set up sending message to admin when a host is found if I will know the MAC.
there is an example from script (send by telegram)
/tool fetch url="https://api.telegram.org/botXXXXXXX:yyy ... &text=DHCP allert $address $interface $server $"mac-address"" keep-result=no

it sends ip of rogue DHCP, interface, and mac

also all this information is in log of mikrotik
 
upower3
Member
Member
Topic Author
Posts: 425
Joined: Thu May 07, 2015 11:46 am

Re: Script on rogue DHCP detection event - variable for MAC?

Thu Apr 12, 2018 11:12 pm

Great, thank you! Hiw did you find these vars names?
 
Shadeofspirit
Member Candidate
Member Candidate
Posts: 203
Joined: Fri May 27, 2016 12:15 am
Location: Minsk
Contact:

Re: Script on rogue DHCP detection event - variable for MAC?

Tue Apr 24, 2018 8:53 pm

Great, thank you! Hiw did you find these vars names?
From example in internet

Отправлено с моего Redmi 3S через Tapatalk

Who is online

Users browsing this forum: No registered users and 57 guests