Captive portal script using iptables and  PHP