There is an option in mitmproxy called block_global
: Block connections from globally reachable networks, as defined in the IANA special purpose registries. Default: True
https://docs.mitmproxy.org/stable/concepts-options/
You could try to set this option as false: mitmdump --set block_global=false