Setting up a captive portal - Squid

From JoatWiki
Jump to: navigation, search

Contents

What is Squid?

Installing Squid

  • Installation is simple. Run "uprmi squid". The output should look like what's below.

Output from "urpmi squid"

[root@gateway ~]# urpmi squid
To satisfy dependencies, the following packages are going to be installed:
perl-Authen-Smb-0.91-8mdv2007.1.i586
squid-2.6.STABLE7-2mdv2007.1.i586
Proceed with the installation of the 2 packages? (4 MB) (Y/n) y

    http://ftp.ussg.iu.edu/linux/mandrake/official/2007.1/i586/media/main/release/squid-2.6.STABLE7-2mdv2007.1.i586.rpm
    http://ftp.ussg.iu.edu/linux/mandrake/official/2007.1/i586/media/main/release/perl-Authen-Smb-0.91-8mdv2007.1.i586.rpm
installing squid-2.6.STABLE7-2mdv2007.1.i586.rpm perl-Authen-Smb-0.91-8mdv2007.1.i586.rpm from /var/cache/urpmi/rpms
Preparing...                     ##########################################################################################################################
      1/2: perl-Authen-Smb       ##########################################################################################################################
      2/2: squid                 ##########################################################################################################################
[root@gateway ~]#

Configuring Squid

Add the following to squid.conf

http_port 192.168.5.1:3128 transparent

Back to "Setting up a captive portal"

Personal tools