Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] Can I set bind option with IP range in redis.conf? #13341

Open
jojo030ring opened this issue Jun 13, 2024 · 2 comments
Open

[QUESTION] Can I set bind option with IP range in redis.conf? #13341

jojo030ring opened this issue Jun 13, 2024 · 2 comments

Comments

@jojo030ring
Copy link

jojo030ring commented Jun 13, 2024

bind 192.xx.xx.xx > I know it's okay,
but I want to set 192.20.1.0 ~ 192.20.1.255
What should I do?
bind 192.20.1.* is not working....

kubernetes and rockylinux....

@sundb
Copy link
Collaborator

sundb commented Jun 14, 2024

now we can't do that, in what cases would you need to bind so many ports?

@ptjm
Copy link

ptjm commented Jun 14, 2024

Taking a guess, suppose you had a common config file for a bunch of machines which had both a public and private network. You want to listen on the internal network but not the external. It might be convenient to put

bind 127.0.0.1 192.168.20.0/24

and have it listen at whatever IP addresses the machine has open from that range. I guess the typical solution to that problem is to have an include file on each machine to set the bind address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants