Hello,
I'm preety new to MT and I'm totally new to ROS scripting... Recently, I notice a large number of unsuccessfull attepmts to log in into my VoIP server at home (actually it's just a Raspberry PI with debian and FreePBX+Asterisk). Each time I check - the IP address is from China, so I wan't to add those addresses automatically to my "SIP SPAM" address list which is blocked on MT.
At this moment - I use a bash script at my RPI that calls a ip-api.com API and if the response contains "countryCode":"CN" then it's added to iptables with DROP and iptables is beign reloaded.
I'd like to do the same on my MT so the connection won't even pass the router, so it will raise a network security level and it will lower a network traffic.
But honestly.... I have no idea on how to do it. I've google'ing for some answears, but found nothing interesting...
Please - point me out to a right direction
Thank you in advance,
Tom