title: Limit Apache Proxy upload speed per connection/ip?
body: <p>I looked at mod_bandwidth and mod_cban but they dont seem to satisfy my requirements.</p>
  
  <p>I am running a proxy server with apache 2.2 (mod_proxy, proxy_http, proxy_connect). </p>
  
  <p>I want to limit the "upload speed of the client". </p>
  
  <p>This is at the same time server download bandwidth, which should not limited.</p>
  
  <p>I want it per connection or even better per IP. </p>
  
  <p>To make it understandable: The use case is that I don't want bad people uplaoding bad data to bad places using my proxy server to "mask" themselves. Of course I have logs and everything but I want to safe the trouble and make it unattractive in the first place.</p>
  
  <p>For better understanding here is a picture of my setup:</p>
  
  <p><img src="https://i.stack.imgur.com/WXy3s.png" alt="enter image description here"></p>
  
  <p>Of course the red arrow could also point to the upper left arrow.</p>
  
  <p>I am currently thinking about starting apache two times on the same server on different ports and using ProxyRemote to send the request to the other proxy. So on the second proxy I can exclude localhost from the throttling. However I would still need a solution to limit incoming but not outgoing bandwidth. I could realise that with IPtables.</p>
  
  <p>But honestly? There must be a better way. There just has to.</p>