Skip to content

Kwozzie/squid-proxy-list-editor

Repository files navigation

Squid Proxy List Editor
-----------------------
Web interface for adding/deleting domains in Squid Proxy txt lists via PHP/MySQL.
With user login facility.

NB: Still in Development.
Writing lists to file is working but is yet to be tested on a production server with Squid running.

These scripts were set up and tested with PHP v5.4.6, MySQL 5.5.29


Setup
-----------------------
Create the database using setup-database.sql

Symlink the access lists to your web directory.
eg.
lrwxrwxrwx 1 root root 28 Feb 22 08:53 allowedsites.txt -> /etc/squid3/allowedsites.txt
lrwxrwxrwx 1 root root 28 Feb 22 08:53 blockedsites.txt -> /etc/squid3/blockedsites.txt
lrwxrwxrwx 1 root root 29 Feb 22 08:53 exceptedsites.txt -> /etc/squid3/exceptedsites.txt
lrwxrwxrwx 1 root root 29 Feb 22 08:53 prioritysites.txt -> /etc/squid3/prioritysites.txt

Your database and path locations added to ple_config.php.
Your own username, hash and salt added/changed in login.php

For the Squid3 reconfigure (to reload the access lists) you will need to add an
entry to /etc/sudoers for this to work, and restrict security problems

visudo /etc/sudoers
then add the following two lines.

# Allow www-data to reconfigure (reload cache?) of Squid
www-data ALL = NOPASSWD:/var/www/lists/restartsquid.sh

About

Squid Proxy List Editor - utilises PHP/MySQL to generate (and backup) txt proxy lists.

Resources

Stars

Watchers

Forks

Packages

No packages published