OPNsense Forum

English Forums => General Discussion => Topic started by: lox on January 21, 2018, 10:36:44 am

Title: Lockedup after activating Captive Portal
Post by: lox on January 21, 2018, 10:36:44 am
Hello,

I turned on the captive portal feature and I am now locked up and cannot access the webui anymore (see screenshot)

I have SSH access but have no idea on how to get out of there.

Title: Re: Lockedup after activating Captive Portal
Post by: fabian on January 21, 2018, 11:23:13 am
You can revert to an older configuration via SSH if you like (option 14 if I remember correctly). To fix this issue, you must not use the proxy to access the web GUI via squid unless you have a valid and trusted certificate. The problem is that you run a transparent proxy which validates the web server certificate and this check fails because it is a self signed certificate (which is untrusted). You can bypass this issue the following ways:

* do not forward traffic to the firewall to the transparent proxy
* do not bump the connection (No bump hosts in the proxy settings)
* use a valid certificate for the web GUI (for example via Let's Encrypt)
* add a exception via the squid configuration in the validation of certificates
Title: Re: Lockedup after activating Captive Portal
Post by: lox on January 21, 2018, 11:38:29 am
Thanks I found a way to access the GUI flushing the firewall rules from SSH.

I then removed the captive portal on LAN and it now behave properly without touching proxy setting or anything else.

Still I cannot setup the captive portal without an issue  :-[

Thanks for your help.

Title: Re: Lockedup after activating Captive Portal
Post by: lox on January 21, 2018, 11:42:10 am
BTW I don't have an option to revert:

Title: Re: Lockedup after activating Captive Portal
Post by: franco on January 21, 2018, 01:25:56 pm
It's "13) Restore a backup"

Why do you set up a captive portal on LAN where the chances of locking yourself out are nearly 100% ?

Use a separate interface, or create a management LAN...


Cheers,
Franco