Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I configured a firewall rule on a dd-wrt router to redirect http connections to a shell script, and drop the remaining ports, for the unregistered range of IPs.

I am trying to tell the clients they need to manually register by the user before having access to internet, mainly in mobile phones, I already had seen it before, on the instant I had connected to the wireless network a page popped up asking for authenticate on a custom page.

I am using 307 Temporary Redirect to redirect all requests to my server's page, but I am not sure about that, I had read about 305 Use Proxy, but it seems the Location to be a proxy address, which is not that case. It is a temporary transparent proxy.

In my case it works only when the user tries to browser by itself, how can I tell the system to ask the user for the authentication on a custom page in the moment it had connected?

Here the code

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.