Add multiple adresses for an endpoint?

Context

I’d like to create two endpoints:

  • Endpoint A: For the public internet which should manage its public ip4 and ip6 address
  • Endpoint B: For my VPN which should manage its private VPN address.

This is my current config:

[entryPoints.http-ip4]
address = "<public ip4>:80"
asDefault = true

[entryPoints.http-ip4.http.redirections.entryPoint]
scheme = "https"
to = "https"

[entryPoints.http-ip6]
address = "[<public ip6>]:80"
asDefault = true

[entryPoints.http-ip6.http.redirections.entryPoint]
scheme = "https"
to = "https"

[entryPoints.http-vpn]
address = "<vpn addr>:80"

Questions

If I'm understanding it correctly, the address field of an entrypoint doesn't allow multiple adresses. So I can't do something like this:

[entryPoints.http-public]
address = "<public ip4>:80 [<public ip6>]:80"
asDefault = true

right?

Is there a better way to achieve the two endpoints or is my config fine like that?

AFAIK Traefik will only handle a single IP (or all) with an entrypoint.

But if you run Traefik in Docker, you can let the container listen on various IPs and forward to the same internal port.

Welp, then I'll have to create an entrypoint for ip4 and ip6 then

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.