Skip to content

Not working/listening on IPv6 #1893

@DennisGlindhart

Description

@DennisGlindhart

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions