I didn't realize you could do this on iOS. How does this work?
Yeah, this is really tricky. Apple has released Network Extension API since iOS 9 which only exposes IP packets. What I did is to parse the IP packets and redirect them into different proxies. (Most tough part though only one sentence)
(I know how to set up a remote interface so I can grab the network traffic from a Mac already, interested in exploring alternatives)