HTTP proxy, backend by few socks proxy. Route traffic based on rule