You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Receiving an error when proxying to a host that is only accessible via IPv6: "Network failure trying to make a proxied request from WireMock to ..... failed: Network is unreachable (connect failed)".
I'm running WireMock in standalone mode without specifying either --allow-proxy-targets or --deny-proxy-targets. I set up mapping with proxying to a host, the DNS records of which contain both IPv4 and IPv6 addresses. However, due to network security settings, the IPv4 address is unreachable and only IPv6 is available, which is a common scenario.
The issue occurs following the changes in #2475, where WireMock forcibly filters out all IPv6 records.
Proposed solution: If no proxy rule (security rule) is set, dns.resolve should not be filtered and should return the records as they are.
Reproduction steps
Start WireMock without specifying security rules for the proxy.
Make the DNS record for that name return both ipv4 and ipv6 addresses. IPv4 address should be unavailable (You may try to turn off IPv4 in network settings).
Configure a proxy stub to that domain name.
Observe that requests through the proxy stub result in an error.
References
No response
The text was updated successfully, but these errors were encountered:
I also ran into this. WireMock 3.2.0 is the most recent version that supports hosts that are only reachable via IPv6. In my case I am using WireMockRule in JUnit tests, and like the reporter I am not trying to filter network addresses.
The approach in #2737 would fix my case as well. If maintainers would prefer some kind of alternate approach, such as new configuration options to allowing IPv6-specific filtering or something like that, I would be happy to help implement it.
Proposal
Receiving an error when proxying to a host that is only accessible via IPv6: "Network failure trying to make a proxied request from WireMock to ..... failed: Network is unreachable (connect failed)".
I'm running WireMock in standalone mode without specifying either --allow-proxy-targets or --deny-proxy-targets. I set up mapping with proxying to a host, the DNS records of which contain both IPv4 and IPv6 addresses. However, due to network security settings, the IPv4 address is unreachable and only IPv6 is available, which is a common scenario.
The issue occurs following the changes in #2475, where WireMock forcibly filters out all IPv6 records.
Proposed solution: If no proxy rule (security rule) is set,
dns.resolve
should not be filtered and should return the records as they are.Reproduction steps
References
No response
The text was updated successfully, but these errors were encountered: