Skip to content

♻️ Redirection tool helper for squid proxy-server to redirect web requests on demand to another location

License

Notifications You must be signed in to change notification settings

merrychap/squid-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

squid-redirect

General info

squid-redirect is a tool for managing redirections of squid proxy-server. It is easy to use and you can add redirect rule without any effort.

It was tested on Kali Linux.

How it works

All redirects are stored in one json file called redirections.json. You can change this file without restarting squid , all changes will be applied immediately.

Don't forget to leave one empty extra line at the bottom of redirections.json file!

How to setup

  1. You can run setup.sh file. It will produce all below operations. Now see 5 step.

  2. First of all, we have to install squid itself (using apt-get or building by yourself):

$ sudo apt-get install squid
  1. Build squid-redirect using make:
make
  1. The next step is copying src/main binary and redirections.json file to /tmp/squid-redirect/ directory (this directory will be changed in the future).

  2. After this, copy squid.conf to /etc/squid/ (make a backup of the original squid.conf before replacing it).

  3. Restart squid and reconfigure it by typing:

sudo service squid restart
sudo squid -k reconfigure
  1. Now you can change /tmp/squid-redirect/redirections.json file to setup desired redirections.

Also, if you want to see logs, then type the next:

sudo journalctl -u squid.service -b

About

♻️ Redirection tool helper for squid proxy-server to redirect web requests on demand to another location

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published