Is that means someone using Brute Force attack on my server

kam

Verified User
Joined
Jan 4, 2009
Messages
55
Is that means someone using Brute Force attack on my server?

And what should I do right now ?

Now, the outbound Traffic hit 200K/s, normally, it's only 30-45K/s in average.



[root@server ~]# netstat -p
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 server.kammedia.com:http ::ffff:119.122.207.21:54111 TIME_WAIT -
tcp 0 0 174.36.149.93-static.r:http 187-27-165-129.3g.cla:49915 FIN_WAIT2 8025/httpd
tcp 0 0 174.36.149.93-static.r:http 187-27-165-129.3g.cla:49912 FIN_WAIT2 9534/httpd
tcp 0 0 174.36.149.93-static.r:http llf531168.crawl.yahoo:50053 TIME_WAIT -
tcp 0 0 174.36.149.93-static.r:http ::ffff:84.255.186.64:61361 TIME_WAIT -
tcp 0 248 server.kammedia.com:ssh **myip has been masked**.dyn.pac:8625 ESTABLISHED 7623/0
tcp 0 0 174.36.149.93-static.r:http ::ffff:117.196.149.16:50587 TIME_WAIT -
tcp 0 0 174.36.149.93-static.r:http static-208-80-195-35.:60888 TIME_WAIT -
tcp 0 0 174.36.149.93-static.r:http 16.130.189.72.cf:mpsysrmsvr TIME_WAIT -
tcp 0 0 174.36.149.93-static.r:http dhcp131.eastfowl2.iit:52640 TIME_WAIT -
tcp 0 0 174.36.149.93-static.r:http 18924131172.user.velo:50922 FIN_WAIT2 -
tcp 0 0 174.36.149.93-static.r:http 18924131172.user.velo:50924 FIN_WAIT2 -
tcp 0 0 174.36.149.93-static.r:http llf531088.crawl.yahoo:43699 TIME_WAIT -
tcp 0 0 server.kammedia.com:http crawl-66-249-70-119.g:48557 TIME_WAIT -
tcp 0 0 174.36.149.93-static.r:http crawl-66-249-73-26.go:63702 TIME_WAIT -
tcp 0 0 174.36.149.93-static.r:http crawl-66-249-73-26.go:37260 TIME_WAIT -
tcp 0 0 174.36.149.93-static.r:http llf531088.crawl.yahoo:43792 TIME_WAIT -
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ] DGRAM 1496 543/udevd @/org/kernel/udev/udevd
unix 2 [ ] DGRAM 10818 5804/hald @/org/freedesktop/hal/udev_event
unix 19 [ ] DGRAM 6056 2567/syslogd /dev/log
unix 3 [ ] STREAM CONNECTED 6022141 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022140 9769/imap-login
unix 3 [ ] STREAM CONNECTED 6022137 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022136 9770/imap-login
unix 3 [ ] STREAM CONNECTED 6022131 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022130 9764/imap-login
unix 3 [ ] STREAM CONNECTED 6022127 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022126 9766/imap-login
unix 3 [ ] STREAM CONNECTED 6022121 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022118 9768/imap-login
unix 3 [ ] STREAM CONNECTED 6022115 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022114 9762/imap-login
unix 3 [ ] STREAM CONNECTED 6022109 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022108 9763/imap-login
unix 3 [ ] STREAM CONNECTED 6022105 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022104 9767/imap-login
unix 3 [ ] STREAM CONNECTED 6022101 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022100 9765/imap-login
unix 3 [ ] STREAM CONNECTED 6022088 9770/imap-login
unix 3 [ ] STREAM CONNECTED 6022087 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6022085 9769/imap-login
unix 3 [ ] STREAM CONNECTED 6022084 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6022082 9768/imap-login
unix 3 [ ] STREAM CONNECTED 6022081 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6022077 9767/imap-login
unix 3 [ ] STREAM CONNECTED 6022076 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6022074 9766/imap-login
unix 3 [ ] STREAM CONNECTED 6022073 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6022071 9765/imap-login
unix 3 [ ] STREAM CONNECTED 6022070 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6022068 9764/imap-login
unix 3 [ ] STREAM CONNECTED 6022067 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6022066 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022065 9761/imap-login
unix 3 [ ] STREAM CONNECTED 6022061 9763/imap-login
unix 3 [ ] STREAM CONNECTED 6022060 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6022058 9762/imap-login
unix 3 [ ] STREAM CONNECTED 6022057 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6022056 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022055 9759/imap-login
unix 3 [ ] STREAM CONNECTED 6022052 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022051 9760/imap-login
unix 3 [ ] STREAM CONNECTED 6022043 9761/imap-login
unix 3 [ ] STREAM CONNECTED 6022042 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6022039 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022038 9758/imap-login
unix 3 [ ] STREAM CONNECTED 6022034 9760/imap-login
unix 3 [ ] STREAM CONNECTED 6022033 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6022031 9759/imap-login
unix 3 [ ] STREAM CONNECTED 6022030 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6022029 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022028 9757/imap-login
unix 3 [ ] STREAM CONNECTED 6022023 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022022 9756/imap-login
unix 3 [ ] STREAM CONNECTED 6022019 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022018 9755/imap-login
unix 3 [ ] STREAM CONNECTED 6022014 9758/imap-login
unix 3 [ ] STREAM CONNECTED 6022013 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6022012 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6022009 9754/pop3-login
unix 3 [ ] STREAM CONNECTED 6022001 9757/imap-login
unix 3 [ ] STREAM CONNECTED 6022000 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021996 9756/imap-login
unix 3 [ ] STREAM CONNECTED 6021995 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021993 9755/imap-login
unix 3 [ ] STREAM CONNECTED 6021992 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021991 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6021990 9752/pop3-login
unix 3 [ ] STREAM CONNECTED 6021987 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6021986 9753/pop3-login
unix 3 [ ] STREAM CONNECTED 6021982 9754/pop3-login
unix 3 [ ] STREAM CONNECTED 6021981 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021980 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6021979 9747/pop3-login
unix 3 [ ] STREAM CONNECTED 6021972 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6021971 9750/pop3-login
unix 3 [ ] STREAM CONNECTED 6021965 9753/pop3-login
unix 3 [ ] STREAM CONNECTED 6021964 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021962 9752/pop3-login
unix 3 [ ] STREAM CONNECTED 6021961 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021960 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6021959 9751/pop3-login
unix 3 [ ] STREAM CONNECTED 6021954 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6021953 9749/pop3-login
unix 3 [ ] STREAM CONNECTED 6021950 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6021949 9746/pop3-login
unix 3 [ ] STREAM CONNECTED 6021946 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6021945 9742/pop3-login
unix 3 [ ] STREAM CONNECTED 6021935 9751/pop3-login
unix 3 [ ] STREAM CONNECTED 6021934 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021932 9750/pop3-login
unix 3 [ ] STREAM CONNECTED 6021931 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021930 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6021929 9748/pop3-login
unix 3 [ ] STREAM CONNECTED 6021924 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6021923 9745/pop3-login
unix 3 [ ] STREAM CONNECTED 6021920 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6021919 9744/pop3-login
unix 3 [ ] STREAM CONNECTED 6021916 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6021915 9743/pop3-login
unix 3 [ ] STREAM CONNECTED 6021910 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6021907 9739/pop3-login
unix 3 [ ] STREAM CONNECTED 6021909 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6021908 9717/dovecot-auth /var/run/dovecot/login/default
unix 3 [ ] STREAM CONNECTED 6021906 9741/pop3-login
unix 3 [ ] STREAM CONNECTED 6021905 9740/pop3-login
unix 3 [ ] STREAM CONNECTED 6021897 9749/pop3-login
unix 3 [ ] STREAM CONNECTED 6021896 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021888 9748/pop3-login
unix 3 [ ] STREAM CONNECTED 6021887 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021885 9747/pop3-login
unix 3 [ ] STREAM CONNECTED 6021884 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021882 9746/pop3-login
unix 3 [ ] STREAM CONNECTED 6021881 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021879 9745/pop3-login
unix 3 [ ] STREAM CONNECTED 6021878 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021876 9744/pop3-login
unix 3 [ ] STREAM CONNECTED 6021875 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021873 9743/pop3-login
unix 3 [ ] STREAM CONNECTED 6021872 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021864 9742/pop3-login
unix 3 [ ] STREAM CONNECTED 6021863 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021861 9741/pop3-login
unix 3 [ ] STREAM CONNECTED 6021860 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021858 9740/pop3-login
unix 3 [ ] STREAM CONNECTED 6021857 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021855 9739/pop3-login
unix 3 [ ] STREAM CONNECTED 6021854 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6021797 9717/dovecot-auth
unix 3 [ ] STREAM CONNECTED 6021796 9716/dovecot
unix 2 [ ] DGRAM 6021787 9716/dovecot
unix 3 [ ] STREAM CONNECTED 6015887 5615/mysqld /var/lib/mysql/mysql.sock
unix 3 [ ] STREAM CONNECTED 6015886 9534/httpd
unix 3 [ ] STREAM CONNECTED 6015877 5615/mysqld /var/lib/mysql/mysql.sock
unix 3 [ ] STREAM CONNECTED 6015876 9022/httpd
unix 3 [ ] STREAM CONNECTED 5999319 5615/mysqld /var/lib/mysql/mysql.sock
unix 3 [ ] STREAM CONNECTED 5999318 8803/httpd
unix 3 [ ] STREAM CONNECTED 5996662 5615/mysqld /var/lib/mysql/mysql.sock
unix 3 [ ] STREAM CONNECTED 5996661 8025/httpd
unix 3 [ ] STREAM CONNECTED 5996657 5615/mysqld /var/lib/mysql/mysql.sock
unix 3 [ ] STREAM CONNECTED 5996656 8026/httpd
unix 3 [ ] STREAM CONNECTED 5996643 5615/mysqld /var/lib/mysql/mysql.sock
unix 3 [ ] STREAM CONNECTED 5996642 7999/httpd
unix 2 [ ] DGRAM 5996395 7972/named
unix 2 [ ] DGRAM 5995210 7623/0
unix 2 [ ] DGRAM 717586 2464/auditd
unix 3 [ ] STREAM CONNECTED 12454 5846/gam_server @/tmp/fam-root-
unix 3 [ ] STREAM CONNECTED 12450 5840/python
unix 3 [ ] STREAM CONNECTED 12426 2691/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 12425 5804/hald
unix 3 [ ] STREAM CONNECTED 12418 2691/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 12417 5840/python
unix 3 [ ] STREAM CONNECTED 12378 5804/hald @/var/run/hald/dbus-mjBtPf8lti
unix 3 [ ] STREAM CONNECTED 12377 5836/hdb
unix 3 [ ] STREAM CONNECTED 12369 5804/hald @/var/run/hald/dbus-mjBtPf8lti
unix 3 [ ] STREAM CONNECTED 12366 5834/scd0
unix 3 [ ] STREAM CONNECTED 12360 5804/hald @/var/run/hald/dbus-mjBtPf8lti
unix 3 [ ] STREAM CONNECTED 12358 5832/scd1
unix 3 [ ] STREAM CONNECTED 12170 5804/hald @/var/run/hald/dbus-mjBtPf8lti
unix 3 [ ] STREAM CONNECTED 12169 5820/event1
unix 3 [ ] STREAM CONNECTED 12164 2831/acpid /var/run/acpid.socket
unix 3 [ ] STREAM CONNECTED 12163 5819/acpid.socket
unix 3 [ ] STREAM CONNECTED 12158 5804/hald @/var/run/hald/dbus-mjBtPf8lti
unix 3 [ ] STREAM CONNECTED 12157 5819/acpid.socket
unix 3 [ ] STREAM CONNECTED 10813 5804/hald @/var/run/hald/dbus-Frm6MFDtc5
unix 3 [ ] STREAM CONNECTED 10812 5805/hald-runner
unix 3 [ ] STREAM CONNECTED 10782 2691/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 10781 5793/avahi-daemon:
unix 3 [ ] STREAM CONNECTED 10776 5794/avahi-daemon:
unix 3 [ ] STREAM CONNECTED 10775 5793/avahi-daemon:
unix 2 [ ] DGRAM 10773 5793/avahi-daemon:
unix 2 [ ] DGRAM 10645 5732/crond
unix 2 [ ] DGRAM 10370 5677/gpm
unix 2 [ ] DGRAM 10144 5580/ntpd
unix 2 [ ] DGRAM 10134 5567/xinetd
unix 2 [ ] DGRAM 6726 2842/snmpd
unix 2 [ ] DGRAM 6638 2813/automount
unix 2 [ ] DGRAM 6585 2792/hidd
unix 2 [ ] DGRAM 6556 2774/pcscd
unix 3 [ ] STREAM CONNECTED 6472 2691/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 6470 2701/hcid
unix 2 [ ] DGRAM 6453 2707/sdpd
unix 2 [ ] DGRAM 6443 2701/hcid
unix 3 [ ] STREAM CONNECTED 6423 2691/dbus-daemon
unix 3 [ ] STREAM CONNECTED 6422 2691/dbus-daemon
unix 3 [ ] STREAM CONNECTED 6386 2674/rpc.idmapd
unix 3 [ ] STREAM CONNECTED 6385 2674/rpc.idmapd
unix 2 [ ] DGRAM 6280 2637/rpc.statd
unix 2 [ ] DGRAM 6064 2570/klogd
unix 3 [ ] STREAM CONNECTED 5915 2464/auditd
unix 3 [ ] STREAM CONNECTED 5914 2466/audispd
 

Attachments

  • p1.png
    p1.png
    41.3 KB · Views: 222
  • p2.png
    p2.png
    37.2 KB · Views: 202
Netstat is not too much of help. I'd suggest installing "tshark" (the command line version of Wireshark) and look at the actual traffic. "iptraf" is also a good program to investigate what's going on.
 
Netstat is not too much of help. I'd suggest installing "tshark" (the command line version of Wireshark) and look at the actual traffic. "iptraf" is also a good program to investigate what's going on.

I just install the Wireshark via yum, but I don't know how to use tshark.

│ UDP (528 bytes) from 174.36.149.94:53 to 81.91.181.116:28548 on eth1 │
│ UDP (46 bytes) from 81.91.181.108:7622 to 174.36.149.95:53 on eth1 │
│ UDP (528 bytes) from 174.36.149.95:53 to 81.91.181.108:7622 on eth1 │
│ UDP (46 bytes) from 81.91.181.126:27840 to 174.36.149.94:53 on eth1 │
│ UDP (528 bytes) from 174.36.149.94:53 to 81.91.181.126:27840 on eth1 │
│ UDP (46 bytes) from 81.91.181.126:9036 to 174.36.149.95:53 on eth1 │
│ UDP (528 bytes) from 174.36.149.95:53 to 81.91.181.126:9036 on eth1 │
│ UDP (46 bytes) from 81.91.181.121:32824 to 174.36.149.95:53 on eth1 │
│ UDP (528 bytes) from 174.36.149.95:53 to 81.91.181.121:32824 on eth1 │
│ UDP (46 bytes) from 81.91.181.101:32969 to 174.36.149.95:53 on eth1 │
│ UDP (528 bytes) from 174.36.149.95:53 to 81.91.181.101:32969 on eth1 │
│ UDP (46 bytes) from 81.91.181.97:15375 to 174.36.149.95:53 on eth1 │
│ UDP (528 bytes) from 174.36.149.95:53 to 81.91.181.97:15375 on eth1 │
│ UDP (46 bytes) from 81.91.181.105:24747 to 174.36.149.95:53 on eth1 │
│ UDP (528 bytes) from 174.36.149.95:53 to 81.91.181.105:24747 on eth1 │
│ UDP (46 bytes) from 81.91.181.112:33172 to 174.36.149.95:53 on eth1

