Proxy tunneling failed: ForbiddenUnable to establish SSL connection.


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Proxy tunneling failed: ForbiddenUnable to establish SSL connection.
# 1  
Old 05-05-2017
Proxy tunneling failed: ForbiddenUnable to establish SSL connection.

Tryied both ways
Code:
curl

and
Code:
wget

Code:
wget --no-check-certificate  https://mysitet.it:61617
--2017-05-05 17:29:02--  https://mysitet.it:61617/
Connecting to myproxy:8080... connected.
Proxy tunneling failed: ForbiddenUnable to establish SSL connection.

Code:
curl  https://mysite.it:61617
curl: (56) Received HTTP code 403 from proxy after CONNECT

My Exports are the following,
Code:
export http_proxy=http://myproxy:8080/
export https_proxy=https://myproxy:443/
export https_proxy=http://myproxy:8080/

All the sites that have the ports 80, 8080 and 443 are working just fine,
and also doing the test directly on myproxy the uper tests work just fine,


Code:
[root@myproxy ~]# curl --insecure  https://mysite.it:61617
?ActiveMQ
         w
          TcpNoDelayEnabledSizePrefixDisabled	CacheSize
                                                         ProviderName  ActiveMQStackTraceEnabledPlatformDetails	RJVM: 1.8.0_121, 25.121-b13, Oracle Corporation, OS: Linux, 4.4.0-47-generic, amd64
                                                                                                                                                                                                   CacheEnabledTightEncodingEnabled
                                                                                                                                                                                                                                   MaxFrameSize???????MaxInactivityDurationu0 MaxInactivityDurationInitalDelay'ProviderVersion	5.14.3

and also the
Code:
wget

Code:
[root@myproxy ~]# wget --no-check-certificate mysitet.it:61617
--2017-05-05 19:40:07--  https://mysite.it:61617/
Resolving mysite.it (mysite.it)... 88.88.255.255
Connecting to mysitet.it (mysitet.it)|88.88.255.255|:61617... connected.
WARNING: cannot verify mysite.it's certificate, issued by ‘/C=IT/ST=Location/L=Location/O=MySite/OU=Technology/CN=My Name':
  Self-signed certificate encountered.
    WARNING: certificate common name ‘My Name' doesn't match requested host name ‘mysitet.it'.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
Saving to: ‘index.html.2'

    [ <=>                                                                                                                                                                                            ] 397         --.-K/s   in 0s      

2017-05-05 19:40:07 (70.2 MB/s) - ‘index.html.2' saved [397]

Do you see if i'm doing something wrong?
releases
GNU Wget 1.14 built on linux-gnu.

curl 7.29.0
Code:
(x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.15.4 zlib/1.2.7 libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp 
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz

Code:
NAME="Red Hat Enterprise Linux Server"
VERSION="7.1 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="7.1"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.1 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.1:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.1
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.1"

Could you guys have a look?
Thank in advanced for any sugestions.
# 2  
Old 05-05-2017
That forbidden, I think, is coming from the proxy itself - not wget.

Try adding --server-response to see if that will tell you more about why.
# 3  
Old 05-05-2017
Quote:
Originally Posted by Corona688
That forbidden, I think, is coming from the proxy itself - not wget.

Try adding --server-response to see if that will tell you more about why.
Hi Corona,
it doesn't print nothing new,
Code:
wget --server-response --no-check-certificate  https://mysite.it:61617
--2017-05-05 20:12:06--  https://mysite.it:61617/
Connecting to myproxy:8080... connected.
Proxy tunneling failed: ForbiddenUnable to establish SSL connection.

Oh by the way
Code:
squid

is also disabled
Code:
systemctl status squid
squid.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

# 4  
Old 05-08-2017
SOLVED,
if anyone need this specific, i added on myproxy on the
Code:
/etc/squid/squid.conf

the port
Code:
acl SSL_ports port 61617

Regards
This User Gave Thanks to charli1 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Proxy Server

Httpd proxy on AIX: failed to connect SSL

Hi, I am trying to migrate a quite old proxy server with Apache httpd, running on AIX The scenario is that my server accepts connections on http and proxies them to an SSL backend. This is done in a ProxyPass statement, as follows: ProxyPass /myservice/my-ws... (1 Reply)
Discussion started by: trifo75
1 Replies

2. AIX

Unable to establish connection over TLS 1.2 on AIX 7.1/7.2

Hello Team, I would need your help to enable communication over TLS1.2 on AIX 7.1 or 7.2 with IBM JDK 1.8 latest update. By default, the request is trying to establish a connection over TLSv1 even though TLS 1.2 is explicitly enabled on server as well as on Java 8. The openssl command throws... (4 Replies)
Discussion started by: Naina2019
4 Replies

3. BSD

Can't establish outbound ssh connection on an OpenBSD system

I am getting the below error when I try to make outbound ssh from an OpenBSD system. I can't ssh to any host except the localhost. I can ping the hosts which I can't ssh, though.~ uname -rs OpenBSD 6.1 ~ ssh -V OpenSSH_7.5, LibreSSL 2.5.2 ~ ssh hostname ssh: connect to host hostname... (11 Replies)
Discussion started by: milhan
11 Replies

4. Red Hat

Connection establish two server

How do make connection between two linux server.Such as SSH,rsync,ftp (3 Replies)
Discussion started by: Mani T
3 Replies

5. Programming

Failed SSL Connection Attempt

The below error message I started seeing using Ubuntu 14.04 and was wondering if the forum has seen it because I cant seem much on the net for this: perl -e 'use IO::Socket::SSL qw(debug3);IO::Socket::SSL->new(PeerAddr=>"10.0.0.100",PeerPort=> 443,Proto=>"TCP") or die $!' DEBUG:... (1 Reply)
Discussion started by: metallica1973
1 Replies

6. Shell Programming and Scripting

Establish ODBC connection from Linux

Hi All, I want to establish a ODBC connection to a database from linux and query the tables of a database. Please let me know how I can achieve this. Thanks and Regards Nagaraja Akkivalli. (0 Replies)
Discussion started by: Nagaraja Akkiva
0 Replies

7. UNIX for Advanced & Expert Users

tunneling commands and file transfers through established ssh connection

Hi - I frequently run commands, and transfer files to/from a host that uses SecurID ssh authentication. It is a real pain to have to enter the authentication information every time I want to interact with this host. I am wondering if there is a way to establish a one-time ssh connection to this... (2 Replies)
Discussion started by: cpp6f
2 Replies
Login or Register to Ask a Question