1 install cert from 'http://mitm.it' on the device
1.1 (iOS) Go to Settings > General > About > Certificate Trust Settings. Under “Enable full trust for root certificates”, turn on trust for the mitmproxy certificate.e
# 1. Enable IP forwarding.
sysctl -w net.ipv4.ip_forward=1