pfsense/pfsense — pull request #1409 by ehayon (2014-12-29 22:22:08+00:00)
Title: fixes captive portal bug where long ipfw rules fail to apply bug#4150

When captive portal creates ipfw rules, too many interface addresses can cause ipfw to return "rule too long"

See iussue #4150: https://redmine.pfsense.org/issues/4150

This is a problem when running a captive portal zone on > ~120 interfaces. This pull request breaks up the rules into chunks of 100 interface addresses.

$rulenum will overlap 65532 when ~20,000 interfaces are added to CP zone. This patch assumes you will not approach 20K interfaces on a CP zone, a fairly reasonable limitation.