earthboundkid / heffalump

Heffalump is an endless honeypot
MIT License
198 stars 8 forks source link

Bandwidth limiter #1

Open kseistrup opened 7 years ago

kseistrup commented 7 years ago

It would be nice if heffalump had a builtin bandwidth limiter so that output rate could be limited to a given number of kB per second.

earthboundkid commented 7 years ago

Yes. I think for now the solution is to put it behind Nginx or similar, and set the bandwidth limits there. From what I can tell, setting all the right timeouts for a production Go server can be a bit complicated.

It might also be possible to add streaming GZIP through Nginx, although I'm not sure about that.