Joined: Fri Jan 23, 2009 9:51 am Posts: 199
Karma: 0
Location: Owerri, Nigeria
Hello, I have been seeing this user trying with many username trying to hack into my MT router. I want to know how to block this user and others because i cannot ascertain if the hack actiually gained access or not.
Here is what i see when i open a new terminal in my MT box. feb/08/2010 13:37:21 system,error,critical login failure for user root from 93.115.7.2 via ssh feb/08/2010 13:37:31 system,error,critical login failure for user root from 93.115.7.2 via ssh feb/08/2010 13:37:39 system,error,critical login failure for user root from 93.115.7.2 via ssh feb/08/2010 13:37:46 system,error,critical login failure for user root from 93.115.7.2 via ssh feb/08/2010 13:37:55 system,error,critical login failure for user root from 93.115.7.2 via ssh feb/08/2010 13:38:02 system,error,critical login failure for user root from 93.115.7.2 via ssh feb/08/2010 13:38:08 system,error,critical login failure for user root from 93.115.7.2 via ssh feb/08/2010 13:38:16 system,error,critical login failure for user root from 93.115.7.2 via ssh
This is very critical and need urgent attention. Thanks as i wait your response
Accept new connections on 22 at a rate of 2/minute, then make the next rule add the source to an address list for 1 hour that is blocked before accepting established/related connections.
Joined: Fri Jan 23, 2009 9:51 am Posts: 199
Karma: 0
Location: Owerri, Nigeria
Thanks fewi for the explanations
I am confused more on what roadraces said, how do i make the rukle or add the rule as quoted below.
roadracer96 wrote:
Accept new connections on 22 at a rate of 2/minute, then make the next rule add the source to an address list for 1 hour that is blocked before accepting established/related connections.
Works like a champ.
Expecting more response as i want to protect my MT
This same chain is used on multiple servers behind the MT, so the rate is 10/minute. You would want to adjust it for in-interface, etc, etc. I have nested chains, so it already knows it.
Block anything in that address list from ALL services, period. (Test to make sure it works. Dont want you to DOS yourself) add action=jump chain=forward comment="***Drop Allow2block***" disabled=no in-interface=ether1 jump-target=drop src-address-list=allow2block
Make sure it is placed before established/related connections. This will sever any connections already made when it is added to the address-list add action=accept chain=forward comment="***Accept Established/Related***" connection-state=established disabled=no add action=accept chain=forward comment="" connection-state=related disabled=no add action=accept chain=input comment="" connection-state=established disabled=no add action=accept chain=input comment="" connection-state=related disabled=no
......All your regular rules...
This puts in in an address list for 1 day that gets completely blocked from everything behind the MT. I dont care about the riff-raff. They dont need to use my **it. add action=jump chain=ca-in comment="" connection-state=new disabled=no dst-port=22 jump-target=allow2blocklist protocol=tcp add action=accept chain=allow2blocklist comment=";;;;;;ALLOW 2 BLOCK" disabled=no add action=accept chain=allow2blocklist comment="" disabled=no limit=10/1m,20 add action=add-src-to-address-list address-list=allow2block address-list-timeout=1d chain=allow2blocklist comment="" disabled=no add action=jump chain=allow2blocklist comment="" disabled=no jump-target=drop add action=log chain=drop comment="" disabled=no log-prefix="" add action=drop chain=drop comment="" disabled=no
Joined: Fri Jan 23, 2009 9:51 am Posts: 199
Karma: 0
Location: Owerri, Nigeria
Thanks all, it worked like a charm, after chkecking my MT box, i did not see those ip addresses again meaning they are just blocked from accessing the router.
Many thanks to all that responded to this urgent problem i had.
Joined: Fri Jan 23, 2009 9:51 am Posts: 199
Karma: 0
Location: Owerri, Nigeria
Sorry about my previous response, i am still noticing some different ip address trying to hack my MT again. feb/12/2010 10:22:32 system,error,critical login failure for user root from 77.6 8.56.181 via ssh feb/12/2010 10:22:38 system,error,critical login failure for user root from 77.6 8.56.181 via ssh feb/12/2010 10:22:45 system,error,critical login failure for user root from 77.6 8.56.181 via ssh feb/12/2010 11:49:34 system,error,critical login failure for user root from 124. 42.6.71 via ssh feb/12/2010 11:49:42 system,error,critical login failure for user root from 124. 42.6.71 via ssh feb/12/2010 11:49:49 system,error,critical login failure for user root from 124. 42.6.71 via ssh feb/12/2010 12:35:46 system,error,critical login failure for user root from 61.1 39.33.207 via ssh
I have started having some problem with my network of late. I have a router fo one of my hotspot users, but he cannot browse the net or get connected with the router but hen he connects directly to his computer he gets connected. i ant to ask if there is something that is blocking the router from not getting ip address automatically but when i ue the pc it gets or acquires i[ address.
here is my filter rules, Flags: X - disabled, I - invalid, D - dynamic 0 ;;; Tcp Connection Limit chain=forward protocol=tcp tcp-flags=syn connection-limit=41,32 action=drop
How about limiting the SYN/ACK/PSH/FIN flags per seconds/per dst (attacker)/per tcp 20-23 (this case)?
Usually automated brute force scripts send a SYN packet every 5 seconds. After that the victim would send back 4 packets to the attacker, ending with a ACK/FIN flag. If we can control those 4 packets from the victim, and have a limit of, say, 16 packets/25 seconds, the dst automatically is added to bruteforce list, and one can block the list with output chain.
Seems like a better solution (in a way), but is it possible to apply it? I tried it, but it will kick anyone who tries to connect on port 20-23, on first try.
Joined: Thu Jun 07, 2007 1:10 am Posts: 285
Karma: 4
This works for me. Mine is bridged. Ether1 facing Wan. Change to suit your needs. addresses are created dynamically in address list. "NoBlock" in 2nd to last line added because something I didn't want blocked got blocked.
This works for me. Mine is bridged. Ether1 facing Wan. Change to suit your needs. addresses are created dynamically in address list. "NoBlock" in 2nd to last line added because something I didn't want blocked got blocked.
Users browsing this forum: Bing [Bot], Exabot [Bot], sudiptakp and 17 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum