We need to keep-state on the allowed MAC address rules.

This commit is contained in:
Scott Ullrich 2005-09-27 18:33:55 +00:00
parent ea89d454d0
commit 5d61b44e45

View File

@ -568,8 +568,8 @@ function captiveportal_passthrumac_configure() {
foreach($config['captiveportal']['passthrumac'] as $ptm) {
/* create the pass through mac entry */
//system("echo /sbin/ipfw add 50 skipto 65535 ip from any to any MAC {$ptm['mac']} any > /tmp/cp");
mwexec("/sbin/ipfw add 50 skipto 65535 ip from any to any MAC {$ptm['mac']} any");
mwexec("/sbin/ipfw add 50 skipto 65535 ip from any to any MAC any {$ptm['mac']}");
mwexec("/sbin/ipfw add 50 skipto 29900 ip from any to any MAC {$ptm['mac']} any keep-state");
mwexec("/sbin/ipfw add 50 skipto 29900 ip from any to any MAC any {$ptm['mac']} keep-state");
}
}