Hurricane Electric's IPv6 Tunnel Broker Forums

Advanced search  

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Author Topic: Tunneling IPv4 over IPv6  (Read 9075 times)

collum

  • Newbie
  • *
  • Posts: 3
Tunneling IPv4 over IPv6
« on: May 19, 2012, 12:54:46 PM »

I'm wanting to do the opposite of what is most commonly done.  Working in a test environment, I'm setting up hosts with IPv6 only addressing. They have no problem in reaching IPv6 capable hosts on the Internet.  Since there's no routable IPv4 address on the hosts (just link-local), I'm assuming that any v4 request is going to just die on the host itself. Can anyone think of an option of getting this to work? If at all possible, I'd like the traffic between the ipv6 host and  the OpenWRT Access Point to stay IPv6.

    jim


ipv6 host----------------
                                 |
                                 |
ipv6 host-------------------------|Wireless---OpenWrt AP| --------------Gateway to Internet
                                 |
                                 |
ipv6 host----------------

Logged

jtcloe

  • Newbie
  • *
  • Posts: 48
Re: Tunneling IPv4 over IPv6
« Reply #1 on: May 19, 2012, 03:48:25 PM »

Some kind of proxy, or other application gateway.

What kind of traffic is it?  Web (http)?  Something else?
Logged

broquea

  • Sr. Network Engineer, HE.NET AS6939
  • Administrator
  • Hero Member
  • *****
  • Posts: 1735
Re: Tunneling IPv4 over IPv6
« Reply #2 on: May 20, 2012, 12:37:19 AM »

Run NAT64/DNS64?
Logged

kasperd

  • Founder, Netiter ApS
  • Hero Member
  • *****
  • Posts: 962
Re: Tunneling IPv4 over IPv6
« Reply #3 on: May 21, 2012, 01:01:17 AM »

Since there's no routable IPv4 address on the hosts (just link-local), I'm assuming that any v4 request is going to just die on the host itself. Can anyone think of an option of getting this to work?
I can think of four different approaches to get it working.

  • Use IPv4 inside IPv6 tunnelling (using next header 4). You'd need to setup the tunnel server yourself, and you'd need a conventional NAT44 between the tunnel server and the Internet. Both tunnel server and NAT44 could be done in OpenWRT, but the tunnel server part might require new code.
  • Use NAT64+DNS64. With that approach you'd need NAT64 running on OpenWRT, and it would make sense to have DNS64 there as well. I don't know if OpenWRT supports that out of the box.
  • Use 4rd. You might think that 4rd uses IPv4 in IPv6 tunnelling. But reading the spec you'd find that it actually converts the IPv4 packets to IPv6 and converts them back at the other end using some hacks to reproduce the original IPv4 packet. That part of the 4rd spec looks crazy to me, when in reality what was needed was just IPv4 in IPv6 traffic. The interesting part about 4rd is that it moves the NAT44 part to the individual hosts. That way each host knows which range of external ports it has available and can do NAT itself using that range of ports. That means the gateway remains stateless. If your hosts and OpenWRT supports 4rd, you could use that, and NATed connections would remain open even if the access point is restarted.
  • Setup a transparent http proxy and use a DNS server that synthesize AAAA records pointing at the IPv6 address of the transparent proxy, if the domain only has an A record.

Any of the four approaches will work. Which of the four will work best depends on the software support. I don't know specific software implementations of any of the above, and I don't know which of them might be supported by OpenWRT. Using NAT64+DNS64 or using the transparent http proxy are the only options on the list, which do not require changes on the client machines. And since the transparent http proxy doesn't help for other protocols than http, I would recommend that you first give NAT64+DNS64 a try and only consider the other options if NAT64 for some reason doesn't cut it.
Logged