Tag Archive for 'proxy'

Squid as a captive portal… part 2

This is long overdue, but here it is anyway. The source codes I used to set up Squid as a captive portal. The bundle also includes the squid config file, the redirector script, and the authentication pages.

Requirements:

In my code, memcached is configured to be running on localhost on port 28888. Continue reading ‘Squid as a captive portal… part 2′

Attached Files:

Using Squid to build a captive portal, for free!

The other day I was a bit bored so I wanted to try something new. I wanted to build a proxy server which required me to authenticate, but I was not satisfied with the basic HTTP authentication options Squid gave me. I wanted a nice looking webpage, with a form. I also wanted something which would allow “visitor self service”, like a “I forgot my password”-page, or a page where a user could pay and sign up.

image

This is the page I get when typing www.google.com in the address bar of my browser. Only after authenticating,  I get granted access to the internet. It isn’t just web filtering, every application that requires internet access will be denied until the authentication process has been completed.

What I was looking for, is called a Captive portal. According to Wikipedia:

Continue reading ‘Using Squid to build a captive portal, for free!’