Is there a way to whitelist TCP traffic akin to ACLs in HAProxy?
Trying to do something like this:
[tcp.routers]
[tcp.routers.kubeapi]
entrypoints = ["https"]
rule = "HostSNI(`kubernetes`)"
middlewares = ["kube_whitelist"]
service = "kubeapi"
[tcp.routers.kubeapi.tls]
passthrough = true
[tcp.services]
[tcp.services.kubeapi.LoadBalancer]
[[tcp.services.kubeapi.LoadBalancer.servers]]
address = "kubernetes.default:443"
[tcp.middlewares]
[tcp.middlewares.kube_whitelist.ipWhiteList]
sourceRange = ["1.2.3.4/32"]