Captive Portal rule does not work when using a restrictive ruleset
Directions to reproduce:
Setup captive portal on OPT1.
Add a rule on OPT1 interface:
src: OPT1 subnet
dst: OPT1 subnet
Captive portal will not display as it should. It has something to do with ipfw forwarding the traffic to localhost.
Updated by Chris Buechler about 11 years ago
- Status changed from New to Closed
The rule is correct as it is, where it passes to 8000/8001 to $cpinterface, and it all functions correctly. The reason allowing only OPT1 subnet to OPT1 subnet doesn't work is if you block the original destination's SYN it will get dropped by pf. e.g. if you browse to google.com and get IP 126.96.36.199, if you aren't allowing HTTP traffic to destination 188.8.131.52, that's going to get dropped and you won't get redirected to CP. That's the correct behavior.