Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: MarkR on January 15, 2014, 04:52:47 PM

Title: Squid Proxy Blocking access to port 2083 (https webserver cpanel)
Post by: MarkR on January 15, 2014, 04:52:47 PM
Hi All,

I am trying to access our webservers cpanel which uses https and port 2083 through our SME server, unfortunatley I receive a
"The proxy server is refusing connections" message which I pressume is because 2083 is not the standard port for https

Is there any way to allow this ?

Many thanks
Mark
Title: Re: Squid Proxy Blocking access to port 2083 (https webserver cpanel)
Post by: CharlieBrady on January 15, 2014, 07:19:30 PM
You can probably do that by a custom template for squid.conf. But you could also do it in your browser configuration by not going to the proxy for your cpanel accesses, e.g. by a custom proxy.pac or .proxy.pac.
Title: Re: Squid Proxy Blocking access to port 2083 (https webserver cpanel)
Post by: mrjhb3 on January 17, 2014, 05:21:01 AM
I had a need to do something like that a while ago.  I used a custom-template, and it worked for me.  You can try this if you want.

Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/squid/squid.conf
cd /etc/e-smith/templates-custom/etc/squid/squid.conf
cp /etc/e-smith/templates/etc/squid/squid.conf/20ACL15SSL_ports .
pico -w /20ACL15SSL_ports
Make the file look like:
Code: [Select]
{
    my @ports = split(",", ($squid{SSLPorts} || "443,563") );

    return "acl SSL_ports port @ports";
}
Exit and save, then
Code: [Select]
config setprop squid SSLPorts 443,563,2083
expand-template /etc/squid/squid.conf
cat /etc/squid/squid.conf  #just to look at the file to verify your port(s) are listed
/etc/rc7.d/S90squid restart

Try your access through your squid proxy.

Good Luck,

John
Title: Re: Squid Proxy Blocking access to port 2083 (https webserver cpanel)
Post by: MarkR on January 24, 2014, 12:19:46 AM
Hi mrjhb3,

Many thanks for your help.

I created the custom template, but when i edited it looked like this
Code: [Select]
acl SSL_ports port 443 563
I have simply added 2083 to the end
Code: [Select]
acl SSL_ports port 443 563 2083
I then saved the custom template and then expanded and restarted squid and it appears to be working ok?

Is this method acceptable or should i configure via your method?

Thanks again
mark
Title: Re: Squid Proxy Blocking access to port 2083 (https webserver cpanel)
Post by: mrjhb3 on January 24, 2014, 01:19:30 AM
Hi Mark,


Unless you typed something wrong, you shouldn't have to add anything.  By manually adding this at the end, you will probably lose it on a post-upgrade, reboot event.  On a default install, I have this with your settings.


config setprop squid SSLPorts 443,563,2083
expand-template /etc/squid/squid.conf
more /etc/squid/squid.conf
...
acl SSL_ports port 443 563 2083




If you do a -  config printprop squid SSLPorts - what do you have?


John
Title: Re: Squid Proxy Blocking access to port 2083 (https webserver cpanel)
Post by: CharlieBrady on January 24, 2014, 02:28:15 AM
I then saved the custom template and then expanded and restarted squid and it appears to be working ok?

Is this method acceptable or should i configure via your method?

What you've done is fine. It does the job for you.

mrjhb3's suggestion would make it a little easier to make future changes, and would be good as an update for the base OS. But no real improvement for you on what you have done.
Title: Re: Squid Proxy Blocking access to port 2083 (https webserver cpanel)
Post by: raem on January 24, 2014, 04:04:54 PM
CharlieBrady

Quote
mrjhb3's suggestion would make it a little easier to make future changes, and would be good as an update for the base OS.

NFR  bug added
http://bugs.contribs.org/show_bug.cgi?id=8159
Title: Re: Squid Proxy Blocking access to port 2083 (https webserver cpanel)
Post by: MarkR on January 25, 2014, 10:47:35 AM
Hi all,

Many thanks for your help.

Once again... fantastic support from a great community.

Mark
Title: Re: Squid Proxy Blocking access to port 2083 (https webserver cpanel)
Post by: stephdl on February 09, 2014, 12:40:55 AM
please see the bug http://bugs.contribs.org/show_bug.cgi?id=8173 and the documentation in http://wiki.contribs.org/DB_Variables_Configuration#Squid_Proxy_.28squid.29, you have now other options in squid to Configure additional https ports