🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
11 messages
11 total messages Started by Anonymous Sat, 08 Aug 2015 20:56
Server under SYN attack
#275525
Author: Anonymous
Date: Sat, 08 Aug 2015 20:56
4 lines
824 bytes
  There is someone in Belize who had been hitting my server with 
SYN connection records for a couple of hours now, around 60 per 
second.  I am now simply dropping him, but is there any better way 
of handling this?
Re: Server under SYN attack
#275521
Author: Anonymous
Date: Sat, 08 Aug 2015 21:24
10 lines
1515 bytes
On Sat,  8 Aug 2015 20:56:25 +0000 (UTC), Anonymous <nobody@remailer.paranoici.org> wrote:

>  There is someone in Belize who had been hitting my server with 
>SYN connection records for a couple of hours now, around 60 per 
>second.  I am now simply dropping him, but is there any better way 
>of handling this?

Dropping them at the target of the attack is what you can do at your expense.

If you could get your upstream provider to do that for you, it would save you the bandwidth and load on your server.
Re: Server under SYN attack
#275526
Author: Anonymous
Date: Sat, 08 Aug 2015 22:06
3 lines
860 bytes
  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.
Re: Server under SYN attack
#275522
Author: Anonymous
Date: Sat, 08 Aug 2015 22:15
7 lines
1357 bytes
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.
Re: Server under SYN attack
#275523
Author: Anonymous Remailer (austria)
Date: Sat, 08 Aug 2015 23:08
21 lines
1731 bytes
> 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.
Re: Server under SYN attack
#275524
Author: Anonymous
Date: Sat, 08 Aug 2015 23:24
27 lines
2460 bytes
On Sun,  9 Aug 2015 01:08:49 +0200 (CEST), "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.

That's what  I meant  by you could block them yourself at your own expense. Sending rejects back to him doubles your cost.

But if your provider could block them further upstream, you wouldn't even know it was happening, let alone have to eat the bandwidth.
Re: Server under SYN attack
#275532
Author: Anonymous
Date: Tue, 11 Aug 2015 02:53
12 lines
1112 bytes
In article 
<f466352c291420d9dbc150d6d02111ec@remailer.paranoici.org>
Anonymous <nobody@remailer.paranoici.org> wrote:
>
>   There is someone in Belize who had been hitting my server with
> SYN connection records for a couple of hours now, around 60 per
> second.  I am now simply dropping him, but is there any better way
> of handling this?

Post the IP address of the miscreant.

Belize is not a big place.  Maybe something will happen to him.
Re: Server under SYN attack
#275528
Author: Jack Ryan
Date: Tue, 11 Aug 2015 06:37
27 lines
1926 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.
Re: Server under SYN attack
#275529
Author: 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
Re: Server under SYN attack
#275531
Author: Anonymous
Date: Tue, 11 Aug 2015 15:54
43 lines
1780 bytes
<snip>

> 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
>
> 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

  Actually, I am running this script now.  The one above is i/o 
intensive.

#!/bin/bash
#
# Detect SYN attack

while true; do
      sleep 1    # chk for syn attack every second

      if [[ $(netstat -ant | grep -c SYN_RECV) -gt 3 ]]; then
         netstat -ant > syn-attack.txt
         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


Note: the 'netstat -ant > syn-attack.txt' may not be quick enough to catch and list the SYN_RECV messages for the subsequent 'cat syn-attack.txt'.  If actually under attack, the i/o intensive script will work best.
Re: Server under SYN attack
#275534
Author: Alex de Joode
Date: Tue, 11 Aug 2015 17:44
58 lines
2327 bytes
Anonymous <anonymous@foto.nl1.torservers.net> wrote:

http://spamcleaner.org/en/misc/floodmon.html

floodmon is a daemon, and get's its info direct from /proc/net,
you can mail & mitigate.

Cheers.
-aj-

: <snip>
: 
:> 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
:>
:> 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
: 
:  Actually, I am running this script now.  The one above is i/o 
: intensive.
: 
: #!/bin/bash
: #
: # Detect SYN attack
: 
: while true; do
:      sleep 1    # chk for syn attack every second
: 
:      if [[ $(netstat -ant | grep -c SYN_RECV) -gt 3 ]]; then
:         netstat -ant > syn-attack.txt
:         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
: 
: 
: Note: the 'netstat -ant > syn-attack.txt' may not be quick enough to catch and list the SYN_RECV messages for the subsequent 'cat syn-attack.txt'.  If actually under attack, the i/o intensive script will work best.
: 


-- 
bitcoins:1QAthQz4LKHWZURTVax5F75mj6d5uY8shW
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads