I am setting up an Asterisk inside a Kubernetes cluster and so far everything is working like a charm but the AMI interface. This is the manager.conf:
enabled = yes
port = 5038
bindaddr = 0.0.0.0
webenabled = no
secret = ***
permit = 0.0.0.0/0.0.0.0
read = all,system,call,log,verbose,command,agent,user,config,originate
write = all,system,call,log,verbose,command,agent,user,config,originate
I am aware that permit is not restrictive at all but I want to make sure that everything is working before I set any restrictions. With this setup I am actually able to telnet to localhost atport 5038 and everything is working as expected but… when I try to access the same socket through its external IP by any other node in the cluster, the connection gets rejected.
Is there something wrong with my configuration? Or should I be looking into something else that’s not Asterisk?