Article View: alt.privacy.anon-server
Article #312212Re: SYN-Attack-Suppressor-Routine
From: Grant Taylor
Date: Wed, 09 Dec 2020 05:35
Date: Wed, 09 Dec 2020 05:35
56 lines
3518 bytes
3518 bytes
On 12/8/20 6:26 PM, inwtx wrote: > Actually 10 to 70 is the amount I will sometimes see before my routine > blocks it.> Before I started using it, I would see SYN connections > in the thousands. Ah. That makes more sense. > SYN attacks don't actually have anything to do with number of > connections. SYN attacks just keep making connections until a > server breaks down. SYN flood attacks do consume resources. Specifically (pre)connection state entries. The connection state entries are a finite resource. Hence how it's possible to consume them and perform a denial of service. Linux's Syncookies, when enabled and active, DON'T consume (pre)connection state entries. Hence how they protect the system. > That is unless you have some kind of routine to automatically shut an > attack down. I used to just monitor to see if an attack was happening > and then manually block the IP. The most I saw before I manually > blocked it was 3600 connections. That was my first attack. It was > some punk in Belize. It was a legitimate IP and I reported him to > his ISP. He seemed to be enraged that I blocked him and began to hit > me the next morning from an open server in one of the baltic states. > That was the end of him. It sounds like it was more of a DoS than a DDoS. A full on SYN flood attack may send one SYN from hundreds of thousands of different IPs in a bot net. > I have never had a denial of service attack, but to live in fear > of provoking one by shutting down SYN attacks won't work with me. > DOSs don't last forever and can't really affect the remailer system > due to multiple chains. > > This system has worked perfectly for me. It usually shuts down > an attack after 2 to 3 SYNs with no acknowledge. It can't cause a > problem with my remailers because all remailer IPs are ACCEPTed prior > to the SYN-DROP-ROUTINE. Now my mind is wondering about using IPTables "recent" match extension. Increment upon Seeing a SYN and then decrement when you see an associated ACK. Thus providing a very near real time protection. Though you would need to be mindful of how many entries live in a recent table. (I think it can be a really big number.) Remember to account for subsequent ACKs and not artificially lower the count. Thank you for the additional real world information inwtx. -- Grant. . . . unix || die
Technical Details
Message-ID:
<rqpntu$utp$1@tncsrv09.home.tnetconsulting.net>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-mailReferences:
<rqoe1o$ae4$1@tncsrv09.home.tnetconsulting.net> <rqp94n$i7$1@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <rqpntu$utp$1@tncsrv09.home.tnetconsulting.net> Subject: Re: SYN-Attack-Suppressor-Routine Date: Tue, 8 Dec 2020 22:35:58 -0700 From: Grant Taylor <gtaylor@tnetconsulting.net> References: <rqoe1o$ae4$1@tncsrv09.home.tnetconsulting.net> <rqp94n$i7$1@news.mixmin.net> 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 Organization: TNet Consulting Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 9 Dec 2020 05:39:10 -0000 (UTC) Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251"; logging-data="31673"; mail-complaints-to="newsmaster@tnetconsulting.net" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 In-Reply-To: <rqp94n$i7$1@news.mixmin.net> Content-Language: en-US Lines: 55