[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Linux in General  |  Linux Tutorials & How To's  |  Topic: Configuring Squid Proxy server & Transparent Proxy
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: 1 [2] 3 4 ... 11
  Print  
Author Topic: Configuring Squid Proxy server & Transparent Proxy  (Read 89226 times)
0 Members and 2 Guests are viewing this topic.
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2187


View Profile
« Reply #15 on: April 11, 2004, 01:42:14 AM »

Well squid uses too much of RAM when it runs in caching mode i think same for simple proxy but not sure. Smoothwall is preconfigured.. give that a look.
Logged
kmashraf
Linux Noob !
*
Offline Offline

Posts: 17


View Profile
« Reply #16 on: April 11, 2004, 02:02:09 AM »

Will surely in future keep Smoothwall in mind.
Am going to try my luck with a simple Squid setup, if that is possible.
Thanks.
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2187


View Profile
« Reply #17 on: April 11, 2004, 02:22:07 AM »

Ya. simple proxy is possible , you can also make caching proxy. that will also enhance ur performance..  just keep cache_mem 4 MB and cache dir  around 200 mb not more..
Logged
efren_rio
New Member

Offline Offline

Posts: 1


View Profile
« Reply #18 on: April 25, 2004, 04:49:36 AM »

How do I use Squid Proxy to point to an ISP's Proxy?
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2187


View Profile
« Reply #19 on: April 25, 2004, 07:24:58 AM »

Simply add following lines to ur squid.conf
Code:

cache_peer <parent IP> parent 3128 3130
Change parent ip to the ip address of the main proxy server or u can used domain also instead of IP.
Logged
carrguerr
New Member

Offline Offline

Posts: 2


View Profile
« Reply #20 on: May 14, 2004, 09:10:32 AM »

I have squid running on RH9, as a server for windoze. The windoze pc's have dreamweaver installed but DW cant access remote files. I tried to use cuteFTP, wsFTP, etc and they cant connect to my ftp server. How do I set up squid so that DW and the rest of the FTP clients have access to an outside ftp server?

Thnx
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2187


View Profile
« Reply #21 on: May 14, 2004, 09:26:39 AM »

mostly ftp clients works. problem occur with only mail clients..
Try to use passive modes in ftp clients..
Logged
carrguerr
New Member

Offline Offline

Posts: 2


View Profile
« Reply #22 on: May 15, 2004, 02:34:16 PM »

OK ... the only ftp server I get to is the Linux box. I still cant get out to a remote server with any ftp client.
I have some web sites that I want to work with thru ftp but squid wont let me thru.

How does one log in to a ftp site?
ftp.site.com/user/pass Huh

dreamweaver still wont connect.
Logged
kmashraf
Linux Noob !
*
Offline Offline

Posts: 17


View Profile
« Reply #23 on: May 23, 2004, 06:11:54 AM »

I am having a problem. When I run the sample squid.conf given by Ricky as well as the default squid.conf. I run into a 'FATAL: Failed to make swap directory /usr/local/squid/var/cache/00: 13 permission denied' problem.
My Linux is Vector Linux 4.0. I am also using the firewall script from http://projectfiles.com on this box. I have installed squid from the tar.gz available at the squid site. Is the problem related to ownership of the /usr/local/squid/var/cache directory ? By the way there is no default 'squid' user created in Vector Linux. I have to create one. What kind of permissions should this directory have for it to create the cache ?
 :?
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2187


View Profile
« Reply #24 on: May 24, 2004, 02:11:46 AM »

Ya this is the permission problem, You can have to make squid as the owner of the cache directory then have to give proper permission to them. It is like this.
Say we have a user squid of group squid..
Code:
chown squid:squid <ur cache directory>
then set permission to read, write execute to group and user..
Code:
chmod 770 <ur cache dir>
Then initialize chaze using -z

Also then you have to set same permission for log directory of squid ie.. /usr/local/squid/var/log
Logged
tomamodi
Linux Learner
***
Offline Offline

Posts: 78


View Profile
« Reply #25 on: June 28, 2004, 02:15:33 AM »

i try this squid step by step same failed need help
[root@tomamodi squid-2.4.STABLE6]# /usr/local/squid/bin/squid -z
2004/06/28 09:12:54| Creating Swap Directories
FATAL: Failed to make swap directory /usr/local/squid/cache/00: (13) Permission
denied
Squid Cache (Version 2.4.STABLE6): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 8
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2187


View Profile
« Reply #26 on: June 28, 2004, 08:02:35 AM »

hmm..
Did you saw my last post in this Thread ? Well that is the solution to your problem. Simply learn litlle more about chown and chmod and follow my last post.
Logged
lakshmi
Linux Noob !
*
Offline Offline

Posts: 5


View Profile
« Reply #27 on: July 09, 2004, 10:37:49 AM »

I have a problem in starting the squid service.  Getting error message "starting squid...... FAILED".

I have configured squid.conf file as mentioned in the tutorial. I am successfull in creating the swap directories but unable to start the service. Can any one help me. I am new to linux.

Thanks
Logged
kmashraf
Linux Noob !
*
Offline Offline

Posts: 17


View Profile
« Reply #28 on: July 14, 2004, 12:11:06 PM »

Hi thanks for the info and I've got squid running now. I have a problem though
I am unable to deny sites from a file.
This is the relevant portion of my squid.conf

#Recommended minimum configuration:
acl banned dstdomain "/usr/local/squid/etc/block"
acl all src 0.0.0.0/0.0.0.0
acl localnet src 192.168.0.0/255.255.255.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443 563
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT

http_access allow localnet
http_access allow manager localhost
http_access deny banned
http_access deny all
Can you tell me what I doing wrong !

Thanks for all your help without which I would not have got this far.
Ashraf
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2187


View Profile
« Reply #29 on: July 16, 2004, 01:40:54 PM »

Hey.. !! Kmashraf..

SOrry for late reply.. Actually what i suggest to see few last post of mine about proxy .. If still it don't work then we will sort it out ! Smiley
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: 1 [2] 3 4 ... 11
  Print  
 
Jump to:  

Welcome, Guest. Please login or register.
Did you miss your activation email?
October 10, 2008, 02:36:58 PM

Login with username, password and session length
Navigation
Recent Discussions
[October 09, 2008, 05:17:47 PM]

[October 08, 2008, 04:32:08 AM]

[October 07, 2008, 05:16:33 AM]

[October 06, 2008, 03:09:51 AM]

[October 04, 2008, 03:33:03 AM]

[October 03, 2008, 06:21:18 AM]

[October 03, 2008, 05:31:19 AM]

[October 03, 2008, 05:28:14 AM]

[October 03, 2008, 05:27:13 AM]

[September 27, 2008, 12:09:47 PM]
Members
Total Members: 6098
Latest: kholik
Stats
Total Posts: 8202
Total Topics: 2223
Online Today: 12
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 6
Total: 6
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc