How captive portal works?
-
i ve got several questions about captive portal
when u tick "Enable captive portal" several rules are added to ipfw … which files do i need to edit to add my own rules ??
when u r logging in captive portal following rules are added via index.php in captive portal folderexec("/sbin/ipfw add $ruleno set 2 skipto 50000 ip from $clientip to any in"); exec("/sbin/ipfw add $ruleno set 2 skipto 50000 ip from any to $clientip out"); /* add ipfw rules for layer 2 */ exec("/sbin/ipfw add $l2ruleno set 3 deny all from $clientip to any not MAC any $clientmac layer2 in"); exec("/sbin/ipfw add $l2ruleno set 3 deny all from any to $clientip not MAC $clientmac any layer2 out");
and they are remove once Hard timeout has been reached … which files do i need to edit to remove my own rules related first??
greets
-
ok everything i need is in captiveportal.inc