Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add iptables example for transparent mode

  • Loading branch information...
commit 022207faeced59e4f86c24d0a9abe4ee36c36073 1 parent 107f0e5
@mhils authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/route.txt
View
15 test/route.txt
@@ -0,0 +1,15 @@
+HoneyProxy Machine (change port 3128 to your HoneyProxy port):
+
+iptables -A PREROUTING -t nat -i eth0 -p tcp -m multiport --dports 80,443 -j REDIRECT --to-port 3128
+
+dd-wrt:
+
+#!/bin/sh
+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
+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
Please sign in to comment.
Something went wrong with that request. Please try again.