IPv6 -> IPv4

I am hitting the external API with worker which has IP whitelisting So I send them the whole list of Cloudflare IPs the issue it seems like is that their system cannot handle IPv6 is there any solution I see a toggle in setting but can't do anything about that
9 Replies
Isaac McFadyen
Isaac McFadyen•3mo ago
If they only have an A record for the API (no AAAA record) then the Worker will automatically use IPv4. If they have an AAAA record for their API but their API can't handle IPv6 then that's a problem you'll need to discuss with them.
Yash Bindal (yB)
Yash Bindal (yB)OP•3mo ago
that's the problem I need them they don't need me So it they wont change the infrastructure for me they have mentioned that politely haha
Isaac McFadyen
Isaac McFadyen•3mo ago
No, I mean their API. I expect that if they don't properly handle IPv6 they won't accept it at all, in which case your Worker will automatically use IPv4 and will work fine.
Yash Bindal (yB)
Yash Bindal (yB)OP•3mo ago
its throwing error IP 2a06 blocked instead of full IP Like it send for my personal computer 123.123.123.1.23 is blocked or something for cloudflare it only days 2a06 so I assumed it's issue either ipv6 @Isaac | AS213339
Isaac McFadyen
Isaac McFadyen•3mo ago
If it's saying 2a06 blocked then their API is accepting IPv6 but blocking it for some reason. Do you know if they can't add a whitelist for IPv6 or won't? Also all Workers use the same IPv6 so they probably need to look at the CF-Worker header instead, that will tell them which customer is making the request.
Yash Bindal (yB)
Yash Bindal (yB)OP•3mo ago
I gave them the list they added it that I have to ask But they are again all school so isn't there a works-round or something
Isaac McFadyen
Isaac McFadyen•3mo ago
I don't think so, unfortunately.
Yash Bindal (yB)
Yash Bindal (yB)OP•3mo ago
🥺
Erisa
Erisa•3mo ago
this (same ipv6) only applies if the target site is using Cloudflare, if theyre not using Cloudflare they'll use the egress IPs which there are many of
Want results from more Discord servers?
Add your server