login
Header Space

 
 

Re: : rouge IPs / user

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: knitti <knitti@...>
Cc: <misc@...>
Date: Tuesday, December 11, 2007 - 9:19 pm

knitti wrote:

One more thing I also forgot to add, or may be didn't come across as 
clear as it should.

If you put of in front of it and use it to proxy the connections, it 
will only pass the real connection to httpd that are real and as such 
save you socket that httpd would have to manage and that would end up in 
  CLOSE_WAIT.

Why? Let say someone doesn't like your site and send you a bunch of fake 
connections to (initiate connections) occupy all your sockets and as 
such making your site totally useless.

You can increase the number of connection httpd can support, recompile 
it and sue it, or a much more logical and practical ways is to use pf to 
actually filter these connections and avoid the problem in the first 
place that the limit of httpd have in the default.

If you try to establish a connection to httpd directly then it will use 
a socket even if it can't reply to the source as fake and as such use 
your resources and I guess end up in CLOSE_WAIT state and waiting to get 
the final ACK that will never come as it is a fake source.

However putting PF in front of it, your httpd wouldn't suffer this part 
anyway of the depletion of the sockets it can use.

Now adjusting the tcp stack value would/could then improve on the time 
sockets stay in this CLOSE_WAIT state.

So, all are connected in any way or angle you try to look at it.

Keep alive, max_spare_connections, etc, for speed and time delay for the 
httpd application to release that socket to the OS.

PF to handle these fake/forged TCP connections that would otherwise 
occupy your httpd sockets available and as such needs to do the full 
cycle of open, wait and close based on the delay preset and may keep it 
open for way more time that you may want as it will wait for ever on the 
ACK for the fake source.

And TCP stack variable in making more or less of them (sockets) 
available sooner or later.

So, that's how each one interact with each others in many ways.

Hopefully I didn't make more of a mess then it was already and make it a 
little bit more clear. That's my intend anyway.

Hope it help you anyhow.

Best,

Daniel
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
rouge IPs / user, badeguruji, (Fri Dec 7, 1:51 pm)
Re: rouge IPs / user, Raimo Niskanen, (Mon Dec 10, 7:31 am)
Re: rouge IPs / user, Joel Wiramu Pauling, (Mon Dec 10, 8:15 am)
Re: : rouge IPs / user, Raimo Niskanen, (Tue Dec 11, 6:56 am)
Re: : rouge IPs / user, Daniel Ouellet, (Tue Dec 11, 1:15 pm)
Re: : rouge IPs / user, knitti, (Tue Dec 11, 8:43 am)
Re: : rouge IPs / user, Marti Martinez, (Tue Dec 11, 12:40 pm)
Re: : rouge IPs / user, Stuart Henderson, (Tue Dec 11, 1:47 pm)
Re: : rouge IPs / user, knitti, (Tue Dec 11, 2:13 pm)
Re: : rouge IPs / user, Daniel Ouellet, (Tue Dec 11, 3:20 pm)
Re: : rouge IPs / user, knitti, (Tue Dec 11, 7:04 pm)
Re: : rouge IPs / user, Daniel Ouellet, (Tue Dec 11, 7:44 pm)
Re: : rouge IPs / user, knitti, (Tue Dec 11, 8:34 pm)
Re: : rouge IPs / user, knitti, (Wed Dec 12, 5:11 am)
Re: : : rouge IPs / user, Raimo Niskanen, (Wed Dec 12, 11:18 am)
Re: : : rouge IPs / user, Daniel Ouellet, (Wed Dec 12, 1:53 pm)
Re: : : rouge IPs / user, knitti, (Wed Dec 12, 4:03 pm)
Re: : : rouge IPs / user, Daniel Ouellet, (Wed Dec 12, 4:19 pm)
Re: : : rouge IPs / user, knitti, (Wed Dec 12, 4:44 pm)
Re: : : rouge IPs / user, Daniel Ouellet, (Thu Dec 13, 1:30 am)
Re: : : rouge IPs / user, Daniel Ouellet, (Wed Dec 12, 5:13 pm)
Re: : : rouge IPs / user, knitti, (Wed Dec 12, 5:42 pm)
Re: : : rouge IPs / user, Daniel Ouellet, (Thu Dec 13, 12:58 am)
Re: : : rouge IPs / user, Otto Moerbeek, (Wed Dec 12, 6:25 pm)
Re: : : rouge IPs / user, Daniel Ouellet, (Wed Dec 12, 9:57 pm)
Re: : : rouge IPs / user, Otto Moerbeek, (Thu Dec 13, 2:59 am)
Re: : : rouge IPs / user, Daniel Ouellet, (Thu Dec 13, 3:25 am)
Re: : : rouge IPs / user, Otto Moerbeek, (Thu Dec 13, 4:09 am)
Re: : : rouge IPs / user, Stuart Henderson, (Thu Dec 13, 7:10 am)
Re: : : rouge IPs / user, Hannah Schroeter, (Thu Dec 13, 7:30 am)
Re: : : rouge IPs / user, Otto Moerbeek, (Thu Dec 13, 7:35 am)
Re: : : : rouge IPs / user, Raimo Niskanen, (Thu Dec 13, 4:24 pm)
Re: : : : rouge IPs / user, Raimo Niskanen, (Thu Dec 13, 9:25 am)
Re: : : rouge IPs / user, knitti, (Wed Dec 12, 12:32 pm)
Re: : : rouge IPs / user, Daniel Ouellet, (Wed Dec 12, 3:43 pm)
Re: : : rouge IPs / user, knitti, (Wed Dec 12, 5:03 pm)
Re: : : rouge IPs / user, Daniel Ouellet, (Thu Dec 13, 1:17 am)
Re: : rouge IPs / user, Daniel Ouellet, (Tue Dec 11, 8:51 pm)
Re: : rouge IPs / user, Daniel Ouellet, (Tue Dec 11, 9:19 pm)
Re: rouge IPs / user, new_guy, (Fri Dec 7, 11:33 pm)
Re: rouge IPs / user, Axton, (Fri Dec 7, 4:45 pm)
Re: rouge IPs / user, STeve Andre', (Fri Dec 7, 2:08 pm)
Re: rouge IPs / user, Steve Shockley, (Fri Dec 7, 4:08 pm)
Re: rouge IPs / user, Daniel Ouellet, (Fri Dec 7, 2:03 pm)
Re: rouge IPs / user, Nick Guenther, (Fri Dec 7, 2:56 pm)
Re: rouge IPs / user, badeguruji, (Fri Dec 7, 4:32 pm)
Re: rouge IPs / user, Nick Guenther, (Sat Dec 8, 12:13 am)
Re: rouge IPs / user, Dan Farrell, (Wed Dec 12, 3:55 pm)
Re: rouge IPs / user, Jon Radel, (Fri Dec 7, 11:12 pm)
Re: rouge IPs / user, Greg Thomas, (Fri Dec 7, 2:26 pm)
speck-geostationary