> For the complete documentation index, see [llms.txt](https://www.iblue.team/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.iblue.team/general-notes-1/mitm-proxy.md).

# mitm proxy

Instal mitmproxy

```
$ sudo apt install mitmproxy
```

Run mitmproxy. By default it listens on all interfaces (\*) on port 8080

```
$ sudo mitmproxy
```

Run mitmproxy (web version)

```
$ sudo mitmweb
```

Browse to <http://mitm.it> on your client device

Install proxy root certificate

For iOS devices, you must visit <http://mitm.it> using Safari. Install the profile. Settings > General > mitmproxy > Install (and enter PIN).

iOS: Settings > General > About > Certificate Trust Cettings - Enable mitmproxy for full trust

Configure network settings

iOS: Settings > Wi-Fi > Select your network (select (i)) > Configure HTTP proxy > Manual;&#x20;

Server = IP address of the host running mitmproxy (must be contactable)\
Port = 8080 (by default)\
Authentication = blank<br>
