diff --git a/doc-src/transparent/linux.html b/doc-src/transparent/linux.html index 96b7132a1..7c01931db 100644 --- a/doc-src/transparent/linux.html +++ b/doc-src/transparent/linux.html @@ -15,6 +15,16 @@ achieve transparent mode. +
  • If your target machine is on the same physical network and you configured it to use a custom gateway, + disable ICMP redirects: + +
    echo 0 | sudo tee /proc/sys/net/ipv4/conf/*/send_redirects
    + + You may also want to consider enabling this permanently in + /etc/sysctl.conf as demonstrated here. + +
  • +
  • Create an iptables ruleset that redirects the desired traffic to the mitmproxy port. Details will differ according to your setup, but the ruleset should look something like this: