# Auth based on source IP?

**URL:** <https://community.traefik.io/t/auth-based-on-source-ip/754>\
**Category:** Traefik v1\
**Created:** [July 3, 2019, 6:43am UTC](https://community.traefik.io/t/auth-based-on-source-ip/754 "2019-07-03T06:43:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/danin/32/402_2.png) [@Danin](https://community.traefik.io/u/Danin)\
**Post date:** [July 3, 2019, 6:43am UTC](https://community.traefik.io/t/auth-based-on-source-ip/754/1 "2019-07-03T06:43:18Z")

</div>

Traefik 1.7.12

I have services that I wish to be accessible from both internet and our local network(s).

I would like no auth on local (we'll say 172.100.0.0/24 for example) sources, and HTTP Basic Auth on internet sources.

Is this a possible configuration?

Thanks!

---

<div class="post-metadata">

**Author:** ![antoine](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@antoine](https://community.traefik.io/u/antoine)\
**Post date:** [July 31, 2019, 3:52pm UTC](https://community.traefik.io/t/auth-based-on-source-ip/754/2 "2019-07-31T15:52:54Z")

</div>

Hello @Danin,

This is not possible using a single entrypoint, but a solution could be to use two, one exposed over the internet using [Basic Auth](https://docs.traefik.io/v1.7/configuration/entrypoints/#basic-authentication) and another one using [White Listing](https://docs.traefik.io/v1.7/configuration/entrypoints/#white-listing).