In the iptraf interface, it's seem that the main traffic is go to port UPD / 53, UDP 53 is DNS Server traffic ??
 
Last edited:
Yes.
Either someone is using your DNS server to DoS 81.91.181.97, or someone at 81.91.181.97 is trying to DoS your server.
Just null route that address ("route add -host 81.91.181.97 reject") and you should be fine.

If you want an investigation to follow, just write an Email to the abuse mailbox of that address ([email protected] according to Whois record).
 
Last edited:
Yes.
Either someone is using your DNS server to DoS 81.91.181.97, or someone at 81.91.181.97 is trying to DoS your server.
Just null route that address ("route add -host 81.91.181.97 reject") and you should be fine.

If you want an investigation to follow, just write an Email to the abuse mailbox of that address ([email protected] according to Whois record).

The ip they used are keep changing, according to domaintools.com, sometime they used the China IP, Sometimes they used Russian IP.

The attack is not come from a fix IP.




│ UDP (46 bytes) from 81.91.181.96:17997 to 174.36.149.95:53 on eth1 │
│ UDP (528 bytes) from 174.36.149.95:53 to 81.91.181.96:17997 on eth1 │
│ UDP (54 bytes) from 61.140.11.217:49356 to 174.36.149.92:53 on eth1 │
│ UDP (150 bytes) from 174.36.149.92:53 to 61.140.11.217:49356 on eth1 │
│ UDP (46 bytes) from 81.91.181.101:20853 to 174.36.149.94:53 on eth1 │
│ UDP (528 bytes) from 174.36.149.94:53 to 81.91.181.101:20853 on eth1 │
│ UDP (46 bytes) from 81.91.181.101:33275 to 174.36.149.94:53 on eth1 │
│ UDP (528 bytes) from 174.36.149.94:53 to 81.91.181.101:33275 on eth1 │
│ UDP (46 bytes) from 81.91.181.119:31820 to 174.36.149.95:53 on eth1 │
│ UDP (528 bytes) from 174.36.149.95:53 to 81.91.181.119:31820 on eth1 │
│ UDP (46 bytes) from 81.91.181.114:35034 to 174.36.149.95:53 on eth1 │
│ UDP (528 bytes) from 174.36.149.95:53 to 81.91.181.114:35034 on eth1 │
│ UDP (46 bytes) from 81.91.181.123:20502 to 174.36.149.94:53 on eth1 │
│ UDP (528 bytes) from 174.36.149.94:53 to 81.91.181.123:20502 on eth1 │
│ UDP (46 bytes) from 81.91.181.101:40812 to 174.36.149.94:53 on eth1 │
│ UDP (528 bytes) from 174.36.149.94:53 to 81.91.181.101:40812 on eth1
 
Something like this might work
Code:
iptables -N NAMEDATTACK
iptables -A INPUT -p udp –dport 53 -m state –state NEW -j NAMEDATTACK
iptables -A NAMEDATTACK -m recent –set –name NAMED
iptables -A NAMEDATTACK -m recent –update –seconds 200 –hitcount 30 –name NAMED -j DROP

Note, I haven't tested it ... but it should work in theory
 
Back
Top