 | ssh off in 450G but stil login attempts i have ssh off in ip - services but when I look at
ip -firewall - address list I see a number of attempts that have been put on a blacklist by a script I have and it shows
Black list (SSH) and the ip address
only thing left in services is
winbox 8291 www 80
how does that happen and any way to block those attempts better right now they go to stage 1,2,3 and blacklist
thanks |
|
 bburley join:2010-04-30 Cold Lake, AB 1 edit | Add the following to ip firewall filter before any rules that detect SSH logins.
add chain=input action=drop protocol=tcp dst-port=22
Because your SSH service is not running your script is detecting a failed login and still doing its job. With a filter rule that drops any packet on SSH port 22, the script or the router will never see it.
The input chain is only for packets directed at the router itself. This will not affect the forward chain.
The only advantage to leaving it the way it is, is that you get too see a log of IP's that are trying. Since they are likely running scripts, every IP address on the Internet will probably see these attempts. |
|
 TomS_Git-r-donePremium,MVM join:2002-07-19 London, UK kudos:4 | reply to thewisperer As bburley says, you need to have the firewall "ignore" SSH related packets by dropping them on the floor when they come in.
To put it a slightly different way, youve disabled the service, but the firewall is still configured to accept and process packets, before it will try and send them onwards to the host itself, at which point there is no service to receive the packet, so it will generate some kind of message back in response (like ICMP port unreachable or some such.) |
|
 | reply to thewisperer thank you both: learning every day! |
|
 InssomniakThe GlitchPremium join:2005-04-06 Cayuga, ON kudos:1 | reply to TomS_ said by TomS_:As bburley says, you need to have the firewall "ignore" SSH related packets by dropping them on the floor when they come in.
That's messy. He should drop them into a bucket. Then empty the bucket periodically outside. -- OptionsDSL Wireless Internet »www.optionsdsl.ca |
|
 | reply to thewisperer Or you can just leave it be and not do anything.. -- »www.wirelessdatanet.net |
|
 TomS_Git-r-donePremium,MVM join:2002-07-19 London, UK kudos:4 | reply to Inssomniak That too.  |
|