Instructions for setup
Configure IP fowarding:
sysctl -w net.ipv4.ip_forward=1
sysctl -w net.ipv6.conf.all.forwarding=1
Disable ICMP requests:
sysctl -w net.ipv4.conf.all.send_redirects=0
Create mitmproxyuser account to redirect traffic originating from the machine itself:
sudo useradd --create-home mitmproxyuser
sudo -u mitmproxyuser -H bash -c 'cd ~ && pip install --user mitmproxy'
Install certificates for desired browser/system
Run the following commands in the terminal to setup and run the proxy:
./setup-transparent.sh
./start-proxy.sh interceptor.py
Once done using the proxy, run the following command to reset the network to normal:
./reset-iptables.sh
Supported Apps
Application | Trusts proxy certificate | Can intercept requests | Notes |
---|---|---|---|
Slack (client app) | NO | NO | |
Discord (client app) | YES | NO | |
Firefox | YES | YES | |
Chromium | YES | YES | |
Outlook (in browser) | - | NO | Disabling HTTP3 gets it to work |
Gmail (in browser) | - | YES | |
Slack (in browser) | - | YES | |
Discord (in browser) | - | NO | Disabling HTTP3 gets it to work |