Using an IPv6-only internal network in a real-world environment
Problem: Not all client applications are ipv6-aware
Analoguous to the way pTRTd works, create a 'virtual' (TUN/TAP) IPv4 interface and route all IPv4 into this interface. Have a program translate all packets on that interface to/from IPv6.
This would involve the following:
- Set up a tun interface (which is an IPv4 interface, basically, but doesn't need a routable IP address)
- route all (outgoing) ipv4 traffic to that interface
- implement the better part of the tcp stack in the application reading /dev/tunX
- translate the package to ipv6
- send the ipv6 packet
- recieve ipv6 replies (do we know what to bind to?)
- translate the replies back and send them to the application...
Sounds like a challenge ....