Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

最近一直在研究这个问题

被矿机搞了,我直接重装了系统,然后
把redis中的
bind项屏蔽
端品改为12345
密码整了个又长又复杂的
protected-mode改为了no

iptables加入以下配置(redis机器是192.168.0.1)
一个内网机ip192.168.0.2就想实现这两个机器可访问,其它不行
`-N REDIS
-A REDIS -s 127.0.0.1 -j ACCEPT
-A REDIS -s 192.168.0.1 -j ACCEPT
-A REDIS -s 192.168.0.2 -j ACCEPT
-A REDIS -j LOG --log-prefix "unauth-redis-access"
-A REDIS -j REJECT --reject-with icmp-port-unreachable
-I INPUT -p tcp --dport 12345 -j REDIS`

请老大指点,这样的设置安全性能达到啥程度,还有什么方法能更安全,谢谢!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
4.3k views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...