• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue IPv6 Connection Refused

doncullen

New Pleskian
When attempting to do CURL over IPv6, connection is refused:

I'd prefer not to disable IPv6 on my server, and am willing to put in the grunt work to get the matter resolved.

This is what happens when I attempt CURL via IPv6:
Code:
# curl -6 doncullen.net
curl: (7) Failed to connect to doncullen.net port 80: Connection refused

Troubleshooting:
Code:
# sysctl -p
   net.ipv6.conf.all.accept_ra = 2
  net.ipv6.conf.all.disable_ipv6 = 0
  net.ipv6.conf.default.disable_ipv6 = 0

# cat /etc/sw-cp-server/conf.d/ipv6_ports.inc
  listen   [::]:8443 ipv6only=on ssl;
  listen   [::]:8880 ipv6only=on;

# ip a | grep inet6 | grep global
    inet6 2001:19f0:6401:18ad:5400:1ff:fec3:4fc3/64 scope global mngtmpaddr dynamic

# ping6 doncullen.net
  PING doncullen.net(2001:19f0:6401:18ad:5400:1ff:fec3:4fc3) 56 data bytes
  64 bytes from 2001:19f0:6401:18ad:5400:1ff:fec3:4fc3: icmp_seq=1 ttl=64 time=0.044 ms
  64 bytes from 2001:19f0:6401:18ad:5400:1ff:fec3:4fc3: icmp_seq=2 ttl=64 time=0.046 ms
  64 bytes from 2001:19f0:6401:18ad:5400:1ff:fec3:4fc3: icmp_seq=3 ttl=64 time=0.057 ms

Checking AAAA record via IPv6 test - web site reachability shows this:
Code:
AAAA DNS record
2001:19f0:6401:18ad:5400:1ff:fec3:4fc3

ufw and plesk firewall are both set to allow tcp ports 443, 549, and 853 through. I've rebooted the server.

I'm at a loss as to how to best proceed from this point on. Ideas?
 
Last edited:
check in plesk panel > domain > Web Hosting Access > IPv6 address the V6 Address is assigned

you also can check your vhost config files (usualy created in /var/www/vhosts/system/example.com/conf/) to see that the IP v6 address is assigend correct
 
Last edited:
Checked Plesk Panel > doncullen.net > Web Hosting Access > IPv6, the address is assigned to 2001:19f0:6401:18ad:5400:1ff:fec3:4fc3

vhost config file httpd.conf: no trace of IPv6 there
vhost config file httpd_ip_default.conf: does show IPv6 (with the correct one ending in 4fc3 there)

Appreciate your taking the time to help look into this. Looking forward to the next step in figuring this out!

Additional info:
Ran nmap port scan -- results:
Code:
# nmap -6 -sV doncullen.net

Starting Nmap 7.01 ( https://nmap.org ) at 2019-03-21 07:30 UTC
Nmap scan report for doncullen.net (2001:19f0:6401:18ad:5400:1ff:fec3:4fc3)
Host is up (0.0000070s latency).
Other addresses for doncullen.net (not scanned): 149.28.253.46
Not shown: 989 closed ports
PORT     STATE
21/tcp   open
22/tcp   open
25/tcp   open
53/tcp   open
106/tcp  open
110/tcp  open
143/tcp  open
465/tcp  open
993/tcp  open
995/tcp  open
8443/tcp open

However, it also identifies 80 and 443 as both closed.
 
Last edited:
Back
Top