-   Linux - Networking (
-   -   Exposing a pTRTd TAP device to WAN (

data0213 05-16-2009 03:56 PM

Exposing a pTRTd TAP device to WAN
I am trying to use pTRTd to allow IPv6-4 translation. My current setup involves the following interfaces:
1. eth0 - This is the LAN port with 192.168.10.x (IPv4 only) network with a DHCP server and connected to a switch to allow multiple hosts to connect to the network.
2. eth1 - This is the WAN port with both an IPv4 and an IPv6 address created using a prefix advertised by an RADVD server.
3. tap0 - This is the TAP device created by pTRTd to allow translation. The prefix assigned to pTRTd is aaaa:bbbb:cccc:dddd::

From within my box, I can ping hosts on the network. I can also ping the hosts using IPv6 via

Now, I want my WAN devices to be able to do this as well. I am not an expert at Linux Networking. My gut feel is that I need to somehow accept packets coming into eth1 destined for the aaaa:bbbb:cccc:dddd network and route it to the tap0 interface (and vice versa). Can someone please help me out with this?


kjans 07-01-2009 07:16 PM

Same problem
I am having the same problem with ptrtd.
It works on the same box that it is run on...

Is it possible to set up a route to the machine running ptrtd
and access its functionality from a LAN?
eg: will it forward a range of IPv6 addresses on ethX to
IPv4 addresses on ethY ?


kjans 07-03-2009 11:20 AM

It does work...
In case anyone needs this in the future...
Here is a configuration that works for me.

Machine 1 (which runs ptrtd) RHEL5.2: 2.6.18-92.el5







sysctl -a | grep forward | grep ipv6
sudo /sbin/ipv6tables -L

sudo ip -6 addr add dev eth0 3ffe:ffff:fff:f::100/64

sudo ./ptrtd -p 3ffe:abcd:1234:9876::

Machine: 2 (client of ptrtd) FC4: 2.6.17-1.2139

sudo ip -6 addr add dev eth1 3ffe:ffff:fff:f::101/64

sudo ip -6 route add 3ffe:abcd:1234:9876/64 dev eth1
via 3ffe:ffff:fff:f::100

Testing (from machine 2):

ping6 3ffe:abcd:1234:9876::
ssh 3ffe:abcd:1234:9876::
telnet 3ffe:abcd:1234:9876:: 80
GET / HTTP/1.0<cr>

kjans 08-19-2009 02:26 PM

Fix for ptrtd throughput bug
1 Attachment(s)
FYI: In case anyone is using ptrtd...

There is bug in ptrtd that causes it to fail under
heavy traffic conditions. I reported it to the author
of ptrtd and he reports that he is no longer supporting
it. I have attached a patch file provided by J.Koenig
of He also has an updated version of ptrtd


kjans 06-18-2010 06:17 PM

Latest ptrtd
The latest ptrtd is archived at:

All times are GMT -5. The time now is 07:02 AM.