tomt00001
October 23rd, 2003, 00:13
Hello all,
I am looking for a code snippet in PHP to manage a pf or ipfw based firewall, Does anyone know of anything?
I am trying to build a "captive portal" wireless access point.
Heres the senario
1. Wireless access point or multiples attached via ethernet to a BSD box
2. Wireless clients connect to access points
3. All traffic from access points is redirected thru the BSD box
The BSD box would have firewall rules that would redirect all traffic to a webserver on the same machine. On the webserver a PHP interface would authenicate the user against a database(probably mysql) and build a firewall rule using the IP address and mac-address to allow the client machine to pass thru the BSD box onto the "real" LAN and to the internet or beyond. In addition periodically a cron/or other scheduled job would run and remove rules that were more than more than a certain age(unless I could figure out a way to hook into the firewall to figure out if there had been activity in the last X minutes.)
Make sense?
Thanks
Tom
I am looking for a code snippet in PHP to manage a pf or ipfw based firewall, Does anyone know of anything?
I am trying to build a "captive portal" wireless access point.
Heres the senario
1. Wireless access point or multiples attached via ethernet to a BSD box
2. Wireless clients connect to access points
3. All traffic from access points is redirected thru the BSD box
The BSD box would have firewall rules that would redirect all traffic to a webserver on the same machine. On the webserver a PHP interface would authenicate the user against a database(probably mysql) and build a firewall rule using the IP address and mac-address to allow the client machine to pass thru the BSD box onto the "real" LAN and to the internet or beyond. In addition periodically a cron/or other scheduled job would run and remove rules that were more than more than a certain age(unless I could figure out a way to hook into the firewall to figure out if there had been activity in the last X minutes.)
Make sense?
Thanks
Tom