diff --git a/docs/raw/proxy-modes.vsdx b/docs/raw/proxy-modes.vsdx old mode 100644 new mode 100755 index 0128a142f..d115ea9eb Binary files a/docs/raw/proxy-modes.vsdx and b/docs/raw/proxy-modes.vsdx differ diff --git a/docs/src/content/howto-transparent-vms.md b/docs/src/content/howto-transparent-vms.md index b186fd39f..1446ede70 100644 --- a/docs/src/content/howto-transparent-vms.md +++ b/docs/src/content/howto-transparent-vms.md @@ -106,7 +106,7 @@ sudo iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 443 -j REDIRECT --to-p Finally, we can run mitmproxy in transparent mode with {{< highlight bash >}} -mitmproxy -T +mitmproxy --mode transparent {{< / highlight >}} The proxied machine cannot to leak any data outside of HTTP or DNS requests. If diff --git a/docs/src/content/howto-transparent.md b/docs/src/content/howto-transparent.md index 224cb5ee1..3d99e9dcb 100644 --- a/docs/src/content/howto-transparent.md +++ b/docs/src/content/howto-transparent.md @@ -58,7 +58,7 @@ dropped privileges. It can be used as follows: gcc examples/complex/full_transparency_shim.c -o mitmproxy_shim -lcap sudo chown root:root mitmproxy_shim sudo chmod u+s mitmproxy_shim -./mitmproxy_shim $(which mitmproxy) -T --spoof-source-address +./mitmproxy_shim $(which mitmproxy) --mode transparent --set spoof-source-address {{< / highlight >}} @@ -112,10 +112,10 @@ something like this: You probably want a command like this: {{< highlight bash >}} -mitmproxy -T --host +mitmproxy --mode transparent --showhost {{< / highlight >}} -The `-T` flag turns on transparent mode, and the `--host` argument tells +The `--mode transparent` option turns on transparent mode, and the `--showhost` argument tells mitmproxy to use the value of the Host header for URL display. ### 6. Finally, configure your test device @@ -163,10 +163,10 @@ doas pfctl -e You probably want a command like this: {{< highlight bash >}} -mitmproxy -T --host +mitmproxy --mode transparent --showhost {{< / highlight >}} -The `-T` flag turns on transparent mode, and the `--host` argument tells +The `--mode transparent` option turns on transparent mode, and the `--showhost` argument tells mitmproxy to use the value of the Host header for URL display. ### 6. Finally, configure your test device @@ -245,10 +245,10 @@ tighten the restriction up to the user running mitmproxy. You probably want a command like this: {{< highlight bash >}} -mitmproxy -T --host +mitmproxy --mode transparent --showhost {{< / highlight >}} -The `-T` flag turns on transparent mode, and the `--host` argument tells +The `--mode transparent` flag turns on transparent mode, and the `--showhost` argument tells mitmproxy to use the value of the Host header for URL display. ### 6. Finally, configure your test device diff --git a/docs/src/static/schematics/proxy-modes-reverse.png b/docs/src/static/schematics/proxy-modes-reverse.png old mode 100644 new mode 100755 index 071d3fc86..873726886 Binary files a/docs/src/static/schematics/proxy-modes-reverse.png and b/docs/src/static/schematics/proxy-modes-reverse.png differ diff --git a/docs/src/static/schematics/proxy-modes-transparent-1.png b/docs/src/static/schematics/proxy-modes-transparent-1.png old mode 100644 new mode 100755 index 002e0e76a..557406f84 Binary files a/docs/src/static/schematics/proxy-modes-transparent-1.png and b/docs/src/static/schematics/proxy-modes-transparent-1.png differ diff --git a/docs/src/static/schematics/proxy-modes-transparent-2.png b/docs/src/static/schematics/proxy-modes-transparent-2.png old mode 100644 new mode 100755 index 41997b05a..ecc09f5a7 Binary files a/docs/src/static/schematics/proxy-modes-transparent-2.png and b/docs/src/static/schematics/proxy-modes-transparent-2.png differ diff --git a/docs/src/static/schematics/proxy-modes-transparent-3.png b/docs/src/static/schematics/proxy-modes-transparent-3.png old mode 100644 new mode 100755 index ee26cb4f6..177aaaef6 Binary files a/docs/src/static/schematics/proxy-modes-transparent-3.png and b/docs/src/static/schematics/proxy-modes-transparent-3.png differ diff --git a/docs/src/static/schematics/proxy-modes-transparent-wrong.png b/docs/src/static/schematics/proxy-modes-transparent-wrong.png old mode 100644 new mode 100755 index ca501e934..c69c6b701 Binary files a/docs/src/static/schematics/proxy-modes-transparent-wrong.png and b/docs/src/static/schematics/proxy-modes-transparent-wrong.png differ diff --git a/docs/src/static/schematics/proxy-modes-upstream.png b/docs/src/static/schematics/proxy-modes-upstream.png old mode 100644 new mode 100755 index d40a64946..daa2b9af5 Binary files a/docs/src/static/schematics/proxy-modes-upstream.png and b/docs/src/static/schematics/proxy-modes-upstream.png differ