Anyone else running docker and using iptables really needs to read this https://docs.docker.com/network/iptables/
Anyone else running docker and using iptables really needs to read this https://docs.docker.com/network/iptables/
https://github.com/redis/redis/commit/edd4d555df57dc84265fdf...
Eventually a kind script set a password on redis which caused me to notice and fix this issue.
'The Redis security model is: “it’s totally insecure to let untrusted clients access the system, please protect it from the outside world yourself”.' -- http://antirez.com/news/96
That blog post also helpfully shows how to write you own key into .ssh/authorized_keys to you can log in as the redis user over ssh. From there use your favourite lunar priv escalation bug to p0wn the box completely. (Or just run your cryptominer as the redis user...)
Note: that's about 5 years old now...
I am not sure anymore how i solved it but after some time (and none of the documented solutions working) i decided to let docker do to iptables whatever it wants to and used another firewall which filtered the traffic again after iptables was done "filtering" it.
And these docs read a lot like: “We are going to totally ignore any of your firewall rules unless you follow all these steps exactly and do a lot of manual work.”