Captive portal not working after disabling it for a few minutes and then enable
-
Captive portal not working after disabling it for a few minutes and then enable it. The service is started and the log does not show anything relevant, sometimes only restarting the server works and sometimes I have to delete the zone and create a new one, what can it be?
-
This is what my testing showed:
Steps to reproduce:
Fresh install of July 5's 2.1-RC0
Standard WAN/LAN NAT/PAT config
Enable Captive Portal on LAN, no authentication
CP functions normally.
Edit CP Instance, Disable CP.
Traffic passes from LAN normally.
Edit CP Instance, Enable CP.
Traffic continues to pass from LAN normally, never redirecting to CP.
The only way I can get the CP to function again is to restart.
Tried deleting and recreating CP, no change until restart.
-
You are sure there is nothing related to state table needing clearing?
-
Tried clearing the state table too. It was my understanding that the CP ipfw fwd to :8000 all happens prior to anything making it to pf.
I can set up a test box and do it again if you want.
-
Should be better on newer snapshots i pushed a fix.
-
Thank's ermal, i tested yesterday and work fine for me, thank's again my friend.
-
My initial testing indicates it's working for me too. Thanks much. This was a PITA.
If I have a gateway I have not updated and run into this, can I just run:
/sbin/sysctl net.link.ether.ipfw=1 net.inet.ip.fw.one_pass=1
to get the portal working again?
Thanks again.