Are you getting 403's when downloading? Please read here first

Hello,

I've tried adding RPM repo on Rocky Linux, but package download failed. So I did dnf download elasticsearch --arch x86_64 --url and attempted to use wget on the resulting URL to confirm it fails with 403 error as well. IPv6 are not enabled.

Same url works fine from rented VPS even it has IPv6 working.

Repo configuration and example URL provided below:

# cat /etc/yum.repos.d/elasticsearch-9.x.repo 
[elasticsearch-9.x]
name=Elasticsearch repository for 9.x packages
baseurl=https://artifacts.elastic.co/packages/9.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

# dnf download elasticsearch --arch x86_64 --url
Last metadata expiration check: 2:04:12 ago on Tue 17 Mar 2026 02:45:18 PM UTC.
https://artifacts.elastic.co/packages/9.x/yum/9.3.1/elasticsearch-9.3.1-x86_64.rpm

Thanks for confirming @leont. As confirmed here in the docs, RPM is not supported for some older versions:

RPM install is not supported on distributions with old versions of RPM, such as SLES 11 and CentOS 5. Refer to Install Elasticsearch from archive on Linux or MacOS instead.

I'm not sure which version you're using, but can you check if the Linux archive steps work for you?

But I'm using a recent Rocky Linux 10, which should be supported as "Red Hat Enterprise Linux 8 and later". I don't really understand how this is related to my issue, because the problem isn't that I can't install the RPM package, it's that I can't download it. The archive links provided point to the same source, which also returns a 403 error for our IP:

# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-9.3.1-linux-x86_64.tar.gz
--2026-03-18 19:54:25--  https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-9.3.1-linux-x86_64.tar.gz
Resolving artifacts.elastic.co (artifacts.elastic.co)... 34.120.127.130, 2600:1901:0:1d7::
Connecting to artifacts.elastic.co (artifacts.elastic.co)|34.120.127.130|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2026-03-18 19:54:25 ERROR 403: Forbidden.

# ip -6 addr
# sysctl net.ipv6.conf.all.disable_ipv6
net.ipv6.conf.all.disable_ipv6 = 1
# curl ipinfo.io
{
  "ip": "149.5.215.82",
  "city": "Tallinn",
  "region": "Harjumaa",
  "country": "EE",
  "loc": "59.4417,24.7025",
  "org": "AS209153 Arvid Logicum OU",
  "postal": "10321",
  "timezone": "Europe/Tallinn",
  "readme": "https://ipinfo.io/missingauth"
}

Thanks for confirming the version you're using @leont. It wasn't in your original request, and it's always worth ruling out other potential issues first.

I've raised an internal request with the team for this ASN. I'll provide an update when I hear back, but just a heads up that in my experience these requests can take some time.

Hope that helps!