Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wanted to create an internet gateway server where the client connecting to my network must enter a username and password, where the server checks if username and password is correct before they can access the internet. More like AUTHENTICATION via web browser.



->When not authenticated, the client will be redirected to the local server login page. When authenticated, client can access internet.
->If user deletes cookies, user will be redirected to the local server login page until authenticated again.

I don't know if it is related, but it is like this, but with client login:

share|improve this question

I would suggest using squid for this purpose. It is easy to implement basic authentication and redirect upon failure.

Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator. It runs on most available operating systems, including Windows and is licensed under the GNU GPL.

share|improve this answer
Will this work side by side with webmin? – weyhei Dec 21 '12 at 11:04
@weyhei of course. The only requirement is to configure separate tcp ports for both tools. – mnmnc Dec 21 '12 at 11:08

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.