ipv6 to ipv4

how can I get ipv6 on eth1 with internet and change (route) to port eth5 with ipv4

is that possible ?

my router is RB951 os v.5.26

my network uses ipv4..
my internet service provider gives me a fake ipv4 (CGNAT) and a real ipv6

i need creates routes to diferent ports (9000, 3388, 3399,…)

help please :S

Just use the normal NAT feature to NAT all your traffic to the fake IPv4 address that you have got.
This will give you double-NAT for IPv4 traffic.
After getting that to work, make sure you are migrating your internal network to support IPv6 soon.

Of course this is for outgoing traffic only. Incoming port mappings is no longer possible on a connection
like that, you will HAVE to use IPv6.

tks for helping, but I need to access different external ports. there must be another solution whit ISATAP or 6to4, I don’t know, help me :S

It is not possible to access ports on IPv4 from outside, because there is a CGNAT system outside your control where you cannot add the forwards.
So you can only do those forwards on IPv4 and while there may be one of the 20 alternative fixes available to forward the IPv6 traffic to an internal IPv4 system that will probably not solve your problem because it will be only available for IPv6 users on the internet.

It looks like you are the first person I hear of that is actually affected by the address depletion and that is a victim of the worlds attitude to ignore this problem for 10-15 years until it is finally too late. No more servers on home connections.

well I know the addresses ended long ago, the problem is, the client who was injured when hiring an internet service with optical fiber, which has servers and camera for surveillance in a network ipv4, and the operator uses CGNAT to “solve” the shortage of ip’s. therefore “migrate” the entire network to IPv6 for now is not an option, I need to find a solution to access these external servers.

if, in my client gets a public IPv6, there must be a way to convert it to ipv4 on the LAN, tks I’ll be find it

IPv4 and IPv6 are two very different protocols that work on OSI level 3. Translating between these two protocols is not a trivial matter. Technically it is indeed possible but there’s a very, very, very limited number of implementations out there. These implementations focus mainly on web services (HTTP traffic). In addition, these implementations are targeted at making IPv4 only webservers (and therefore webpages) available to IPv6 enabled hosts over IPv6. So if the IPv4 devices are all accessed through a web interface, you might have a chance.

If however these devices run their own protocol, you would need to translate IPv4 addresses to IPv6 addresses. This will mean you’d have to write your own NAT code. Your first challenge would be to cram an extra 20 bytes of address information into every packet even if the packet already contains the 1500 bytes that a packet can contain. This would require you to fragment the packet. If any IPv4 device has the ‘Do not Fragment’ bit set, the challenge just became that much harder because you cannot be sure that the client will know that the packet needs to be re-assembled on the other side. You would have to implement a proxy on the client side to take care of that step.

With enough determination, effort and investment, I’m sure you will succeed but there are easier, faster and cheaper solutions like setting up a GRE tunnel to a VPS with a block of IPv4 addresses so you can install router software on the VPS and assign a publicly routable IPv4 address to the router at your client’s premises.

well there is an option, I’ll study this way.
If anyone have another idea, I accepted.

tks :smiley:

If you are planning to use a VPS server, please verify with the hosting provider that they assign IP address blocks to VPS servers. With the current IPv4 shortage, they tend to be stingy with things like that.

I know that there is a service here in the Netherlands that offers a GRE tunnel with an IPv4 block but they only assign IP addresses to local companies. But if it exists here, there might be companies out there that offer that service in your country/region.

Take a look at http://www.haproxy.org/ for TCP connections.
I use haproxy successfully to provide IPv6 access to IPv4 only services, e.g. RTMP streams.