From 964f1f1e3ff03faa9dd4e4aabb69a7ceffe31175 Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Fri, 27 Oct 2023 13:45:38 +0100 Subject: [PATCH] Adjusted tool naming --- src/juniper_plugin/fastnetmon_juniper.php | 2 +- src/mikrotik_plugin/fastnetmon_mikrotik.php | 2 +- src/scripts/fastnetmon_notify.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/juniper_plugin/fastnetmon_juniper.php b/src/juniper_plugin/fastnetmon_juniper.php index 9dca29e..cd5afdf 100644 --- a/src/juniper_plugin/fastnetmon_juniper.php +++ b/src/juniper_plugin/fastnetmon_juniper.php @@ -83,7 +83,7 @@ switch($ACTION_ATTACK){ break; case 'unban': try{ - $desc = 'FastNetMon Guard: IP '. $IP_ATTACK .' remove from blacklist.'; + $desc = 'FastNetMon Community: IP '. $IP_ATTACK .' remove from blacklist.'; $conn->connect(); //Try conect or catch NetconfException (Wrong username, Timeout, Device not found, etc) $locked = $conn->lock_config(); //Equivalent of "configure exclusive" on Juniper CLI if($locked){ diff --git a/src/mikrotik_plugin/fastnetmon_mikrotik.php b/src/mikrotik_plugin/fastnetmon_mikrotik.php index 0d8ccfa..53dd090 100644 --- a/src/mikrotik_plugin/fastnetmon_mikrotik.php +++ b/src/mikrotik_plugin/fastnetmon_mikrotik.php @@ -79,7 +79,7 @@ if ( $API->connect( $cfg[ ip_mikrotik ], $cfg[ api_user ], $cfg[ api_pass ] ) ) } if ( $ACTION_ATTACK == "unban" ) { // remove the blackhole rule - $comment_rule = 'FastNetMon Guard: IP ' . $IP_ATTACK . ' remove from blacklist '; + $comment_rule = 'FastNetMon Community: IP ' . $IP_ATTACK . ' remove from blacklist '; $API->write( '/ip/route/print', false ); $API->write( '?dst-address=' . $IP_ATTACK . "/32" ); $ID_ARRAY = $API->read(); diff --git a/src/scripts/fastnetmon_notify.py b/src/scripts/fastnetmon_notify.py index a4d62fd..3166224 100755 --- a/src/scripts/fastnetmon_notify.py +++ b/src/scripts/fastnetmon_notify.py @@ -75,7 +75,7 @@ elif action == "ban": sys.exit(0) elif action == "attack_details": - subject = "Fastnetmon Guard: IP %(client_ip_as_string)s blocked because %(data_direction)s attack with power %(pps_as_string)d pps" % { + subject = "Fastnetmon Community: IP %(client_ip_as_string)s blocked because %(data_direction)s attack with power %(pps_as_string)d pps" % { 'client_ip_as_string': client_ip_as_string, 'data_direction': data_direction, 'pps_as_string' : pps_as_string,