Fedora Linux ~ Could not connect to Redis ~ No route to host

First off thanks for your help!

Issue:
In short, I can connect to redis locally on the server but I can not connect from outside the server.

------- ENVIRONMENT ----------------------
Fedora Linux
Firewalld
Docker
Nginx
redis-stack-server

--------------------- REDIS ------------------------
This works on the server: redis-cli -h redis.mydomain.com -p 6379

This does not work remotely: redis-cli -h redis.mydomain.com -p 6379
Error: Could not connect to Redis at redis.mydomain.com:6379: No route to host
--------------------- NMAP & FIREWALLD -------------

Server: nmap -Pn redis.mydomain.com -p6379
PORT STATE SERVICE
6379/tcp open redis

Remote: nmap -Pn redis.mydomain.com -p6379
PORT STATE SERVICE
6379/tcp filtered redis

firewall-cmd --zone=public --list-all
ports: 3000/tcp 5001/tcp 5002/tcp 5056/tcp 6379/tcp 80/tcp

firewall-cmd --zone=trusted --list-all
ports: 6379/tcp

--------------------- NGINX ------------------------
/etc/nginx/sites-available/redis.mydomain.com.conf

server {
listen 80;
server_name redis.mydomain.com;

location / {
    proxy_pass http://172.17.0.4:6379;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
}

}

--------------------- DOCKER ------------------------
Using image "redis/redis-stack-server
LAN IP: 172.17.0.4

docker ps
63f3571e291c redis/redis-stack-server:latest "/entrypoint.sh" 2 hours ago Up 2 hours 0.0.0.0:32768->6379/tcp, :::32768->6379/tcp

--------------------- /etc/hosts ------------------------

/etc/hosts

127.0.0.1 localhost
127.0.0.1 localhost.localdomain
127.0.0.1 localhost4
127.0.0.1 localhost4.localdomain4
127.0.0.1 redis.mydomain.com

0.0.0.0 localhost
0.0.0.0 redis.mydomain.com

123.11.123.11 redis.mydomain.com

The following lines are desirable for IPv6 capable hosts

::1 localhost
::1 ip6-localhost
::1 ip6-loopback
::1 redis.mydomain
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


I have been spinning in circles now for two days… any help is much appreciated!

Thanks.

1 Reply

Small update…

The domain appears to resolve correctly:

nslookup redis.mydomain.com
Server: 127.0.0.53
Address: 127.0.0.53#53

Non-authoritative answer:
Name: redis.mydomain.com
Address: 123.11.123.11

Thank you.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct