Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Redis Essentials

You're reading from   Redis Essentials Harness the power of Redis to integrate and manage your projects efficiently

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher Packt
ISBN-13 9781784392451
Length 230 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Networking security


Redis is meant to run in a trusted network, but that is not always the case. Currently, many Redis servers are deployed on public clouds, meaning security is a concern.

There are many ways to make Redis secure, such as the following:

  • Use firewall rules to block access from unknown clients

  • Run Redis on the loopback interface, rather than a publicly accessible network interface

  • Run Redis in a virtual private cloud instead of the public Internet

  • Encrypt client-to-server communication

Protecting Redis with firewall rules

Firewall rules are a safe alternative to protect a Redis server, but it is required to have a list of all the trusted Classless Inter-Domain Routing (CIDR) blocks of the possible clients. In a Unix-like server, the iptables program can be used to set up firewall rules.

The iptables program is a standard firewall created in 1998 by Rusty Russell. It is included in most Linux distributions by default. Most of the explanation of iptables is not applicable for Windows...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image