Это — старая версия документа!


IPv6 Transparent Proxy

iproute & ip6tables

# === Remove any previous config =================

ip -6 route flush table 64
ip -6 rule del from all fwmark 0x6
ip6tables -t mangle -F
ip6tables -t mangle -X DIVERT

# === Set it up from scratch =====================

ip -6 route add local default dev lo table 64
ip -6 rule add from all fwmark 0x6 lookup 64

ip6tables -t mangle -N DIVERT
ip6tables -t mangle -A DIVERT -j MARK --set-mark 6
ip6tables -t mangle -A DIVERT -j ACCEPT

ip6tables -t mangle -A PREROUTING -p tcp -m socket -j DIVERT
ip6tables -t mangle -A PREROUTING -p tcp --dport 80 -j TPROXY --tproxy-mark 0x6 --on-port 8180

Squid

''/etc/squid3/squid.conf

http_port 8180 tproxy

Ссылки


tproxy.1326184615.txt.gz · Последние изменения: 2012-01-10 08:36 UTC От rm
Personal Tools