Re: [v6ops] Status of CLAT implementation on iPhone? (IPv4 apps on IPv6-only PDP type)

Tore Anderson <> Mon, 23 February 2015 12:54 UTC

Return-Path: <>
Received: from localhost ( []) by (Postfix) with ESMTP id DD8781A1A57 for <>; Mon, 23 Feb 2015 04:54:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: 0.79
X-Spam-Status: No, score=0.79 tagged_above=-999 required=5 tests=[BAYES_50=0.8, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id 44NBPy5G0OW5 for <>; Mon, 23 Feb 2015 04:54:49 -0800 (PST)
Received: from ( [IPv6:2a02:c0:1001:100::145]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 493C81A03A1 for <>; Mon, 23 Feb 2015 04:54:49 -0800 (PST)
Received: from [2a02:c0:2:4:6666:17:0:1001] (port=54611 by with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from <>) id 1YPsX9-0000Xa-K4; Mon, 23 Feb 2015 13:54:47 +0100
Date: Mon, 23 Feb 2015 13:54:21 +0100
From: Tore Anderson <>
To: Alexandru Petrescu <>
Message-ID: <>
In-Reply-To: <>
References: <>
X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-redhat-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <>
Cc: "" <>
Subject: Re: [v6ops] Status of CLAT implementation on iPhone? (IPv4 apps on IPv6-only PDP type)
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: v6ops discussion list <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Mon, 23 Feb 2015 12:54:51 -0000

* Alexandru Petrescu <>

> Hello participants to v6ops WG,
> What is the status of a CLAT implementation on iPhone?  Any hint in that
> direction?

No idea. It wouldn't surprise me if they'll just assume operators will
eventually start supporting IPV4V6 though, which doesn't seem too far
fetched now that LTE is rolling out in several economies.

> I am asking because in private conversation I have noticed doubts
> about this being done.  Or, since the iPhone relies on a bsd
> derivative, it would be technically feasible to implement CLAT on it;
> it is nothing more than some iptables address translation plus a bit
> of python scripting in case.

You can'ẗ implement a CLAT using iptables, since the IPv4 and IPv6
versions of iptables don't really mix. So you can't take an IPv4 packet
as input and output and IPv6 packet or vice versa. You can do it with a
user space daemon like TAYGA though. You'll find an CLAT implementation
for Linux using Perl/TAYGA on my Github page, it's probably not too
hard to adapt it to work on *BSD if you want to.

That said, I've always wondered if it couldn't simply be implemented as
an app. In principle a CLAT doesn't operate much differently than a
regular VPN client, and there are plenty of VPN apps AFAIK.