🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #275529

Re: Server under SYN attack

#275529
From: Nomen Nescio
Date: Tue, 11 Aug 2015 13:56
64 lines
2976 bytes
> In article <8bc78e5e3d2fd181eca1c19030cde1e5@remailer.privacy.at>
> "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at>
> wrote:
>
>>
>>
>>> On Sat,  8 Aug 2015 22:06:05 +0000 (UTC), Anonymous <nobody@remailer.paranoici.org> wrote:
>>>
>>>
>>>>  Contacted them, but they said they could do nothing.  Probably
>>>> hopeing to get some extra cash out of me.  I will have to shut down
>>>> the vps for a spell if it goes on too long.
>>>
>>> Well, they could, but won't, and that's the difference.
>>
>>   That is what I thought.  I had read that you should contact the
>> server and that they should be able to do something.  Surely a VPS
>> sould have some kind of control as to who can access their system.
>>
>>   This is a direct SYN attack from one ip, so it was easy to block.
>>  I found him trying to break in with an apparent .php scripts, so I
>> dropped his ip.  He apparently got ticked and started the attack.
>> He hits for about 50 SYNs at a time and then takes a breather for a
>> few seconds.  I'll have to keep an eye on him and my VPS billing
>> page for a while.  I guess I could pelter him with REJECT --reject-
>> with tcp-reset, but that would probably co$t me.
>
> Post the IP.

  I can't remember the exact IPs.  There ended up being 3 in all, 
two from Belize and one from Russia.  The Russian one lasted only 
for a short time after I detected and blocked it.  I dropped the 
Belize addresses using the following:

189   7533  DROP  186.2.166.0/24       Aug 07 2015 05:32:16 PM
225   1421  DROP  186.2.164.0/23       Aug 10 2015 01:10:03 PM

I also made these iptables entries that are supposed to stop or 
stymie all SYN attacks:

iptables -N syn_flood
iptables -A INPUT -p tcp --syn -j syn_flood
iptables -A syn_flood -m limit --limit 1/s --limit-burst 3 -j RETURN
iptables -A syn_flood -j DROP

  I am also running the following script to detect any further 
attacks:

#!/bin/bash
#
# Detect SYN attack

while true; do
  sleep 1     # chk for syn attack every second
  netstat -ant > syn-attack.txt

  if [[ $(grep -c "SYN_RECV" syn-attack.txt) -gt 3 ]]; then
     cat syn-attack.txt | mail -s "Possible SYN attack?" \
me@myisp.net -r my@remailer.net
     exit 0  # this can be 'sleep 60' or > seconds
  fi
done

exit 0
Technical Details
Message-ID: <46ed2075d3ade53186c00d3fc379f83f@dizum.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <740a97f15df9174043ae8df228a3ab4b@remailer.cpunk.us>

Show Full Headers
Complete Article Headers
Message-ID: <46ed2075d3ade53186c00d3fc379f83f@dizum.com>
Subject: Re: Server under SYN attack
Date: Tue, 11 Aug 2015 13:56:23 +0000
From: Nomen Nescio <nobody@dizum.com>
References: <740a97f15df9174043ae8df228a3ab4b@remailer.cpunk.us>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: alt.privacy.anon-server
X-Abuse: abuse@dizum.com
Injection-Info: sewer.dizum.com - 194.109.206.211
X-Received-Bytes: 2886
Organization: dizum.com - The Internet Problem Provider