MikroTik DHCP Alerts Script


#########################################################################################################
#  MikroTik DHCP Alerts Script                                                                          #
#########################################################################################################
# Author: Rick Frey                                                                                     #
# email: support@rickfreyconsulting.com                                                                 #
# Username in MikroTik Forum is rickfrey                                                                #
#########################################################################################################                                                                                        #
#########################################################################################################
# Features                                                                                              #                                                                             #
# -Sends and email when a Rouge DHCP server is detected.                                                #
#########################################################################################################

############################################################################################################################
#### The email need to already be configured to use this script (tool e-mail).                                            ##
############################################################################################################################

/ip dhcp-server alert
add disabled=no interface=LAN_Interface on-alert=":local sysname [/system identity get name];\r\
    \n/tool e-mail send to=user@yourdomain.com subject=\"Rouge DHCP Server Detected\" body=\"An unknown DHCP server was\
    \_detected on \$interface of \$sysname with a ip address of \$address\""

 

 

/

MikroTik DHCP Alerts Script

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.