Onionbalance + antiddos help

Hello everyone, i have an issue with onionbalance.
I run an hidden service with multiple onionbalances working well.
Main issue is that on Backend instances i’ve set nginx rules that work if i use the backend mirrors, but when using master onion it doesn’t happen.
More precisely this is about an antiddos i have set with nginx and php. In the backend instance, code is meant to save a memcache of connection, after a while it should check if the Cookie is valid (3600 seconds), so it works perfectly if browsing on backend mirror, but somehow on master mirror after 600 seconds it redirects again to captcha page. Reading documentation i still didn’t completely understand how onionbalance works with multiple backend mirrors. When you login on site using the master onion it should load one of the backend mirrors and you are connected through that, after 600 seconds it rotates to another one? My suspect is that is exactly what is happening, every backend machine got his own memcached process, so if it rotates code doesn’t recognize anymore the Cookie saved. Could be this the case?

Resolved the issue with a shared memcache between backend instances for the captcha cookies

1 Like