nginx-gateway-fabric icon indicating copy to clipboard operation
nginx-gateway-fabric copied to clipboard

Not working/listening on IPv6

Open DennisGlindhart opened this issue 1 year ago • 1 comments
trafficstars

Describe the bug Connecting to the IPv6 address of the IP (both Pod, LoadBalancer etc.) doesn't work. curl -v http://\[2001:db8::10::1\]:80

To Reproduce Steps to reproduce the behavior:

  1. Deploy nginx gateway fabric on IPv6-enabled (or IPv6-only cluster)
  2. curl -v http://<IPv6Address>:80 to IP of the nginx pod, LB etc. (Or hostname/DNS-name

Expected behavior Able to connect, like via IPv4

Your environment

  • NGINX Gateway Fabric 1.2
  • Kubernetes 1.29
  • Nginx Gateway Fabric Pod exposed via LoadBalancer
  • NGINX Configuration: kubectl -n nginx-gateway exec <gateway-pod> -c nginx -- nginx -T

Additional context Expected fix: All "listen <port>"-directives in internal/mode/static/nginx/config/servers_template.go should have a corresponding listen [::]:<port>

DennisGlindhart avatar Apr 28 '24 19:04 DennisGlindhart

Hi @DennisGlindhart! Welcome to the project! 🎉

Thanks for opening this issue! Be sure to check out our Contributing Guidelines and the Issue Lifecycle while you wait for someone on the team to take a look at this.

nginx-bot[bot] avatar Apr 28 '24 19:04 nginx-bot[bot]

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar May 13 '24 02:05 github-actions[bot]

Hey Dennis, sorry for the delay in response! We are aware that NGF does not support listening on IPv6 or sending to IPv6 addresses at this time, but we are planning on implementing it in 1.4.

I'll move this issue into the milestone so we can track that work here until the epic is more detailed.

mpstefan avatar May 20 '24 16:05 mpstefan

As this is enhancement is now being tracked in #2086, closing this bug report.

mpstefan avatar Jun 04 '24 18:06 mpstefan