diff options
author | Aldo Cortesi <aldo@corte.si> | 2018-02-22 20:48:17 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 20:48:17 +1300 |
commit | 443409e32bcc28a7f0475d7af42efff03473b72f (patch) | |
tree | 9d749a57929a950f0e177a9bf4d6cd7d9a88c16b /docs/custom-routing.txt | |
parent | 1cacefa104626e4e0df5ffb2aa8b0c6f16b615b2 (diff) | |
parent | 982508d30f887b4fe8b2a855792ae1e33f378222 (diff) | |
download | mitmproxy-443409e32bcc28a7f0475d7af42efff03473b72f.tar.gz mitmproxy-443409e32bcc28a7f0475d7af42efff03473b72f.tar.bz2 mitmproxy-443409e32bcc28a7f0475d7af42efff03473b72f.zip |
Merge pull request #2890 from mitmproxy/newdocs
All new documentation
Diffstat (limited to 'docs/custom-routing.txt')
-rw-r--r-- | docs/custom-routing.txt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/docs/custom-routing.txt b/docs/custom-routing.txt deleted file mode 100644 index 2ba2281f..00000000 --- a/docs/custom-routing.txt +++ /dev/null @@ -1,24 +0,0 @@ -# Adapted from http://tldp.org/HOWTO/TransparentProxy-6.html (6.2 Second method) -# Note that the choice of firewall mark (3) and routing table (2) was fairly arbitrary. -# If you are already using policy routing or firewall marking for some other purpose, -# make sure you choose unique numbers here. Otherwise, don't worry about it. - - - -# On the router, run - -PROXY_IP=192.168.1.100 -TARGET_IP=192.168.1.110 - -iptables -t mangle -A PREROUTING -j ACCEPT -p tcp -m multiport --dports 80,443 -s ! $TARGET_IP -# Alternative to MITM the whole network: -# iptables -t mangle -A PREROUTING -j ACCEPT -p tcp -m multiport --dports 80,443 -s $PROXY_IP -iptables -t mangle -A PREROUTING -j MARK --set-mark 3 -p tcp -m multiport --dports 80,443 -ip rule add fwmark 3 table 2 -ip route add default via $PROXY_IP dev br0 table 2 - - - -# On the proxy machine, run - -iptables -A PREROUTING -t nat -i eth0 -p tcp -m multiport --dports 80,443 -j REDIRECT --to-port 8080 |