pavel-odintsov / fastnetmon

FastNetMon - very fast DDoS sensor with sFlow/Netflow/IPFIX/SPAN support
https://fastnetmon.com
GNU General Public License v2.0
3.41k stars 567 forks source link

Mikrotik plugin #891

Closed hexicans closed 3 years ago

hexicans commented 3 years ago

Hi,

I write here because I use mikrotik_plugin to blackhole IPs automatically. Ban works, but unban is not work :

Use of undefined constant ip_mikrotik - assumed 'ip_mikrotik' (this will throw an Error in a future version of PHP)

Do you have an idea ? The connection to mikrotik is done but can't remove route.

Thanks ! Axel

hexicans commented 3 years ago

Seem not the route cause.

I'have re-run again and i'have noted the process don't terminated :

PHP Warning: Use of undefined constant ip_mikrotik - assumed 'ip_mikrotik' (this will throw an Error in a future version of PHP) in /root/mikrotik_plugin/fastnetmon_mikrotik.php on line 31 PHP Warning: Use of undefined constant api_user - assumed 'api_user' (this will throw an Error in a future version of PHP) in /root/mikrotik_plugin/fastnetmon_mikrotik.php on line 32 PHP Warning: Use of undefined constant api_pass - assumed 'api_pass' (this will throw an Error in a future version of PHP) in /root/mikrotik_plugin/fastnetmon_mikrotik.php on line 33 PHP Warning: Use of undefined constant ip_mikrotik - assumed 'ip_mikrotik' (this will throw an Error in a future version of PHP) in /root/mikrotik_plugin/fastnetmon_mikrotik.php on line 65 PHP Warning: Use of undefined constant api_user - assumed 'api_user' (this will throw an Error in a future version of PHP) in /root/mikrotik_plugin/fastnetmon_mikrotik.php on line 65 PHP Warning: Use of undefined constant api_pass - assumed 'api_pass' (this will throw an Error in a future version of PHP) in /root/mikrotik_plugin/fastnetmon_mikrotik.php on line 65 (not back to "root@fastnetmon:~# ")

pavel-odintsov commented 3 years ago

@elmaxid can you look on it, please?

hexicans commented 3 years ago

Temporary, I have recoded the unban process, I do a connection to router, using php ssh. It is not secure but it's work.

pavel-odintsov commented 3 years ago

Can you try updating to latest stable RouterOS version and trying it again? @elmaxid have tried replicating issue in test lab without success.

hexicans commented 3 years ago

Pavel, I can't test now because the router is the core router of our network. I close the issue and I will reopen it when update is done.