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?
In the same server where Asterisk is running, I have deployed a simple HTTP Server to debug any networking issues and I have been able to connect without problems at all.
/ # wget asterisk:5030
Connecting to asterisk:5030 (10.3.245.157:5030)
index.html 100% |*************************************************************************************************************| 814 0:00:00 ETA
/ # wget asterisk:5038
Connecting to asterisk:5038 (10.3.245.157:5038)
wget: can’t connect to remote host (10.3.245.157): Connection refused
Connecting to the port using telnet results in an automatic fail of “can’t connect”.
In the configuration provided it was bound to “0.0.0.0” but in your netstat it shows 127.0.0.1. Are you sure the configuration you have provided is actually the correct one? What does the CLI output to show the manager configuration show?
That is not a normal location AMI would look to for its configuration. It is normally at /etc/asterisk/manager.conf, which may be overriding what you state.