Skip to contentSkip to conversation

Transparent proxy with IPv6 on Linux [REDIRECT target is gone]

DISCUSSION Brian G 3 participants 3 messages Apr 4, 2011

lore
Share & tools
lore

Brian G

author
#0 lore raw

Hi, on Linux with netfilter: previously I could do "iptables -j REDIRECT" to create a IPv4 transparent proxy. However, this is unsupported on IPv6.

How can I achieve this? iptables6 removed the REDIRECT target because it does not support Network Address Translation in IPv6.

I need the transparent proxy to work with IPv6 under Linux. How are people doing this?

- Brian

#1 lore raw
Quoted 11 lines · Brian G

Hi, on Linux with netfilter: previously I could do "iptables -j REDIRECT" to create a IPv4 transparent proxy. However, this is unsupported on IPv6.

How can I achieve this? iptables6 removed the REDIRECT target because it does not support Network Address Translation in IPv6.

I need the transparent proxy to work with IPv6 under Linux. How are people doing this?

- Brian

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Hi,

you need at least, a 2.6.37 kernel with the tproxy module:
CONFIG_NETFILTER_TPROXY=m CONFIG_NETFILTER_XT_TARGET_TPROXY=m
and the last iptables release:

root@test-jp-2:~# ip6tables -t mangle -nvL
Chain PREROUTING (policy ACCEPT 5584 packets, 416K bytes)
 pkts bytes target     prot opt in     out     source               
destination
   60  4400 DIVERT     tcp      *      *       ::/0                 
::/0                 socket
    0     0 TPROXY     tcp      *      *       ::/0                 
::/0                 tcp dpt:80 TPROXY redirect :::50080 mark 0x1/0x1

Regards.

Signature · 4 lines
Jean-Philippe Menil - Pôle réseau Service IRTS
DSI Université de Nantes
[email protected]
Tel : 02.53.48.49.27 - Fax : 02.53.48.49.09
#2 lore raw
In reply to Brian G
Quoted 5 lines · Brian G

Hi, on Linux with netfilter: previously I could do "iptables -j REDIRECT" to create a IPv4 transparent proxy. However, this is unsupported on IPv6.

How can I achieve this? iptables6 removed the REDIRECT target because it does not support Network Address Translation in IPv6.

(Nothing was removed, it was never there.)