-   Linux - Server (
-   -   Proxy Server Installation On cent os 5.3 (

arunkumarblr2010 02-13-2010 02:50 AM

Proxy Server Installation On cent os 5.3
can any one tell me how to install & configure proxy server(squid)
with ip tables configuration & reporting & user authentication

acid_kewpie 02-13-2010 02:52 AM

please refer to standard reference documentation such as the squid howto for basic installation and configuration. If and when you have *specific* questions, please ask.

EricTRA 02-13-2010 02:56 AM


Sure, Google can tell you all of that. Two minutes of my time got me this:
Squid installation and configuration on RH/CentOS/Fedora
Squid and authentication 1
Squid authentication 2
Example of Squid with iptables
Squid reporting

If you just would put some of YOUR time in it with Google you'll find a ton of information.

Kind regards,


Lexus45 02-13-2010 04:13 AM

You don't need to change much parametres for the simple configuration. The devil is not so black as he is painted ;-)

Just change your network addresses in the squid.conf, say

acl localnet src
http_access allow  localnet

If you want your proxy to be transparent, be sure to have in the config file:

http_port 3128 transparent
Though it may depend on the Squid version, so, don't hesitate to consult the official documentation, it's really well-written.

And add a rule to iptables which will work for the LAN-connected interface:

iptables -t nat -A PREROUTING -i ethX -p tcp --dport 80 -j REDIRECT --to-port 3128
Don't forget to

squid -z
for the first time you start your proxy, this command will create the hierarchy of directories for cache, but I think that if you'll start Squid from some script like /etc/init.d/squid or /etc/rc.d/rc.squid - this command will be executed from it.

All times are GMT -5. The time now is 04:06 AM.