This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
user:asowers:you_may_want_to_go_around_there_s_a_squid_in_the_way [2012/04/23 17:05] – created asowers | user:asowers:you_may_want_to_go_around_there_s_a_squid_in_the_way [2012/04/25 15:02] (current) – [procedure] asowers | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====Welcome==== | ||
+ | This is the fourth project for HPC0. I will be detailing the fundamentals of the Squid proxy software. | ||
+ | |||
+ | ====Why Squid?==== | ||
+ | Squid is an opensource proxy server with high functionality; | ||
+ | |||
+ | So now that you know the sheer awesomeness of squid and I'm sure you're aching to get started, lets gather our needed materials... | ||
+ | |||
+ | ====Materials==== | ||
+ | - One up-to-date Linux box with a distro of your fancy. | ||
+ | - An updated package manager. | ||
+ | - A strong will that yearns to be God of packet redirection. | ||
+ | |||
+ | ====Atributes==== | ||
+ | Shared Network service, Two stars. | ||
+ | |||
+ | ====procedure==== | ||
+ | |||
+ | This procesure will assume you're using arch linux for your setup. The only differences will be the installation via your package manager. | ||
+ | - Update your package manager: sudo pacman -Syu | ||
+ | - Download and install squid: sudo pacman -S squid | ||
+ | - Navigate to /etc/squid | ||
+ | - Now squid is well documented but there is a lot to read. If you believe the documentation is unnecessary you can remove it all by typing the following: < | ||
+ | - for our proxy we'll be initializing a transparent setup that assumes you're on a home network. | ||
+ | - coping the following config from the cat result into / | ||
+ | |||
+ | <cli> | ||
+ | [andrew@PogoLab squid]$ cat squid.conf | ||
+ | |||
+ | acl ip_acl src 192.168.1.0/ | ||
+ | http_access allow ip_acl | ||
+ | http_access allow all | ||
+ | cache_mgr asow123@gmail.com | ||
+ | cache_mem 64 MB | ||
+ | cache_dir diskd / | ||
+ | cache_effective_user andrew | ||
+ | http_port 80 transparent | ||
+ | http_port 3128 transparent | ||
+ | [andrew@PogoLab squid]$ | ||
+ | </ | ||
+ | |||
+ | create your cache directory here: < | ||
+ | |||
+ | - save the config and start the service: | ||
+ | |||
+ | <cli> | ||
+ | [andrew@PogoLab squid]$ sudo rc.d start squid | ||
+ | :: Creating squid' | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | 2012/04/24 11:50:33| / | ||
+ | 2012/04/24 11:50:33| Making directories in / | ||
+ | :: Starting squid | ||
+ | [andrew@PogoLab squid]$ | ||
+ | </ | ||
+ | |||
+ | Make sure your router can forward the ports you've set for your configuration. Set your network preferences to point at the ip of the proxy server and you're in business baby! | ||
+ | |||
+ | |||
+ | ====afterthoughts==== | ||
+ | So now that you have your squid up and swimming around your network you may ask yourself: how did I get here? and you may tell yourself: / | ||
+ | |||
+ | You can always go back and change your config for separate solutions. | ||
+ | |||
+ | ====Thanks for playing==== |