Dual Stack VIPs

Enable dual stack IPv4 and IPv6 VIPs on the same interface.
HAProxy always listens on both IPv4 and IPv6 allowing connectivity
on either protocol.

Change-Id: I3079b25ba5ad51a61288519e4c78e0ae729d3dfa
This commit is contained in:
David Ames 2017-08-17 16:17:49 -07:00
parent 4f8408e47d
commit 925889c8ea
1 changed files with 0 additions and 2 deletions

View File

@ -45,9 +45,7 @@ listen stats {{ options.stat_port }}
{% for service, ports in options.service_ports.items() -%}
frontend tcp-in_{{ service }}
bind *:{{ ports[0] }}
{% if ipv6 -%}
bind :::{{ ports[0] }}
{% endif -%}
{% for frontend in cluster.cluster_hosts -%}
acl net_{{ frontend }} dst {{ cluster.cluster_hosts[frontend]['network'] }}
use_backend {{ service }}_{{ frontend }} if net_{{ frontend }}