Redis - Configure your Redis instance to accept incoming connections

Find out how to configure your Redis instance to accept incoming connections

Last updated 24th March 2022

Objective

Public Cloud Databases allow you to focus on building and deploying cloud applications while OVHcloud takes care of the database infrastructure and maintenance in operational conditions.

This guide explains how to configure your Redis instance to accept incoming connections.

Requirements

Instructions

Configure your Redis instance to accept incoming connections

Before making a connection, we need to verify that our Redis instance is correctly configured.

Log in to your OVHcloud Control Panel and open your Public Cloud project. Click on Databases in the left-hand navigation bar and select your Redis instance.

Step 1: Verify your user roles and password

Select the Users tab. Verify that you have a user with sufficient rights and a password. If you don't remember the user's password, you can either create a new user or regenerate the password of an existing user. Be careful! By doing so you will need to update all the places where you already use this user/password pair.

In our example, we will create a user called redisUser and rights for :

  • allkeys for keys (syntax equivalent to <*>)
  • the ping command (syntax equivalent to <+ping>)
  • the info command (syntax equivalent to <+info>)
  • the echo command (syntax equivalent to <+echo>)
  • the get command (syntax equivalent to <+get>)
  • the set command (syntax equivalent to <+set>)
  • the client command (syntax equivalent to <+client>)
  • allchannels for channels (syntax equivalent to <*>).

User creation

Once created or updated, the user has to be ready and with the "Enabled" status in the Control Panel.

User ready

Follow the Commands Official Documentation to learn more.

Follow this guide to learn more about users and roles capabilities and limitations.

Step 2: Authorise incoming connections from the Redis client

For security reasons the default network configuration doesn't allow any incoming connections. It is thus critical you authorise the suitable IP addresses in order to successfully access your database.

In this step, select the Authorised IPs tab. IP addresses must be authorised here before they can connect to your database.

Clicking on Add an IP address or IP address block (CIDR) opens a new window in which you can add single IP addresses or blocks to allow access to the database.

Add an IP

You can edit and retract database access via the ... button in the IP table.

If you want to allow connections from the outside, you can enter the IP 0.0.0.0/0. Please use it carefully.

Collect required information

Select the General information tab to find the required login credentials in the Login informations section.

Login informations

Go further

Visit our dedicated Discord channel: https://discord.gg/PwPqWUpN8G. Ask questions, provide feedback and interact directly with the team that builds our databases services.

Join our community of users on https://community.ovh.com/en/.


Haben Ihnen die Anleitungen geholfen?

Bevor Sie Ihre Meinung abgeben, nehmen wir gerne Ihre Vorschläge auf, wie wir diese Dokumente verbessern können.

Woran liegt es? An den Bildern, dem Inhalt oder Aufbau der Anleitungen? Schreiben Sie es uns gerne, dann machen wir es zusammen besser.

Ihre Support-Anfragen werden in diesem Formular nicht entgegengenommen. Verwenden Sie hierfür bitte das Formular "Ein Ticket erstellen" .

Vielen Dank. Ihr Feedback wurde gesendet.


Diese Anleitungen könnten Sie auch interessieren...

OVHcloud Community

Besuchen Sie Ihren Community-Bereich und tauschen Sie sich mit anderen Mitgliedern der OVHcloud Community aus. Hier können Sie Fragen stellen, zusätzliche Informationen finden und eigene Inhalte veröffentlichen.

Tauschen Sie sich mit der Community aus

Alle Preise verstehen sich inklusive der gesetzlichen Mehrwertsteuer.

In Übereinstimmung mit der Richtlinie 2006/112/EG in der geänderten Fassung können die Preise ab 01.01.2015 je nach Wohnsitzland des Kunden variieren
(die Preise in den Angeboten verstehen sich inklusive der gesetzlichen Mehrwertsteuer für die Bundesrepublik Deutschland).