Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - tong2x

#1

2025-11-17T20:26:25Noticeconfigd.py[019408d8-00e1-45f1-a825-c76634ff1d17] request captiveportal status
2025-11-17T20:26:25Noticeconfigd.py[1a394928-72dd-41c0-8b17-278ebb49d7f7] restarting captiveportal services
2025-11-17T20:26:20Noticeconfigd.py[1172b32d-d17d-4a74-82fe-cad27e185d3b] IPsec list legacy VirtualTunnelInterfaces
2025-11-17T20:26:20Noticeconfigd.py[2ac73fa8-9cc0-4178-8e5f-914fa47dd580] Show disk usage
2025-11-17T20:26:20Noticeconfigd.py[dfa78dcc-b6d1-46ed-aa98-0cb878561592] request captiveportal status
2025-11-17T20:26:20Noticeconfigd.py[4e05d161-4fc3-4f82-a4ff-25e7e7416b84] system status
2025-11-17T20:26:18Errorconfigd.py[b5ac6d23-7056-4ae5-8d0f-06a32e75fafe] Script action failed with Command '/usr/local/opnsense/scripts/captiveportal/listClients.py -z ''' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/actions/script_output.py", line 89, in execute subprocess.run(script_command, env=self.config_environment, shell=True, File "/usr/local/lib/python3.11/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '/usr/local/opnsense/scripts/captiveportal/listClients.py -z ''' returned non-zero exit status 1.
2025-11-17T20:26:18Noticeconfigd.py[c8ea

seem database keeps getting currupt and cant be repaired possible to add a button to repair and/or
stop captive portal delete the dabase and start captive portal again for a fressh database
#2
it populated after 2-3hours but the sessions does not hit the hard timedout and users are still logged in see list there are are more than 1 day users
#3
25.7, 25.10 Series / Captive Portal Session List is empty
November 08, 2025, 09:35:48 AM
Versions
OPNsense 25.7.7_4-amd64
FreeBSD 14.3-RELEASE-p4
OpenSSL 3.0.18

Services: Captive Portal: Sessions
is empty even if there are clients authenticating

#4
update: seems MOST probably a wifi or switch issue
#5
Versions
OPNsense 25.7.5-amd64
FreeBSD 14.3-RELEASE-p4
OpenSSL 3.0.18

I have captive portal issue started sometime 25.x, may free wifi is in vlan 15.
after a while it will randomly "crash" or block all access. DHCP works though ping to the
gateway ip returns timed out. ping to other devices within the network is ok.
there will be no Internet connection.

solution with no effect
1) restart or stop/start captive portal
2) restart or stop/start ubound
3) restart or stop/start DHCP
4) I think i have tried restart to no effect

solution to recover from issue
1) change IP of VLAN Interface, usually from 192.168.88.1 to 192.168.88.2 and vice versa if .2 does the same issue

captive portal functioning correctly

https://freeimage.host/i/KkEwhQV

captive portal blocking

https://freeimage.host/i/KkEOHOJ

I have tried to check other logs, but there are no mention of captive portal crashing or bad database. vene on the captive portal logs.
it is as if randomly it just blocks accesss. and restart of portal does not seem to have an effect.
only if I change the IP of vlan interface.
#6
database keeps crashing and curropted, I have deleted 3 times already.
any help?

2025-04-15T08:25:22    Informational    captiveportal    AUTH anonymous@10.10.2.114 (10.10.2.114) zone 0   
2025-04-15T08:25:12    Error    captiveportal    sqlite3 /var/captiveportal/captiveportal.sqlite doesn't look like a database, renamed to /var/captiveportal/captiveportal.sqlite.20250415082512.bck   
2025-04-15T08:25:07    Informational    captiveportal    AUTH anonymous@10.10.2.114 (10.10.2.114) zone 0   
2025-04-15T08:25:07    Error    captiveportal    Forcefully repair database (Traceback (most recent call last): File "/usr/local/opnsense/scripts/OPNsense/CaptivePortal/cp-background-process.py", line 259, in main bgprocess.sync_zone(zoneid) File "/usr/local/opnsense/scripts/OPNsense/CaptivePortal/cp-background-process.py", line 140, in sync_zone expected_clients = self.db.list_clients(zoneid) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/opnsense/scripts/OPNsense/CaptivePortal/lib/db.py", line 205, in list_clients cur.execute(""" select cc.zoneid sqlite3.OperationalError: database is locked )   
2025-04-15T08:24:52    Informational    captiveportal    AUTH anonymous@10.10.2.114 (10.10.2.114) zone 0
#7

A hotfix release was issued as 25.1.5_5:
 o captive portal: missing fix for command line argument parsing in backend
#8
progress has been made in github
there is a patch
#9
Quote from: dhqcn on April 13, 2025, 02:34:19 PMWith the 25.1.5_4, I have the same authentication issue, but with SSH into root account. I do not use captive portal at all.
However, the issue was gone when I reverted to a snapshot with the 25.1.5_1 version.

whats the command to revert to that version?

issue with portal voucher reported in github
https://github.com/opnsense/core/issues/8540
the whole portal ithink is broken, I only use no authentication, clicking connect button returns "login failed"
#10
Quote from: FraLem on April 13, 2025, 11:05:39 AMCould it be related to the we browser's cache?
Quote from: tong2x on April 12, 2025, 04:36:07 AM25.1.5_4

same login error

then the submit/connect button was lost/missing even if not yet authenticated.
even reverting to default template same error but submit button shows
returns login failed

I am using no auththentication just conenct button to authenticate

tried with multiple devices, and tried maually entering portal addess and even in incognito mode
same login error, even using the default blank template

#11
on OPNsense 25.1.5_4
using no authentication

the connect button is missing...

reverting to the default portal.
connect button shows but throws, login failed

should NAT refelction be turned on? ang 1to1 NAT?

there is an open issue in github
https://github.com/opnsense/core/issues/8540
#12
25.1.5_4

same login error

then the submit/connect button was lost/missing even if not yet authenticated.
even reverting to default template same error but submit button shows
returns login failed

I am using no auththentication just conenct button to authenticate
#13
25.1, 25.4 Series / [Captive Portal] Whitelist URL
March 24, 2025, 03:46:30 AM
[Captive Portal] Whitelist URL

how to white list a external URL
so it will load and NOT be blocked by the captive portal?

I have address IP rules to allow and even alias to no avail, acess thos site ultimately load sa captive portal.
#14
25.1, 25.4 Series / Traffic shaping [experimental]
February 28, 2025, 10:13:44 AM
tried the new  Traffic shaping [experimental] in firewall
so much easier than creating rules in shaper rules which was complicated.
very nice!

but would like to report that the reverse rule is not being followed
download shaper is followed while the upload is not or is there a config issue?
EDIT:
if rule direct has shaper and reverse direction has none, then same as non for both or both uncapped
if rule direct has none and reverse direction has shaper (2mbps), then error not allowed to save
if rule direct has shaper (1mbps) and reverse direction has shaper(2mbps), internet will have 2mbps download and uncapped upload





#15
agree, may be a simple formatable  3 to 5 letter code or letter with generatable numeric
ex input
daycode{number}
number start 100
number end 999

generated will be
daycide001
daycide002
daycide003
...
daycide999


or just an uploadable code vs time database, which the voucher system will parse

the random letter and unumbers are just to complex to input.