How to use Redis in TCP mode?

Hello,

I was following this guide Greenbone Community Containers 22.4 - Greenbone Community Documentation

and I was wondering if it would be possible to use redis in TCP mode? I got redis-server to run on port 6379 but how would I use the ospd-openvas and openvas-scanner to find the server running on that port than use a socket?

Thank you

I found this in the redis README, https://github.com/greenbone/openvas-scanner/blob/main/doc/manual/openvas/redis/redis_config.md#connection

Is it really not possible to run in tcp mode? We’re trying to deploy in Kubernetes and trying to see if an external redis-server could be used.

At the moment using a TCP connection for redis is not possible without patching openvas-scanner and ospd-openvas.

2 Likes

Thank you @bricks you mentioned

without patching openvas-scanner and ospd-openvas

I was intending to run those in TCP connection as well. How would I do the patching?

AFAICT “patching” would mean that you would need to implement the TCP connection handling / support on your own. Not sure if some one would be able to give dedicated guidelines how to do that.