# Tunneled Redis Connections
Redis is a popular in-memory data structure store. It can be run locally or configured as a single or distributed standalone service.
# Basic Connection
Create a TCP tunnel, using either
pomerium-cli
or the Pomerium Desktop client:pomerium-cliPomerium Desktoppomerium-cli tcp redis.corp.example.com:6379 --listen :6379
Copied!--listen
The
--listen
flag is optional. It lets you define what port the tunnel listens on locally. If not specified, the client will choose a random available port.Initiate your Redis connection, pointing to
localhost
:redis-cli -h localhost -p 6379
Copied!
This demonstrates access to a Redis server through Pomerium from the redis-cli
tool. Pomerium Enterprise users can utilize Service Accounts to enable secure machine-to-machine communication of Redis services.