LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2009, 03:39 AM   #1
jhn_daz
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Rep: Reputation: 0
Unhappy squid Transparent Proxy Issue


Hello ,

I am using Fedora Core 9.0 and Squid Cache: Version 3.0.STABLE2 .

Now i am trying to use the squid as a proxy server but its not working its giving error like this ...

While trying to retrieve the URL: /

The following error was encountered:

Invalid URL
Some aspect of the requested URL is incorrect. Possible problems:

Missing or incorrect access protocol (should be `http://'' or similar)
Missing hostname
Illegal double-escape in the URL-Path
Illegal character in hostname; underscores are not allowed
Your cache administrator is root.



Here is my squid.conf


While trying to retrieve the URL: /

http_port 192.168.111.107:3128
cache_mem 256 MB
cache_dir ufs /var/spool/squid 2000 16 256
dns_nameservers 192.168.3.1 59.144.127.16 59.144.127.17
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 2083 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 2083 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl our_networks src 192.168.111.0/24
http_access allow our_networks
visible_hostname = newproxysrv


i have also try to forward the traffic coming on 3128 to 80 but its not working

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 192.168.111.107:3128
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

can anyone suggest me the solution for this ...

Thanks ...

John
 
Old 05-02-2009, 01:10 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Are you accessing squid from the server, or from another machine in your network?
Did you setup the proxy in your browser (port 3128)?
Is port 3128 open at the firewall?
Can you access the proxy from the main machine (Fedora Core 9.0)
what happens when you put "http://www.google.com" in the browser.
Try to disable the firewall for testing.
 
Old 05-02-2009, 02:49 PM   #3
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Blog Entries: 3

Rep: Reputation: 38
http_port 192.168.111.107:3128


Your error is telling you the missing part...

I think it should be..

Code:
http_port http://192.168.111.107:3182
Cheers!!
 
Old 05-02-2009, 03:08 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Quote:
http_port http://192.168.111.107:3182
The default port for squid is 3128
and this was not the error, but a part of the conf file
 
Old 05-04-2009, 02:21 PM   #5
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Blog Entries: 3

Rep: Reputation: 38
Thanks for correction.

Cheers!!
 
  


Reply


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
Squid Transparent Proxy SBN Linux - Server 6 07-11-2007 04:54 AM
squid & transparent proxy issue jaxd Linux - Security 6 12-06-2006 07:58 AM
Squid as a transparent proxy kemplej Linux - Software 2 12-08-2004 06:00 PM
Squid Transparent Proxy 1jamie Linux - Security 7 09-26-2003 07:09 AM
Squid with Transparent Proxy MarleyGPN Linux - Networking 1 08-28-2003 03:51 PM


All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration