Mikrotik Tools

DHCP ROGUE ALERT

Discover and Alert Unknown DHCP Servers in MikroTik

MikroTik Script Output
###############################################################
# DHCP ALERT: DHCP ROGUE / DISCOVER UNKNOWN DHCP SERVER
# Created By: Mua.lat (React Port)
###############################################################
/ip dhcp-server alert add alert-timeout="00:01:00" valid-server="" interface="ether1" on-alert=":local DeviceName [/system identity get name];\r\ 
/tool fetch url=\"https://api.telegram.org/bot<BOT_TOKEN>/sendMessage\\?chat_id=<CHAT_ID>&text=\E2\9D\8C UNKNOWN DHCP SERVER FOUND !!  %0AROUTER: \$DeviceName %0AINTERFACE: \$interface %0AMAC ROGUE: \$\0"mac-address\0" %0AIP LOCATION: \$address\" keep-result=no" comment="DHCP Alert by Mua.lat" disabled=no
Instructions & Setup

How to get Telegram Credentials:

  • Find @BotFather on Telegram.
  • Send /newbot and follow instructions to get your Token.
  • Start your new bot by clicking START.
  • Find @get_id_bot to obtain your Chat ID.