{"id":330,"date":"2010-01-05T16:24:17","date_gmt":"2010-01-05T08:24:17","guid":{"rendered":"http:\/\/www.computersolutions.cn\/blog\/?p=330"},"modified":"2010-01-05T16:25:04","modified_gmt":"2010-01-05T08:25:04","slug":"outgoing-tls-port-denial-of-service-fixed","status":"publish","type":"post","link":"https:\/\/www.computersolutions.cn\/blog\/2010\/01\/outgoing-tls-port-denial-of-service-fixed\/","title":{"rendered":"Outgoing TLS port Denial of Service &#8211; Fixed"},"content":{"rendered":"<p>Noticed that our incoming TLS connection queue was a little high &#8211; running at 60 concurrent connections for an hour or so.<\/p>\n<p>A check of the queue revealed that all the connections were coming from a single IP &#8211; and were tying up the queue, making it a denial of service attack.  This one ip address was connecting and reconnecting multiple times, hogging up all the connections.<br \/>\n<!--more--><br \/>\nI&#8217;ve blocked that ip address, and restarted the TLS service, its back at normal levels now.<\/p>\n<p>For the interested &#8211; <\/p>\n<p><strong>Connections:<\/strong><\/p>\n<blockquote><p>mail:\/var\/log\/qmail\/qmail-tls# netstat -an &#8211;numeric-ports | grep 587 | grep 58.246.24.242<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:24384     ESTABLISHED<br \/>\ntcp        1      0 61.129.49.190:587       58.246.24.242:39581     CLOSE_WAIT<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:11625     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:42614     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:46630     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:20802     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:51956     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:4463      ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:39878     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:43678     ESTABLISHED<br \/>\ntcp        1      0 61.129.49.190:587       58.246.24.242:39181     CLOSE_WAIT<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:62054     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:64421     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:24326     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:58740     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:25779     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:50209     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:41358     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:32383     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:27925     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:46540     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:7049      ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:13999     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:62962     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:19771     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:43604     ESTABLISHED<br \/>\ntcp        1      0 61.129.49.190:587       58.246.24.242:38757     CLOSE_WAIT<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:39909     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:30470     ESTABLISHED<br \/>\ntcp        1      0 61.129.49.190:587       58.246.24.242:39754     CLOSE_WAIT<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:61393     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:52072     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:22294     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:60398     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:60530     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:36049     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:1426      ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:40190     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:15402     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:23457     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:65187     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:39910     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:23181     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:3286      ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:40540     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:12957     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:39829     ESTABLISHED<br \/>\ntcp        0      0 61.129.49.190:587       58.246.24.242:19748     ESTABLISHED<\/p><\/blockquote>\n<p><strong>IP Owner:<\/strong><\/p>\n<blockquote><p>mail:\/var\/log\/qmail\/qmail-tls# whois 58.246.24.242<\/p>\n<p>% [whois.apnic.net node-2]<br \/>\n% Whois data copyright terms    http:\/\/www.apnic.net\/db\/dbcopyright.html<\/p>\n<p>inetnum:      58.246.24.240 &#8211; 58.246.24.247<br \/>\nnetname:      SH-Ribeira<br \/>\ncountry:      cn<br \/>\ndescr:        Ribeira (Shanghai) Business Consulting Co., Ltd.<br \/>\nadmin-c:      YR194-AP<br \/>\ntech-c:       YR194-AP<br \/>\nstatus:       ASSIGNED NON-PORTABLE<br \/>\nchanged:      sh-ipmaster@chinaunicom.cn 20081125<br \/>\nmnt-by:       MAINT-CNCGROUP-SH<br \/>\nsource:       APNIC<\/p><\/blockquote>\n<p>I&#8217;ve sent a note to China Unicom, but don&#8217;t expect any reply.   A google of Ribiera Shanghai doesn&#8217;t reveal any obvious people to complain to either.   <\/p>\n<p>Yet another instance where I should put some active logging into the server to notify me when queue \/ connection sizes stay at high levels&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Noticed that our incoming TLS connection queue was a little high &#8211; running at 60 concurrent connections for an hour or so. A check of the queue revealed that all the connections were coming from a single IP &#8211; and were tying up the queue, making it a denial of service attack. This one ip [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[91,25],"tags":[],"class_list":["post-330","post","type-post","status-publish","format-standard","hentry","category-service-issues","category-technical-mumbo-jumbo"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/posts\/330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/comments?post=330"}],"version-history":[{"count":2,"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/posts\/330\/revisions"}],"predecessor-version":[{"id":332,"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/posts\/330\/revisions\/332"}],"wp:attachment":[{"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/media?parent=330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/categories?post=330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.computersolutions.cn\/blog\/wp-json\/wp\/v2\/tags?post=330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}