Skip to main content

curl ssl issue - 443: connection refused

Comments

6 comments

  • morrow95
    I did some more searching and found selinux could be a problem, but sestatus returns disabled from cli. This is a VPC so it has NAT and its own firewall which is the primary, but I did review the iptables rules. To my knowledge these have never been manually changed other than what cpanel does automatically : # Generated by iptables-save v1.4.7 on Sat Sep 26 10:56:27 2015 *nat :PREROUTING ACCEPT [54:3240] :POSTROUTING ACCEPT [500:31356] :OUTPUT ACCEPT [500:31356] COMMIT # Completed on Sat Sep 26 10:56:27 2015 # Generated by iptables-save v1.4.7 on Sat Sep 26 10:56:27 2015 *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [1:136] :acctboth - [0:0] :cP-Firewall-1-INPUT - [0:0] -A INPUT -j cP-Firewall-1-INPUT -A INPUT -j acctboth -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j cP-Firewall-1-INPUT -A FORWARD -j REJECT --reject-with icmp-host-prohibited -A OUTPUT -j acctboth -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 993 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2082 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2078 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 53 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2077 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 26 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 143 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 995 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 110 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 25 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2086 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2079 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2080 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2087 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2095 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 465 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2096 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT -A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2083 -j ACCEPT -A cP-Firewall-1-INPUT -p udp -m state --state NEW -m udp --dport 53 -j ACCEPT iptables -I INPUT 2 -p tcp --dport 30000:55000 -j ACCEPT COMMIT # Completed on Sat Sep 26 10:56:27 2015 I also looked in the VPC firewall. Which has the following related : source / destination / protocol any:any / my public ips :443 / tcp internal:any / any:443 / tcp internal:any / internal:any / tcp What am I missing? There has to be something stupid that is blocking this and it would have had to been something done auto during an update because none of this stuff has been changed manually in a long time.
    0
  • cPanelMichael
    Hello @morrow95, Can you review the following posts and let us know if any of these solutions help? Thank you.
    0
  • cPanelMichael
    WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)

    You can safely ignore that warning message. It's due to the existence of the /etc/rndc.conf file, which isn't needed because the entries it uses are already defined in the /etc/named.conf file. Internal case CPANEL-20503 will address this false warning message in cPanel & WHM version 74.
    I just wanted to make things clear that curl itself works from our end if retrieving outside locations (like Google), but when we test retrieving something from one of our own domains it gives the can't connect error. We had a third party trying to retrieve on of our page's response and it would fail which brought up all of this. This is what made me think it could be related to the ssl certs since the firewall stuff looks correct, however, browsing any of our websites though https works fine and the certs show correctly. How could browsing support ticket so we can take a closer look at the system to see if we notice anything that could be leading to the issue you described? You can post the ticket number here and I'll link this thread to it. Thank you.
    0
  • morrow95
    You can safely ignore that warning message. It's due to the existence of the /etc/rndc.conf file, which isn't needed because the entries it uses are already defined in the /etc/named.conf file. Internal case CPANEL-20503 will address this false warning message in cPanel & WHM version 74. Could you open a
    0
  • cPanelMichael
    Hello, To update, it looks like our Technical Analysts determined this was the result of the NAT setup on this server lacking support for NAT reflection. Thank you.
    0

Please sign in to leave a comment.