🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Server under SYN attack

#275534
From: 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
Technical Details
Message-ID: <mqdcaq$8jt$1@toxic.dizum.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
References: <46ed2075d3ade53186c00d3fc379f83f@dizum.com> <12c9ad1a88dca13e57bafd03ee165649@foto.nl1.torservers.net>

Show Full Headers
Complete Article Headers
Message-ID: <mqdcaq$8jt$1@toxic.dizum.net>
Subject: Re: Server under SYN attack
Date: Tue, 11 Aug 2015 17:44:59 +0000
From: Alex de Joode <usura@despair.sabotage.org>
References: <46ed2075d3ade53186c00d3fc379f83f@dizum.com> <12c9ad1a88dca13e57bafd03ee165649@foto.nl1.torservers.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: dizum.com - The Internet Problem Provider.
Lines: 58
NNTP-Posting-Host: despair.sabotage.org
X-Trace: toxic.dizum.net 1439315099 8829 46.23.85.40 (11 Aug 2015 17:44:59 GMT)
X-Complaints-To: abuse@dizum.net
NNTP-Posting-Date: Tue, 11 Aug 2015 17:44:59 +0000 (UTC)
Cancel-Lock: sha1:8337xFzmqVPEdPcmdbS1DQCPAEc=