-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Captive Portal - Bypass Address/Subnet not working #1700
Comments
|
Oh, I forgot to tell you that, in my case, I want to bypass the CP by Address/Subnet, not MAC. But the referencing thread I mentioned above is about bypassing by MAC. Nevertheless, I've tried to use MAC bypassing too, but have no luck! (still have the same issue/behavior as using Address/Subnet). So, I assume that both two issues are closely related and use this thread as the reference. Thanks! |
|
We're not using any of the pfSense code for captive portal, it's rebuild from scratch, so it's quite unlikely a related issue. If you share more details about your setup (like some screenshots), maybe we can point you in a direction. |
|
Ok, first of all, I'm sorry for giving you useless information by referring to pfSense (all I need is to give you a case that is most likely the same as mine). Here are my settings / screenshots:a) Interfaces: I've 3 WANs (load-balancing). All other interfaces are LANs. b) Gateway Group: c) Firewall Rules: I only upload the screenshots for interfaces containing manually input rules. All other interfaces having auto generated rules (i.e. from NAT) are not presented here. d) NAT: e) DHCP: For all LAN interfaces, the subnet 10.x.0.0/24 and 10.x.2.x/24 are reserved for static DHCP, and all automatic DHCP pools are set in the range of 10.x.1.0/24 (10.x.1.1 - 10.x.1.254) f) CP Zones: The screenshot captured here showing that only GUEST interface is enabled since I've to disable all other interfaces to make the system working for now. But, I'm encountering this issue in all interfaces. g) Zone Settings: You can see that I already put static subnets in h) Client IP: I've already checked that my laptop having static DHCP address (10.x.2.x). Work around & system behavior I found:
Hope this help! |
|
To make a thing clearer, the behavior I'm expecting, which the system behaved 2 days ago before last restart, I might get throught the internet without logging in into CP if the client is in static DHCP subnet. But, the situation I'm facing here is that I'm still prompted by the login screen and cannot login into CP as described in (1). |
|
Normally it should allow addresses coming from 10.254.0.x and 10.254.2.x on interface "guest", it's probably best to test step by step. First setup your Guest network with a simple firewall rule If that's the case, we might inspect the underlaying rules, for that we need the output of: |
|
I followed the instructions you gave above. But, I had no luck :( First: disable all floating rules. Note: I've to let the last rule forwarding other connections to "LB_ALL" gateway group still be enabled since the system is up and running and there are some users still using the internet for their works. But, I already unchecked the Second: disable all GUEST rules and add a simple forward all to default gateway rule into GUEST. I also attached the Thanks! |
|
It's better to test without the gateway group first, to avoid other interferences, but let's check the contents of the ipfw list first:
To be sure, check the ip address of the client your trying to connect with and please report that back too. |
|
Hi, I've disabled all manually-input rules in all interfaces and tested without gateway group (use default gateway instead). And, also rechecked the client's ip address as you suggested (my client's ip is 10.254.2.252). The I'm still redirected to CP login page ... This is And Cheers! |
|
Ok, that's odd, this is currently in your list: Have you applied your settings? |
|
These are the steps I perform the test:
It seems to be the same... I don't know much about how OPNSense interact with P.S. Is it a good idea to let you ssh into my OPNSense machine via OpenVPN to investigate on this issue? Thanks :) |
|
can you check if the captive portal background process is running?
If not, can you try to run the following and see if it crashes?
|
|
It seems Feels like getting close to the solution :). How could I do next? |
|
Okay AdSchellevis, I've tried this:
It seems right! I tried to connect to GUEST network. No CP login screen showed anymore :) All steps above I tried to figure it out based on my guess with the source code Even though my issue has been resolved, I'm willing to help you digging the cause of CP's sqlite db file corruption (if you want to). Please let me know. Really appreciate for your great support! |
|
Just another feedback, for the weird thing I mentioned above:
This problem is completely resolved too. I think that I'm having the issue with sqlite db file a very long time ago since I had been with this weird thing a long time ago before all CP functionalities are gone. Cheers! |
|
@tee4cute it doesn't happen very often (usually a result of a system crash), we probably should check the database when starting and remove the database automatically if it's beyond repair. |


















Hi,
I'm facing the same issue with this thread:
https://forum.pfsense.org/index.php?topic=123360.0
I've just restarted the system in this morning and this issue suddenly appeared without changing any configs or system upgrades.
This is my system envs:
OPNsense 17.1.8-amd64
FreeBSD 11.0-RELEASE-p10
OpenSSL 1.0.2l 25 May 2017
I've tried to delete and re-create all CP zones again but it not worked. The thread I mentioned above was resolved by upgrading to the new system version. But, for mine, it seems that I'm having the latest release. So, before trying to re-install the entire machine, I may open the issue here to let you guys help me to investigate that this is a bug or not?
Cheers!
The text was updated successfully, but these errors were encountered: