Wesker
Well-known member
We've been having ongoing issues with denial service attacks the past several months but it's been increasingly bad this quarter. We're currently running through cloudflare with our host who uses Voxility. This recent attack has taken down our site for a day now as they're bypassing cloudflare and targeting the server directly again which the host has been unable to mitigate. We're in early preparations to move to Amazon Web Services this week who should be able to handle these issues but looking for a short term solution here.
Here is what our host said:
Your site is getting flooded with TIME_WAIT connections due to which you are facing this issue.
=========================
tcp 0 0 Host IP 162.158.180.14:47854 TIME_WAIT -
tcp 0 0 Host IP 162.158.76.95:47986 TIME_WAIT -
tcp 0 0 Host IP 172.68.181.125:49782 TIME_WAIT -
tcp 0 0 Host IP 108.162.214.153:22456 TIME_WAIT -
tcp 0 0 Host IP 172.69.252.78:19248 TIME_WAIT -
tcp 0 0 Host IP 108.162.214.153:23526 TIME_WAIT -
tcp 0 0 Host IP 162.158.109.239:21678 TIME_WAIT -
tcp 0 0 Host IP 172.68.56.148:53920 TIME_WAIT -
tcp 0 0 Host IP 172.69.205.29:24222 TIME_WAIT -
tcp 0 0 Host IP 162.158.77.52:28032 TIME_WAIT -
tcp 0 0 Host IP 162.158.117.135:22960 TIME_WAIT -
tcp 0 0 Host IP 108.162.214.153:57376 TIME_WAIT -
tcp 0 0 Host IP 108.162.214.4:39844 TIME_WAIT -
tcp 0 0 Host IP 108.162.214.153:47406 TIME_WAIT -
tcp 0 0 Host IP 162.158.60.40:46680 TIME_WAIT -
tcp 0 0 Host IP 108.162.214.44:12720 TIME_WAIT -
tcp 0 0 Host IP 141.101.64.27:43852 TIME_WAIT -
tcp 0 0 Host IP 162.158.105.132:43786 TIME_WAIT -
tcp 0 0 Host IP 162.158.77.138:26552 TIME_WAIT -
tcp 0 0 Host IP 172.68.1.6:9586 TIME_WAIT -
tcp 0 0 Host IP 162.158.76.95:42454 TIME_WAIT -
tcp 0 0 Host IP 172.68.33.32:24582 TIME_WAIT -
tcp 0 0 Host IP 108.162.213.81:10732 TIME_WAIT -
tcp 0 0 Host IP 172.68.14.249:19978 TIME_WAIT -
tcp 0 0 Host IP 108.162.217.111:31954 TIME_WAIT -
tcp 0 0 Host IP 162.158.76.77:56756 TIME_WAIT -
tcp 0 0 Host IP 162.158.145.29:57796 TIME_WAIT -
Their are continuous 2041 connections to this server due to which you are receiving GATEWAY error. We would suggest you to null route your domain for few hours to let the attack switch to another IP or contact nginx administrator to check if they can do any thing in this regards.
======================================
So I'm seeing a ton of SYN_RECV
I'm not sure that this is the problem but this is well outside my knowledge. I was checking for a possible SYN flood and found that. I'm going to pass this over to Advanced Support to see if they know what it may be.
======================================
We have investigated your issue and found that their is attack on yoru server due to which you are facing this issue. Below are the error_logs related to same.
=====================
2020/04/19 14:03:54 [alert] 8841#0: *403355 socket() failed (24: Too many open files) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com"
2020/04/19 14:30:08 [error] 14966#0: *2120 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com", referrer: "https://www.website.com/"
2020/04/19 14:30:08 [error] 14966#0: *2155 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com", referrer: "https://www.website.com/"
2020/04/19 14:30:08 [error] 14966#0: *2186 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com", referrer: "https://www.website.com/"
2020/04/19 14:30:08 [error] 14966#0: *2210 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com", referrer: "https://www.website.com/"
2020/04/19 14:30:09 [error] 14966#0: *2232 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com", referrer: "https://www.website.com/"
2020/04/19 15:14:01 [error] 19187#0: *21886 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com", referrer: "https://www.google.com/"
2020/04/19 15:14:01 [error] 19187#0: *21938 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com"
2020/04/19 15:14:23 [error] 19190#0: *25506 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com", referrer: "https://www.google.com/"
=====================
We have found following IP's hitting your server the most.
Hits IP adresss
10597 40.77.167.53
10732 194.156.251.172
10861 176.9.1.234
11038 93.123.176.197
11288 182.161.28.128
12490 212.112.122.167
12907 79.126.114.153
13745 84.237.190.136
16000 140.0.30.136
16466 71.75.80.198
18173 5.52.241.160
18410 64.83.188.148
19151 121.200.6.43
19347 212.34.30.92
31753 95.65.92.244
33648 94.54.21.22
42715 212.34.12.255
56861 5.112.67.207
We have blocked this IP address in server firewall still their are high SYN_SENT process on your server.
tcp 0 1 :58452 Host IP:4443 SYN_SENT 19185/nginx: worker
tcp 0 1 Host IP:58284 Host IP:4443 SYN_SENT 19186/nginx: worker
tcp 0 1 Host IP:59174 Host IP:4443 SYN_SENT 19183/nginx: worker
tcp 0 1 Host IP:57338 Host IP:4443 SYN_SENT 19185/nginx: worker
tcp 0 1 Host IP:57558 Host IP:4443 SYN_SENT 19186/nginx: worker
tcp 0 1 Host IP:58332 Host IP:4443 SYN_SENT 19181/nginx: worker
tcp 0 1 Host IP:56272 Host IP:4443 SYN_SENT 19181/nginx: worker
tcp 0 1 Host IP:59916 Host IP:4443 SYN_SENT 19187/nginx: worker
tcp 0 1 Host IP:59026 Host IP:4443 SYN_SENT 19187/nginx: worker
tcp 0 1 Host IP:59124 Host IP:4443 SYN_SENT 19186/nginx: worker
tcp 0 1 Host IP:58672 Host IP:4443 SYN_SENT 19183/nginx: worker
tcp 0 1 Host IP:56098 Host IP:4443 SYN_SENT 19186/nginx: worker
tcp 0 1 Host IP:57922 Host IP:4443 SYN_SENT 19186/nginx: worker
tcp 0 1 Host IP:59678 Host IP:4443 SYN_SENT 19183/nginx: worker
tcp 0 1 Host IP:58920 Host IP:4443 SYN_SENT 19183/nginx: worker
tcp 0 1 Host IP:56048 Host IP:4443 SYN_SENT 19181/nginx: worker
tcp 0 1 Host IP:57962 Host IP:4443 SYN_SENT 19190/nginx: worker
tcp 0 1 Host IP:58210 Host IP:4443 SYN_SENT 19183/nginx: worker
tcp 0 1 Host IP:57352 Host IP:4443 SYN_SENT 19187/nginx: worker
tcp 0 1 Host IP:56816 Host IP:4443 SYN_SENT 19181/nginx: worker
tcp 0 1 Host IP:56266 Host IP:4443 SYN_SENT 19181/nginx: worker
Here is what our host said:
Your site is getting flooded with TIME_WAIT connections due to which you are facing this issue.
=========================
tcp 0 0 Host IP 162.158.180.14:47854 TIME_WAIT -
tcp 0 0 Host IP 162.158.76.95:47986 TIME_WAIT -
tcp 0 0 Host IP 172.68.181.125:49782 TIME_WAIT -
tcp 0 0 Host IP 108.162.214.153:22456 TIME_WAIT -
tcp 0 0 Host IP 172.69.252.78:19248 TIME_WAIT -
tcp 0 0 Host IP 108.162.214.153:23526 TIME_WAIT -
tcp 0 0 Host IP 162.158.109.239:21678 TIME_WAIT -
tcp 0 0 Host IP 172.68.56.148:53920 TIME_WAIT -
tcp 0 0 Host IP 172.69.205.29:24222 TIME_WAIT -
tcp 0 0 Host IP 162.158.77.52:28032 TIME_WAIT -
tcp 0 0 Host IP 162.158.117.135:22960 TIME_WAIT -
tcp 0 0 Host IP 108.162.214.153:57376 TIME_WAIT -
tcp 0 0 Host IP 108.162.214.4:39844 TIME_WAIT -
tcp 0 0 Host IP 108.162.214.153:47406 TIME_WAIT -
tcp 0 0 Host IP 162.158.60.40:46680 TIME_WAIT -
tcp 0 0 Host IP 108.162.214.44:12720 TIME_WAIT -
tcp 0 0 Host IP 141.101.64.27:43852 TIME_WAIT -
tcp 0 0 Host IP 162.158.105.132:43786 TIME_WAIT -
tcp 0 0 Host IP 162.158.77.138:26552 TIME_WAIT -
tcp 0 0 Host IP 172.68.1.6:9586 TIME_WAIT -
tcp 0 0 Host IP 162.158.76.95:42454 TIME_WAIT -
tcp 0 0 Host IP 172.68.33.32:24582 TIME_WAIT -
tcp 0 0 Host IP 108.162.213.81:10732 TIME_WAIT -
tcp 0 0 Host IP 172.68.14.249:19978 TIME_WAIT -
tcp 0 0 Host IP 108.162.217.111:31954 TIME_WAIT -
tcp 0 0 Host IP 162.158.76.77:56756 TIME_WAIT -
tcp 0 0 Host IP 162.158.145.29:57796 TIME_WAIT -
Their are continuous 2041 connections to this server due to which you are receiving GATEWAY error. We would suggest you to null route your domain for few hours to let the attack switch to another IP or contact nginx administrator to check if they can do any thing in this regards.
======================================
So I'm seeing a ton of SYN_RECV
I'm not sure that this is the problem but this is well outside my knowledge. I was checking for a possible SYN flood and found that. I'm going to pass this over to Advanced Support to see if they know what it may be.
======================================
We have investigated your issue and found that their is attack on yoru server due to which you are facing this issue. Below are the error_logs related to same.
=====================
2020/04/19 14:03:54 [alert] 8841#0: *403355 socket() failed (24: Too many open files) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com"
2020/04/19 14:30:08 [error] 14966#0: *2120 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com", referrer: "https://www.website.com/"
2020/04/19 14:30:08 [error] 14966#0: *2155 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com", referrer: "https://www.website.com/"
2020/04/19 14:30:08 [error] 14966#0: *2186 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com", referrer: "https://www.website.com/"
2020/04/19 14:30:08 [error] 14966#0: *2210 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com", referrer: "https://www.website.com/"
2020/04/19 14:30:09 [error] 14966#0: *2232 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com", referrer: "https://www.website.com/"
2020/04/19 15:14:01 [error] 19187#0: *21886 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com", referrer: "https://www.google.com/"
2020/04/19 15:14:01 [error] 19187#0: *21938 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com"
2020/04/19 15:14:23 [error] 19190#0: *25506 connect() failed (111: Connection refused) while connecting to upstream, client: 49.248.139.244, server: website.com, request: "GET / HTTP/1.1", upstream: "https://Host IP:4443/", host: "www.website.com", referrer: "https://www.google.com/"
=====================
We have found following IP's hitting your server the most.
Hits IP adresss
10597 40.77.167.53
10732 194.156.251.172
10861 176.9.1.234
11038 93.123.176.197
11288 182.161.28.128
12490 212.112.122.167
12907 79.126.114.153
13745 84.237.190.136
16000 140.0.30.136
16466 71.75.80.198
18173 5.52.241.160
18410 64.83.188.148
19151 121.200.6.43
19347 212.34.30.92
31753 95.65.92.244
33648 94.54.21.22
42715 212.34.12.255
56861 5.112.67.207
We have blocked this IP address in server firewall still their are high SYN_SENT process on your server.
tcp 0 1 :58452 Host IP:4443 SYN_SENT 19185/nginx: worker
tcp 0 1 Host IP:58284 Host IP:4443 SYN_SENT 19186/nginx: worker
tcp 0 1 Host IP:59174 Host IP:4443 SYN_SENT 19183/nginx: worker
tcp 0 1 Host IP:57338 Host IP:4443 SYN_SENT 19185/nginx: worker
tcp 0 1 Host IP:57558 Host IP:4443 SYN_SENT 19186/nginx: worker
tcp 0 1 Host IP:58332 Host IP:4443 SYN_SENT 19181/nginx: worker
tcp 0 1 Host IP:56272 Host IP:4443 SYN_SENT 19181/nginx: worker
tcp 0 1 Host IP:59916 Host IP:4443 SYN_SENT 19187/nginx: worker
tcp 0 1 Host IP:59026 Host IP:4443 SYN_SENT 19187/nginx: worker
tcp 0 1 Host IP:59124 Host IP:4443 SYN_SENT 19186/nginx: worker
tcp 0 1 Host IP:58672 Host IP:4443 SYN_SENT 19183/nginx: worker
tcp 0 1 Host IP:56098 Host IP:4443 SYN_SENT 19186/nginx: worker
tcp 0 1 Host IP:57922 Host IP:4443 SYN_SENT 19186/nginx: worker
tcp 0 1 Host IP:59678 Host IP:4443 SYN_SENT 19183/nginx: worker
tcp 0 1 Host IP:58920 Host IP:4443 SYN_SENT 19183/nginx: worker
tcp 0 1 Host IP:56048 Host IP:4443 SYN_SENT 19181/nginx: worker
tcp 0 1 Host IP:57962 Host IP:4443 SYN_SENT 19190/nginx: worker
tcp 0 1 Host IP:58210 Host IP:4443 SYN_SENT 19183/nginx: worker
tcp 0 1 Host IP:57352 Host IP:4443 SYN_SENT 19187/nginx: worker
tcp 0 1 Host IP:56816 Host IP:4443 SYN_SENT 19181/nginx: worker
tcp 0 1 Host IP:56266 Host IP:4443 SYN_SENT 19181/nginx: worker