Hey,
I've been playing around with my pf/altq rules lately. I have a question about the max-src-conn and max-src-conn-rate for a HTTP server (apache2, if it matters ).
There's the related code:
Basically, I'd like to figure out what a realistic value is for max-src-conn and max-src-conn-rate for a http server. I was considering doing "max-src-conn 30, max-src-conn-rate 15/5".
Also, can anyone clarify on how apache threads/connections work? I'm using the prefork MPM. When one user browses one page, apache opens one process/thread for that user, and that single process/thread serves all the html and images and such? (As long as it meets the requirements of MaxKeepAliveRequests and KeepAliveTimeout, of course). So that one process/thread would count as one connection (For all requests for html, images, etc), right? So it would count as 1 max-src-conn?
So, for example, if I wanted to limit any user to only browsing ONE page at a time on my website and be able to load all html, image files, etc, on that one page (I'd never do this, but as an example..), I'd set max-src-conn to 1?
If you're confused, I apologize...haha.
Thanks for any/all replies.
I've been playing around with my pf/altq rules lately. I have a question about the max-src-conn and max-src-conn-rate for a HTTP server (apache2, if it matters ).
There's the related code:
Code:
pass in on $ext_if inet proto tcp from any to $ip3 port 80 user root flags S/SA synproxy state queue http (max-src-conn 100, max-src-conn-rate 50/5) # HTTP Traffic
Basically, I'd like to figure out what a realistic value is for max-src-conn and max-src-conn-rate for a http server. I was considering doing "max-src-conn 30, max-src-conn-rate 15/5".
Also, can anyone clarify on how apache threads/connections work? I'm using the prefork MPM. When one user browses one page, apache opens one process/thread for that user, and that single process/thread serves all the html and images and such? (As long as it meets the requirements of MaxKeepAliveRequests and KeepAliveTimeout, of course). So that one process/thread would count as one connection (For all requests for html, images, etc), right? So it would count as 1 max-src-conn?
So, for example, if I wanted to limit any user to only browsing ONE page at a time on my website and be able to load all html, image files, etc, on that one page (I'd never do this, but as an example..), I'd set max-src-conn to 1?
If you're confused, I apologize...haha.
Thanks for any/all replies.