Article View: alt.privacy.anon-server
Article #312214Re: SYN-Attack-Suppressor-Routine
From: Nomen Nescio
Date: Wed, 09 Dec 2020 14:40
Date: Wed, 09 Dec 2020 14:40
29 lines
3076 bytes
3076 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. > recent will not work here. recent requires like ip addresses. the problem here is that the attack addresses are continuously changing.
Technical Details
Message-ID:
<3d7ef1b9197f1124fdd0817797afada4@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-mailReferences:
<rqpntu$utp$1@tncsrv09.home.tnetconsulting.net>Show Full Headers
Complete Article Headers
Message-ID: <3d7ef1b9197f1124fdd0817797afada4@dizum.com> Subject: Re: SYN-Attack-Suppressor-Routine Date: Wed, 09 Dec 2020 14:40:55 +0000 From: Nomen Nescio <nobody@dizum.com> References: <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-mail Newsgroups: alt.privacy.anon-server Organization: dizum.com - The Internet Problem Provider X-Abuse: abuse@dizum.com Injection-Info: sewer.dizum.com - 194.109.206.211