Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-13-2010, 01:50 AM   #1
LQ Newbie
Registered: Feb 2010
Posts: 3

Rep: Reputation: 0
Smile 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
Old 02-13-2010, 01:52 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
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.
Old 02-13-2010, 01:56 AM   #3
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

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,

Old 02-13-2010, 03:13 AM   #4
Registered: Jan 2010
Distribution: Debian, Centos, Ubuntu, Slackware
Posts: 360
Blog Entries: 3

Rep: Reputation: 48
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.

Last edited by Lexus45; 02-13-2010 at 03:19 AM.


cent, configuration, proxy

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Real Player Installation on Cent OS venkatteshb Linux - Newbie 6 07-10-2009 03:48 AM
Cent OS 5.2 not booting after installation gkgm Linux - Laptop and Netbook 1 02-12-2009 09:09 AM
Cent OS 4.6 - need help in JDK installation vikram8jp Linux - Software 3 10-20-2008 07:49 PM
Where is the proxy server settings saved during the OS installation? Akhran Debian 3 09-11-2006 07:17 PM
Cent OS 4.2 Installation - Help Required RangLinux Linux - Software 2 07-28-2006 05:17 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration