LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Proxy Server Installation On cent os 5.3 (http://www.linuxquestions.org/questions/linux-server-73/proxy-server-installation-on-cent-os-5-3-a-788843/)

arunkumarblr2010 02-13-2010 01: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 01: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 01:56 AM

Hello,

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,

Eric

Lexus45 02-13-2010 03: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
Code:

acl localnet src 192.168.1.0/255.255.255.0
..
http_access allow  localnet

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

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:
Code:

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

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:59 AM.