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.
Copy root@ubilinux:~# apt-get install squid3 squid3-common
Copy root@ubilinux:~# apt-get install dhcpd
Copy root@ubilinux:~# apt-get install apache2
root@ubilinux:~# apache2 -k restart # Wrong
root@ubilinux:~# /etc/init.d/apache2 restart # Ok
Copy root@ubilinux:~# git clone https://github.com/wifidog/wifidog-gateway.git
root@ubilinux:~# cd wifidog-gateway
root@ubilinux:~/wifidog-gateway# ./autogen.sh
root@ubilinux:~/wifidog-gateway# ./configure
root@ubilinux:~/wifidog-gateway# make
root@ubilinux:~/wifidog-gateway# make install
root@ubilinux:~/wifidog-gateway# wifidog
[6][Fri Jan 8 23:23:20 2016][16159]( conf.c:651 ) Reading configuration file '/usr/local/etc/wifidog.conf'
[3][Fri Jan 8 23:23:20 2016][16159]( conf.c:654 ) Could not open configuration file '/usr/local/etc/wifidog.conf' , exiting...
root@ubilinux:~# git clone https://github.com/wifidog/wifidog-auth.git
root@ubilinux:~# apt-get install postgresql-9.1
root@ubilinux:~# apt-get install php5-pgsql
root@ubilinux:~# apt-get install php-pear
root@ubilinux:~# apt-get install php5-curl
root@ubilinux:~# wget http://prdownloads.sourceforge.net/phlickr/Phlickr-0.2.5.tgz?download
root@ubilinux:~# pear install Phlickr-0.2.5.tgz \? download
Copy root@ubilinux:~# apt-get install freeradius