TCP · Port 6379IANA Registered

Port 6379 — Redis

Default port for the high-performance in-memory key-value data structure store used for caching, queues, and pub/sub.

⚡ Primary Use Cases & Environments

  • ✓Application cache (Next.js, Django, Node.js)
  • ✓Session state storage
  • ✓BullMQ / Celery background job queues

🛡️ Security & Vulnerability Analysis

Redis is designed to run in trusted internal private networks with zero internet exposure. Misconfigured, exposed Redis instances without authentication have resulted in thousands of server compromises and cryptominers.

🔧 Network Diagnostics & Inspection

1. Check Active Listening Sockets (Local Host)
Terminal Command
$ sudo ss -tuln | grep :6379
Inspects whether any local process daemon is bound to port 6379.
2. Remote Port & Service Scan (Nmap)
Terminal Command
$ nmap -p 6379 -sV --script redis-info <target-ip>
Probes target IP to determine whether port 6379 is open, closed, or filtered.
3. Wireshark Capture / Display Filter
redis or tcp.port == 6379Wireshark Filter

🔥 Firewall Configuration Rules (UFW & iptables)

UFW (Uncomplicated Firewall)
Terminal Command
$ sudo ufw allow from <app-ip> to any port 6379 proto tcp
Applies a persistent Linux UFW firewall rule for port 6379.
iptables Command
Terminal Command
$ sudo iptables -A INPUT -p tcp -s <app-ip> --dport 6379 -j ACCEPT
Appends a direct netfilter kernel rule to the INPUT chain for port 6379.

❓ Frequently Asked Questions (FAQ)

How do I protect my Redis instance on port 6379?

1) Ensure "bind 127.0.0.1" in redis.conf. 2) Set "protected-mode yes". 3) Require a strong password using "requirepass <secret>". 4) Rename dangerous commands like FLUSHALL and CONFIG.

How do I test if Redis is responding locally?

Run "redis-cli ping". If healthy, the server responds with "PONG".

Related Networking Tools & Guides