Asterisk Log Question

What do these mean?

[2020-04-02 15:12:26] VERBOSE[22087] asterisk.c: Remote UNIX connection
[2020-04-02 15:12:26] VERBOSE[3413] asterisk.c: Remote UNIX connection disconnected
[2020-04-02 15:12:30] VERBOSE[22087] asterisk.c: Remote UNIX connection
[2020-04-02 15:12:30] VERBOSE[3424] asterisk.c: Remote UNIX connection disconnected
[2020-04-02 15:12:34] VERBOSE[22087] asterisk.c: Remote UNIX connection
[2020-04-02 15:12:34] VERBOSE[3435] asterisk.c: Remote UNIX connection disconnected
[2020-04-02 15:12:38] VERBOSE[22087] asterisk.c: Remote UNIX connection
[2020-04-02 15:12:38] VERBOSE[3446] asterisk.c: Remote UNIX connection disconnected
[2020-04-02 15:12:42] VERBOSE[22087] asterisk.c: Remote UNIX connection
[2020-04-02 15:12:42] VERBOSE[3457] asterisk.c: Remote UNIX connection disconnected
[2020-04-02 15:12:46] VERBOSE[22087] asterisk.c: Remote UNIX connection
[2020-04-02 15:12:46] VERBOSE[3485] asterisk.c: Remote UNIX connection disconnected
[2020-04-02 15:12:50] VERBOSE[22087] asterisk.c: Remote UNIX connection
[2020-04-02 15:12:50] VERBOSE[3496] asterisk.c: Remote UNIX connection disconnected
[2020-04-02 15:12:54] VERBOSE[22087] asterisk.c: Remote UNIX connection
[2020-04-02 15:12:54] VERBOSE[3508] asterisk.c: Remote UNIX connection disconnected
[2020-04-02 15:12:58] VERBOSE[22087] asterisk.c: Remote UNIX connection
[2020-04-02 15:12:58] VERBOSE[3519] asterisk.c: Remote UNIX connection disconnected
[2020-04-02 15:13:02] VERBOSE[22087] asterisk.c: Remote UNIX connection
[2020-04-02 15:13:02] VERBOSE[3550] asterisk.c: Remote UNIX connection disconnected
[2020-04-02 15:13:07] VERBOSE[22087] asterisk.c: Remote UNIX connection
[2020-04-02 15:13:07] VERBOSE[3561] asterisk.c: Remote UNIX connection disconnected

They are connections/disconnections to/from the “Asterisk Management Interface” on TCP/5038

1 Like

dicko gave the “what,” now the “why” - these AMI connections are being done to update the FreePBX Dashboard. So you will see these scrolling by on your Asterisk console whenever you have the Dashboard showing.

You can get ‘detail’ of connections by setting debug level >=3

If you see anything NOT from/to 127.0.0.1 (The FreePBX Dashboard as mentioned , or perhaps other AMI services you enabled, FOP2 for example) then you have a problem.

TCP/5038 should not be binding to 0.0.0.0

The Asterisk AMI service does bind to 0.0.0.0 by default on a Distro install though you could manually change that for added security. Perhaps you refer to the AMI credentials generated by FreePBX, which only permit connections from 127.0.0.0/24.

I am indeed, the default in /etc/asterisk/manager.conf is 0.0.0.0 , but unless you have an “unusual” setup, you only need to listen on 127.0.0.1 (127.0.0.0/24 of course also acceptable) , If you have other AMI clients outside your lan then amiproxy would be a good choice as an intermediary.
otherwise bind to the LAN network if needed,

I don’t know if the distro firewall allows TCP/5038 through, but if so allowed, you will often see a check on that port as a pre-cursor to a more conventional attack against SIP.

Interesting, Thanks. They are a bit of an annoyance as they push general log entries off the standard list length with non-interesting items. We tend to visit the Dashboard. Are they essential in the log?

OK, I have a serious question. Over the last two days you have made two different threads regarding things you’ve found in the logs wondering what it all means. As these are all things that have existed for years in Asterisk my question is this, how do you not know this already?

You have been a member of this community since 2008 so that would indicate at least 12 years experience/use of Asterisk/FreePBX. Before the distro, back when it was all manual. This log snippet you are showing has existed since the Dashboard has been around. The other post about what Asterisk modules are being loaded or not loaded, a thing since Asterisk was started. Chan_SIP/PJSIP logging UNREACHABLE/REACHABLE states in the logs, again been around since the drivers have existed.

So my point is, none of this is new so after over a decade how are you not aware of any of this?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.