Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

SETUP IS LIKE THIS:
INTERNET <--> GATEWAY SERVER <--> WIFI ROUTER <--> (CLIENTS connected)

ADD:

->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: http://ubuntuforums.org/showthread.php?t=926001

share|improve this question

1 Answer 1

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

 
discard

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.