LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-13-2010, 01:50 AM   #1
arunkumarblr2010
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
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
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
 
Old 02-13-2010, 03:13 AM   #4
Lexus45
Member
 
Registered: Jan 2010
Location: Kurgan, Russia
Distribution: Slackware, Ubuntu
Posts: 339
Blog Entries: 3

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

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


Reply

Tags
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


All times are GMT -5. The time now is 08:55 PM.

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