landysaccount Posted September 2, 2010 Share Posted September 2, 2010 Hello. Sorry if this is not the correct place to post this but, I'm looking to create this with php but, need some help. I would like to add a captive portal to my network. I've read about some that are out there but, they are not customisable to really accomplish what I need. I'm here to see if I can get some ideas from you guys. This is what I'm trying to accomplish. Simply show a splash page every certain time, let's say every four hours, the client would just press a button or a link and just redirect to the page the user intended to visit and just keep track of whos online using the Internet. I've used NoCat and it works well but, is written in Perl. I have some php scripts that I would like to use with it but, haven't find a way to do it. I noticed Nocat listens on a certain port writes an iptable rule marking packets with mangle table from the client's ip address, after a certain time it deletes the rule for that address forcing the ip to "re-authenticate" again showing the splash page. Any suggestions on how can this be done? Thanks in advanced for your help. Quote Link to comment Share on other sites More sharing options...
MiCR0 Posted September 2, 2010 Share Posted September 2, 2010 I never seen a captive portal done in PHP before but I am sure there is ways of doing it the only thing I can think of right now would be to PHP & iptables. check out http://www.andybev.com/index.php/Using_iptables_and_PHP_to_create_a_captive_portal hope that helps Quote Link to comment Share on other sites More sharing options...
landysaccount Posted September 3, 2010 Author Share Posted September 3, 2010 I was thinking of running a php script listening on a port running on a socket to rewrite the iptables rules but, can't think of how to actually do it I'm short on ideas. Never used php sockets before so dont know how that would work. Any suggestions would be apreciated. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.