opnsense / core

OPNsense GUI, API and systems backend
https://opnsense.org/
BSD 2-Clause "Simplified" License
3.36k stars 754 forks source link

Captive portal isn't working, several problems #49

Closed havarh closed 9 years ago

havarh commented 9 years ago

Captive portal problems: PS! I've tested the same config file on pfSense, and everything is working under pfSense. For this test I have used the IP 192.168.2.105 for the WAN and the IP 10.13.37.1 for the LAN

I have activated the captive portal on the LAN interface, with local user and voucher authentication.

PS! I've tested this on OPNsense 15.1.5 and pfSense 2.2.

AdSchellevis commented 9 years ago

https://github.com/opnsense/core/commit/91bf66effec3ec04040593e54bae4ad2540b59d6 Stopping and starting the zone didn't result in reloading the ipfw rules, added a reload of the rules to the start action to prevent this from happening. The current version only reloads after a reboot.

Eventually we should rewrite more code from CP, because the legacy system uses all kind of kernel hooks which will probably never make it to the standard FreeBSD kernel and we will try to avoid this.

We had to rewrite the rule handling and generation before our mvc framework was finished. Let's try to polish some of this to a working state and schedule a rewrite into our mvc framework at a later moment.

DivakarRajagopalan14 commented 8 years ago

Hi.I am new to opnsense or Pfsense what ever. The Captive Portal part is not working at all.. Any easy way to implement it. and is there anyway to track the users browser history as per ip address in opnsense