# User authentication with captive portal

**URL:** <https://community.ipfire.org/t/user-authentication-with-captive-portal/6380>\
**Category:** Captive Portal\
**Created:** [3 October 2021 01:01 UTC](https://community.ipfire.org/t/user-authentication-with-captive-portal/6380 "2021-10-03T01:01:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mubinre](https://community.ipfire.org/user_avatar/community.ipfire.org/mubinre/32/4486_2.png) [@mubinre](https://community.ipfire.org/u/mubinre)\
**Post date:** [3 October 2021 01:01 UTC](https://community.ipfire.org/t/user-authentication-with-captive-portal/6380/1 "2021-10-03T01:01:58Z")

</div>

Hello,  
How can I force user to authenticate with user name and password before accessing internet? Captive portal doesn’t have that option. And webproxy doesn’t force to authenticate.

---

<div class="post-metadata">

**Author:** ![jon](https://community.ipfire.org/user_avatar/community.ipfire.org/jon/32/15363_2.png) [@jon](https://community.ipfire.org/u/jon)\
**Post date:** [3 October 2021 02:59 UTC](https://community.ipfire.org/t/user-authentication-with-captive-portal/6380/2 "2021-10-03T02:59:11Z")

</div>

maybe this might get you started:

> **[Authentication Methods - The IPFire Wiki](https://wiki.ipfire.org/configuration/network/proxy/wui_conf/auth)**

---

<div class="post-metadata">

**Author:** ![mubinre](https://community.ipfire.org/user_avatar/community.ipfire.org/mubinre/32/4486_2.png) [@mubinre](https://community.ipfire.org/u/mubinre)\
**Post date:** [3 October 2021 13:36 UTC](https://community.ipfire.org/t/user-authentication-with-captive-portal/6380/3 "2021-10-03T13:36:39Z")

</div>

Hi Jon,  
I did configure the squid proxy, but in captive portal I just see two options. How can I make the local authentication work?

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [3 October 2021 14:26 UTC](https://community.ipfire.org/t/user-authentication-with-captive-portal/6380/4 "2021-10-03T14:26:29Z")

</div>

Hi @mubinre

The Captive Portal has the Coupon method to authorise access to the network you provide and hence the Internet.

If you want the users to authorise via coupon to access the network and then to authorise via user name and password to access the internet then as @jon mentioned you will need to use the Web Proxy local authorisation.  
[https://wiki.ipfire.org/configuration/network/proxy/wui\_conf/auth/local](https://wiki.ipfire.org/configuration/network/proxy/wui_conf/auth/local)

To make this authentication required for all users browsers to that network then you would need to follow the instructions for WPAD/PAC configuration which makes those users browsers use the proxy.  
[https://wiki.ipfire.org/configuration/network/proxy/extend/wpad](https://wiki.ipfire.org/configuration/network/proxy/extend/wpad)

---

<div class="post-metadata">

**Author:** ![mubinre](https://community.ipfire.org/user_avatar/community.ipfire.org/mubinre/32/4486_2.png) [@mubinre](https://community.ipfire.org/u/mubinre)\
**Post date:** [6 October 2021 20:45 UTC](https://community.ipfire.org/t/user-authentication-with-captive-portal/6380/5 "2021-10-06T20:45:44Z")

</div>

Hi @bonnietwin,

I did follow everything written in the 2nd link. I am not sure but I feel I missed something. I thought that the proxy configuration will redirect me to a webpage where local users have to sign in with usename and password to access the internet. But nothing such happened. So, now my question is, is it possible to redirect users first to authenticate with username and password?

Thank you in advance

best regards

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [6 October 2021 21:50 UTC](https://community.ipfire.org/t/user-authentication-with-captive-portal/6380/6 "2021-10-06T21:50:56Z")

</div>

If your proxy redirection is not working using wpad try first on a pc to manually enter IPFire as the proxy server. Then try to access the internet.

If no authentication is asked for then I would suspect that there is an error in the setup of the local authentication in the web proxy.

If authentication is asked for then there is a problem with the setup of the wpad proxy setting automatic distribution.

---

<div class="post-metadata">

**Author:** ![mubinre](https://community.ipfire.org/user_avatar/community.ipfire.org/mubinre/32/4486_2.png) [@mubinre](https://community.ipfire.org/u/mubinre)\
**Post date:** [24 October 2021 02:10 UTC](https://community.ipfire.org/t/user-authentication-with-captive-portal/6380/7 "2021-10-24T02:10:46Z")

</div>

Well, Thanks for your help. But I gave up, it’s a home project, and it’s too complicated or too much research and time consuming for me. I’ll wait until someone upload a video instruction on youtube.
