# How do i secure admin ports in traefik

I know how to use traefik but what i am trying to figure out is its auth module and also how to secure admin ports.

##### Post Metadata
- Posted at: about 6 years ago
- Author title: DevOps Engineer at Nagarro | AWS | Jenkins | Kubernetes | Git | Terraform | Ansible |  Azure
- Net upvotes: 1


## Comments
### Comment 1

If I need to expose Portainer outside of an internal network, I typically deploy Traefik with Authelia as the middleware.

##### Comment Metadata
- Posted at: over 4 years ago
- Author title: Network Engineer



### Comment 2

Do you use it on bare-metal without docker? Have a look here:

https://shibumi.dev/posts/traefik-as-reverse-proxy/
https://shibumi.dev/posts/traefik-basicauth/

##### Comment Metadata
- Posted at: about 6 years ago
- Author title: Work Student at avency GmbH



### Comment 3

Are you using Docker Compose? Here is my compose file for doing that exact thing. https://gist.github.com/clemenko/6474016ea8e3c075ab55a687e8bdb51f

##### Comment Metadata
- Posted at: about 6 years ago
- Author title: Principal Solutions Engineer/Kubernetes Security Advisor at StackRox 




## Related Product
[Traefik](https://www.g2.com/products/traefik/reviews)

## Related Category
[Load Balancing](https://www.g2.com/categories/load-balancing)

## Related discussions
- [How well does Trello scale into a larger team?](https://www.g2.com/discussions/1-how-well-does-trello-scale-into-a-larger-team)
  - Posted at: about 13 years ago
  - Comments: 6
- [Can we please add a new section](https://www.g2.com/discussions/2-can-we-please-add-a-new-section)
  - Posted at: about 13 years ago
  - Comments: 0
- [Quantifiable benefits from implementing your CRM](https://www.g2.com/discussions/quantifiable-benefits-from-implementing-your-crm)
  - Posted at: about 13 years ago
  - Comments: 4


