[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  |  Network Troublshooting  |  Linux Proxy Server Support  |  Topic: "Permission Denied" Error message for any port bes
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]
  Print  
Author Topic: "Permission Denied" Error message for any port bes  (Read 988 times)
0 Members and 1 Guest are viewing this topic.
keever
Linux Noob !
*
Offline Offline

Posts: 14


View Profile
« on: July 11, 2006, 04:33:57 PM »

What on earth is causing my Squid Proxy to deny requests for any url that has a non standard port?  Meaning, www.whatver.com:XXXX, always returns a permission denied error message.  The port is always between 1025-65535, and thus covered by the "Safe_ports" acl.  


Here are the error messages I am getting:



Quote
While trying to retrieve the URL: http://172.16.XXX.XXX:10000/

The following error was encountered:

Connection Failed
The system returned:

    (13) Permission deniedThe remote host or network may be down. Please try the request again.


Quote
While trying to retrieve the URL: http://209.XXX.XXX.XXX:8000/

The following error was encountered:

Connection Failed
The system returned:

    (13) Permission deniedThe remote host or network may be down. Please try the request again.


From Access.log:

Quote
1152647120.061    158 172.16.XXX.XXX TCP_MISS/503 1403 GET http://172.16.XXX.XXX:10000/ - NONE/- text/html
1152647414.115   2504 172.16.3.173 TCP_MISS/503 1405 GET http://209.94.XXX.XXX:8000/ - NONE/- text/html


From squid.conf:

Quote

acl all src 0.0.0.0/0.0.0.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 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 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 Safe_ports port 7200 # http
acl CONNECT method CONNECT
acl Network src 172.16.3.0/255.255.255.0 172.16.4.0/255.255.255.0 192.10.30.0/255.255.255.0 192.168.218.0/255.255.255.0 192.168.3.0/255.255.255.0 172.16.6.0/255.255.255.0
acl Email dstdomain "/usr/local/squid/acls/email"
acl NF dst 192.168.3.0/24
acl webmin_port port 10000
acl deny_outside_sites port 80


# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny Email
http_access allow Network
http_access deny all
http_access deny to_localhost
http_access deny aol_yahoo_messenger
http_access deny MSN_messenger
http_access deny Gtalk



If this is a perm issue, what user is getting "access denied"?  What directory is Squid trying to write to that it doesn't have perms for?  My /etc/squid dir all has 777 perms on it.  WTF!!!!
Logged
gauravbajaj
LST CareTaker
Experienced
*****
Offline Offline

Posts: 597


View Profile
« Reply #1 on: July 13, 2006, 09:40:38 PM »

ok Are u able to access that sites without using squid?? Just try and reply me back
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #2 on: July 17, 2006, 07:59:01 AM »

I am not sure but as you are trying to access a machine over local netowrk in the form of "IP/port" and earlier I have found that such thing gives error in squid.

I tried to figure that out but due to few complications I was not able to so and still I am away from computers for little more time.
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Galeon problem.. "cannot find schema" gconf Linux Application k3b 1 962 Last post April 17, 2004, 12:04:09 PM
by dragoncity99
VFS:cannot open root device "LABEL=/" or 00:00 Linux Kernel bodavk 1 2229 Last post June 15, 2005, 04:36:35 AM
by gauravbajaj
About "chpasswd" Linux Application shipoin_97 1 695 Last post March 02, 2006, 06:37:20 AM
by Ricky
squid "access denied page" Linux Proxy Server Support ilias 0 775 Last post April 11, 2006, 10:24:51 AM
by ilias
GNOME user can not shutdown from "action" field Linux Application msm124 5 443 Last post July 12, 2007, 04:03:39 AM
by msm124
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 06:17:48 PM

Login with username, password and session length
Navigation
Recent Discussions
[Today at 02:29:08 PM]

[November 20, 2008, 11:30:52 PM]

[November 19, 2008, 07:52:41 PM]

[November 19, 2008, 07:52:36 PM]

[November 17, 2008, 10:42:59 AM]

[November 16, 2008, 12:49:47 AM]

[November 16, 2008, 12:48:58 AM]

[November 15, 2008, 08:29:02 AM]

[November 15, 2008, 08:24:41 AM]

[November 14, 2008, 05:11:50 AM]
Members
Total Members: 6229
Latest: razon_nnn
Stats
Total Posts: 8270
Total Topics: 2254
Online Today: 14
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 8
Total: 8
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