fastnetmon-ng/src/mikrotik_plugin
Terry Rodery 19116c3feb clean-up and migrate to README.md 2018-03-01 13:28:58 -06:00
..
README.md clean-up and migrate to README.md 2018-03-01 13:28:58 -06:00
fastnetmon_mikrotik.php Added logging to router syslog 2017-04-13 14:41:47 -03:00
notify_about_attack.sh add mikrotik api support 2016-07-04 18:11:58 -03:00
routeros_api.php add mikrotik api support 2016-07-04 18:11:58 -03:00

MikroTik FastNetMon plug-in

Overview

Connects to a MikroTik router and adds or removes a blackhole rule for an attack by IP address.

The actions can be modified such as adding a firewall rule.

This script uses the MikroTik PHP API. More information about this can be found at the following URLs:

Installation

Prerequisite

You must have a user with API access on the router

Process

  1. Configure the router in the fastnetmon_mikrotik.php file
$cfg[ ip_mikrotik ] = "192.168.10.1"; // MikroTik Router IP
$cfg[ api_user ]    = "api"; // username
$cfg[ api_pass ]    = "api123"; // password
  1. Change the notify_about_attack.sh with the new to run the PHP script

This is the first buggy version, you are welcome to add more features.

Changelog

v1.0 - 4 Jul 16 - Initial version

Author: Maximiliano Dobladez info@mkesolutions.net

http://maxid.com.ar | http://www.mkesolutions.net