Hello everyone. I would like to create a captive portal using PHP where it would authenticate the user based on IP address and status. I tried using php socket and redirect traffic to it with ip tables. I'm having some problems since I can't get the customer ip address. Now, I would like to know if there's a way to create a script to go along with squid that would help me accomplish this and how to use squid to use the script. For example: customer =====>>> router/gateway/squid =======>>>> internet || || || PHP Script doing auth if ok then allow to internet Thanks in advanced for your help.