When traefik is deployed behind a load balancer, it should get the real IP from the X-Forwarded-For or Cf-Connecting-Ip (if from Cloudflare) header.
Why do you think that https://github.com/iloahz/traefik-plugin-manual-access-control is a good alternative to traefik-real-ip