OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: tong2x on May 08, 2021, 04:43:45 PM

Title: captive portal force disconnect user
Post by: tong2x on May 08, 2021, 04:43:45 PM
using the following
System Information
Name    OPNsense.onghocgan.net
Versions    OPNsense 21.1.5-amd64
FreeBSD 12.1-RELEASE-p16-HBSD
OpenSSL 1.1.1k 25 Mar 2021
CPU type    Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (8 cores)

going to captive portal session
select the chexkbox and click the trash icon
show a dialog box confirimng the action but click yes does nothing.
does not rove the user/ip

also having constant disconnect even if i set the hard idle timedout at 600minutes...
so mow I set it to zero for the moment.
Title: Re: captive portal force disconnect user
Post by: hloiter on June 14, 2021, 01:46:34 PM
Quote from: tong2x on May 08, 2021, 04:43:45 PM

going to captive portal session
select the chexkbox and click the trash icon
show a dialog box confirimng the action but click yes does nothing.
does not rove the user/ip

also having constant disconnect even if i set the hard idle timedout at 600minutes...
so mow I set it to zero for the moment.

Same problem here with OPNsense 21.1.6 ....

Has anyone an solution?

hloiter
Title: Re: captive portal force disconnect user
Post by: hloiter on June 14, 2021, 02:08:41 PM
OK,

with the command "configctl captiveportal disconnect [zoneid] [session_id]" i am able to disconnect the user session via SSH shell .....
Where can i look to get this work via Web GUI?

hloiter
Title: Re: captive portal force disconnect user
Post by: hloiter on June 14, 2021, 02:41:08 PM
Just found this entry "https://github.com/opnsense/core/issues/4908" on GitHub.

Does that mean the bug is known and is being worked on?

hloiter


Title: Re: captive portal force disconnect user
Post by: AdSchellevis on June 14, 2021, 09:45:45 PM
Not really, it was marked "support" (nobody dived into it yet). I just tried it on my end, could reproduce it and pushed a patch (see ticket for further info).

Best regards,

Ad
Title: Re: captive portal force disconnect user
Post by: hloiter on June 15, 2021, 09:21:51 AM
OK, applying the patch "45f440a" solves the problem.

opnsense-patch  45f440a

Thanks and best regards

hloiter