This seems like a typical 464XLAT configuration [0]. I'm not sure if I understand the question. The NAT64 in router2 would translate the source address; why do you think it wouldn't? It needs a functional IPv4 source address to assemble a full IPv4 header.
router2 will use its own IPv4 address (or whatever you added into pool4) to masquerade the 2001:db8:2::/96 address. [0] https://jool.mx/en/464xlat.html On Sun, Feb 2, 2020 at 3:24 PM Nico Schottelius <[email protected]> wrote: > > > Hello, > > is it conceptually possible with 1 jool instance to translate both the > source and the destination address in one run or do I need to stack two > jool instances? > > The problem I am trying to solve is as follows: > > [ IPv4 only network, i.e. 192.168.0.0/24 ] > ---> [ Router1: IPv4 -> IPv6 ] > ------> [ IPv6 only network, i.e. 2001:db8:1::/64 ] > -----------> [ Router2 with IPv4 + IPv6 + NAT64 ] > > So router1 would do the following: > > - translate source address 192.168.0.0/24 => 2001:db8:2::/120 [jool > siit] > - translate destination address X.Y.Z.A => 2001:db8:3::/96 [ nat64 > prefix ] > > Then the packet would be routed to router2, which is connected to the > real Internet and do the following: > > - See that 2001:db8:3::/96 is actually a nat64 prefix -> translate to > IPv4 > - Has NAT64 -> create a dynamic session entry for the source address in > 2001:db8:2::/120 > > router2 is as standard nat64 case. > > If I am not mistaken, router1 should be able to solve it with 2 eamt > entries on the line of > > "eamt": [ > { > "ipv6 prefix": "2001:db8:2::/120", > "ipv4 prefix": "192.168.0.0/24" > { > "ipv6 prefix": "2001:db8:3::/96", > "ipv4 prefix": "0.0.0.0/0" > } > ] > > I'll try this out tomorrow, but does anything speak against src + dst > translation this way? > > Best, > > Nico > > > -- > Modern, affordable, Swiss Virtual Machines. Visit www.datacenterlight.ch > _______________________________________________ > Jool-list mailing list > [email protected] > https://mail-lists.nic.mx/listas/listinfo/jool-list _______________________________________________ Jool-list mailing list [email protected] https://mail-lists.nic.mx/listas/listinfo/jool-list
