OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: karaiodova on February 14, 2018, 12:39:34 pm

Title: Redirect to Captive portal is not working with PROXY enabled
Post by: karaiodova on February 14, 2018, 12:39:34 pm
Hi
I just installed  OPNsense 18.1.2. When I enable Captive portal redirection works, but when I enable WEB PROXY, redirection doesn't work, users have internet without authentication.
At Captive portal-Administration-Authenticate using is Local Database
an
At Web Proxy- Administration - Autentication method is Local Database again.

I hope someone can help me.
Title: Re: Redirect to Captive portal is not working with PROXY enabled
Post by: franco on February 15, 2018, 10:38:07 am
There is a checkbox in your captive portal settings to allow bouncing through the proxy.


Cheers,
Franco
Title: Re: Redirect to Captive portal is not working with PROXY enabled
Post by: evbevz on February 21, 2018, 09:51:35 am
Redirection from Captive Portal to Web-Proxy is transparent.
Transparent proxy doesn't use authentication.
So, you can look at proxy access-log to find proxy connections from Captive Portal's guestnet to internet.
Title: Re: Redirect to Captive portal is not working with PROXY enabled
Post by: chocapic on March 05, 2018, 04:54:56 pm
I have the same worries.
If I activate the captive portal and check http and https proxy I have the authentication request but no traffic log in the transparent proxy /

If I create the rules nat 3128 - 3129 I have the log but not the authentication page
Title: Re: Redirect to Captive portal is not working with PROXY enabled
Post by: chocapic on March 05, 2018, 05:08:02 pm
attached my conf
Title: Re: Redirect to Captive portal is not working with PROXY enabled
Post by: chocapic on March 05, 2018, 05:09:11 pm
my rules
Title: Re: Redirect to Captive portal is not working with PROXY enabled
Post by: franco on March 06, 2018, 07:56:51 am
Do you have shared forwarding enabled? Firewall: Settings: Advanced.
Title: Re: Redirect to Captive portal is not working with PROXY enabled
Post by: chocapic on March 07, 2018, 10:15:50 am
I did not know this option.
I activated it but it does not change anything.
Should I change the rules of the guest network next?
Title: Re: Redirect to Captive portal is not working with PROXY enabled
Post by: koceila on May 04, 2018, 01:54:51 am
Hi, I just had the same problem, and to fix it I just disabled the NAT rules I created when creating the transparent proxy. and miraculously it works. Good luck