I'm using Ubiquiti to route certain outgoing ip-ranges through a VPN. I would however like to route all HTTP/HTTPS traffic via the VPN except large downloads.
I realize that this is a tall order, but is it possible? Maybe after detecting a certain amount of bytes it could just reroute the connection and resume it without going over the VPN?