<div dir="auto"><div dir="auto"><font face="sans-serif">Alberto,</font></div><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif">Your assumptions are right.</font></div><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif">Quoting below point</font></div><div dir="auto"><font face="sans-serif"><br></font></div><div><span style="font-family:sans-serif">How about this: Instead of pinging "::ffff:68c6:b6f7", try pinging</span><br style="font-family:sans-serif"><span style="font-family:sans-serif">"2001:ab5::104.X.X.X":</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">Ans : actually I must have to ping </span><span style="font-family:sans-serif">"::ffff:68c6:b6f7 because this address can not change , it is conversion of ipv4 address node which is fixed.</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><font face="sans-serif">Please suggest. </font></div><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif">Br</font></div><div dir="auto"><font face="sans-serif">Kunal</font></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><br></div><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif"><br></font><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On 18 May 2020 11:11 p.m., "Alberto Leiva" <<a href="mailto:ydahhrk@gmail.com">ydahhrk@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Kunal:<br>
<br>
I'll tell you what I think is happening, and why I think it doesn't<br>
work. But you'll have to review the steps because I'm making some<br>
assumptions.<br>
<div class="quoted-text"><br>
> Network scenario is:<br>
> 1. Node A [172.19.8.x (IPv6 IP: 2001:ab5:0:1::x)]--> JOOL --> Node B[ IP 172.19.8.x (IP converted to v6 format: 2001:ab5::ac13:x)]<br>
> is working fine<br>
<br>
</div>I'm going to make some changes to this. This is what I think you meant:<br>
<br>
> Network scenario is:<br>
> 1. Node A [IPv6 IP: 2001:ab5:0:1::x] --> JOOL --> Node B [IP 172.19.8.y (IP converted to v6 format: 2001:ab5::ac13:080y)]<br>
> is working fine<br>
<br>
(Notice B's address change from x to y. I don't think there's a reason<br>
why you would need to enforce same suffix on both A and B.)<br>
<br>
When you say "working fine," I'm assuming that you are referring to a<br>
ping from A to B. Like this:<br>
<br>
kunal@A$ ping 2001:ab5::ac13:080y<br>
<br>
That would create the following packet flow:<br>
<br>
1. A sends ping request "2001:ab5:0:1::x -> 2001:ab5::ac13:080y"<br>
2. Jool translates that packet into "172.19.8.z -> 172.19.8.y"<br>
3. B replies "172.19.8.y -> 172.19.8.z"<br>
4. Jool translates that packet into "2001:ab5::ac13:080y -> 2001:ab5:0:1::x"<br>
<br>
Which is OK.<br>
<div class="quoted-text"><br>
> but below case is not working<br>
> Node A[172.19.8.x(2001:ab5:0:1::x/<wbr>64)] ----->JOOL---->Node B [IP 104.X.X.X(0:0:0:0:0:ffff:68c6:<wbr>b6f7)]<br>
<br>
</div>I don't understand where "::ffff:68c6:b6f7" came from, but I think<br>
you're attempting the following ping:<br>
<br>
A$ ping 0:0:0:0:0:ffff:68c6:b6f7<br>
<br>
That would create the following packet flow:<br>
<br>
1. A sends ping request "2001:ab5:0:1::x -> ::ffff:68c6:b6f7"<br>
2. Jool does not receive the packet, because its ip6tables rule is not<br>
configured to catch packets whose destination is "::ffff:68c6:b6f7":<br>
<div class="quoted-text"><br>
> 1. ip6tables -t mangle -L PREROUTING<br>
> Chain PREROUTING (policy ACCEPT)<br>
> target prot opt source destination<br>
> JOOL all anywhere 2001:ab5::/96 instance:alpha1<br>
<br>
</div>It is only interested in catching packets that are sent towards the<br>
"2001:ab5::/96" network.<br>
<br>
How about this: Instead of pinging "::ffff:68c6:b6f7", try pinging<br>
"2001:ab5::104.X.X.X":<br>
<br>
kunal@A$ ping 2001:ab5::104.X.X.X<br>
<br>
Assuming Jool's IPv4 address (172.19.8.z) is public, that should work.<br>
<div class="elided-text"><br>
On Mon, May 18, 2020 at 10:30 AM Kunal Chauhan <<a href="mailto:atkunalchauhan@gmail.com">atkunalchauhan@gmail.com</a>> wrote:<br>
><br>
> Network scenario is:<br>
> 1. Node A [172.19.8.x (IPv6 IP: 2001:ab5:0:1::x)]--> JOOL --> Node B[ IP 172.19.8.x (IP converted to v6 format: 2001:ab5::ac13:x)]<br>
> is working fine<br>
><br>
> but below case is not working<br>
><br>
> Node A[172.19.8.x(2001:ab5:0:1::x/<wbr>64)] ----->JOOL---->Node B [IP 104.X.X.X(0:0:0:0:0:ffff:68c6:<wbr>b6f7)]<br>
><br>
> my jool configuration is as:<br>
><br>
> 1. ip6tables -t mangle -L PREROUTING<br>
> Chain PREROUTING (policy ACCEPT)<br>
> target prot opt source destination<br>
><br>
> JOOL all anywhere 2001:ab5::/96 instance:alpha1<br>
><br>
> 2. jool -i alpha1 pool4 display --icmp<br>
> +------------+-------+--------<wbr>------------+-----------------<wbr>+-------------+<br>
> | Mark | Proto | Max iterations | Address | Ports |<br>
> +------------+-------+--------<wbr>------------+-----------------<wbr>+-------------+<br>
> | 0 | ICMP | 1024 ( auto) | 172.19.8.x | 61001-65535 |<br>
><br>
> 3. jool instance add alpha1 --iptables --pool6 2001:ab5::/96<br>
><br>
> br,<br>
> kunal<br>
><br>
> On Mon, May 18, 2020 at 7:42 PM Tore Anderson <<a href="mailto:tore@fud.no">tore@fud.no</a>> wrote:<br>
>><br>
>> * Kunal Chauhan<br>
>><br>
>> > Q:is It possible that jool can convert or able to ping to different IPv6 network.?<br>
>> ><br>
>> > _point is_<br>
>> ><br>
>> > Details is NODE A IPv6 ----->JOOL------> NODE B IPV6(different ipv6 class than NODE A)<br>
>> ><br>
>> > Q is there is role of instance?<br>
>><br>
>> It seems to me like you are describing a regular IPv6 router?<br>
>><br>
>> If so, that is not something you'd use Jool for. A vanilla Linux kernel can do that just fine.<br>
>><br>
>> What do you mean by «different IPv6 class», though? What is an «IPv6 class»?<br>
>><br>
>> Tore<br>
><br>
><br>
><br>
> --<br>
><br>
><br>
</div></blockquote></div><br></div></div></div>