Hello,
we got a customer that periodically tries to access other network devices (I think he/she gots some good hacking skills since he/she is able to find other customers ip addresses) using ssh or port 8291
I want to prove that is her/his fault by making a script that listens for outgoing ssh/8291 connections.
Basically I want the result of torch command into a variable like:
:set $test [/tool torch interface=ether1 port=ssh]
:if ($test != 0) do {
/log info "Outgoing ssh connection attempt"
}
is it possible?or is there another way to achieve the same result?
in my opinion, allowin ssh only from inside lan or “seeing” others IP it is not a security issue. I use port knockinf when I need to access from outside the network.
I personally suggest to use very strong password first
You only need to add a firewall filter rule (in input or forward depending on what you are after) that will log the traffic, then you can still accept it for now and later see if you would want to change it to block.
It is likely that your customer does not have so good hacking skills, but rather he has bad security skills and their router has been hacked and is now trying to find new victims.
Of course it depends on your service relation with customers whether you need to do anything about that. When you manage their routers, you are in trouble.