Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Jean-Philippe Menil <jean-philippe.menil@univ-nantes.fr>
To: Brian G <unixman83@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Transparent proxy with IPv6 on Linux [REDIRECT target is gone]
Date: Mon, 04 Apr 2011 08:28:50 +0200	[thread overview]
Message-ID: <4D996522.4050705@univ-nantes.fr> (raw)
In-Reply-To: <4D995361.9030301@gmail.com>

Le 04/04/2011 07:13, Brian G a écrit :
> 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
> -- 
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> 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.

-- 
Jean-Philippe Menil - Pôle réseau Service IRTS
DSI Université de Nantes
jean-philippe.menil@univ-nantes.fr
Tel : 02.53.48.49.27 - Fax : 02.53.48.49.09


  reply	other threads:[~2011-04-04  6:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-04  5:13 Transparent proxy with IPv6 on Linux [REDIRECT target is gone] Brian G
2011-04-04  6:28 ` Jean-Philippe Menil [this message]
2011-04-04 11:29 ` Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D996522.4050705@univ-nantes.fr \
    --to=jean-philippe.menil@univ-nantes.fr \
    --cc=netfilter@vger.kernel.org \
    --cc=unixman83@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox