I want to monitor my FreePBX system from Home Assistant (an open source Home automation system) and I have an integration (driver) to connect Home Assistant with Asterisk but it asks for an AMI account.
I have seen there is an access already setup as it’s used by FreePBX to communicate with Asterisk. I want to be sure I don’t break FreePBX by doing any modifications in that file. Right now it contains that:
Can I just add on permit line something like 172.16.1.40/255.255.252.0 to allow access from Home Assistant with secret indicated in file ? and FreePBX will still work without any problems ?
Thanks @dobrosavljevic and @lgaetz I have well created a new user in Asterisk Manager Users. Unhappy remote connection on the 5038 port from LAN doesn’t work as fw blocks it I’m trying to find out how I can open that port in fw included with FreePBX but so far not found yet…
I have added the whole LAN in Trusted Zone in firewall so it should open the port but when I check openports on FreePBX machine from LAN the port 5038 for AMI is still not accessible
You can directly edit manager.conf to allow external connections, but when doing so you’ll need to ensure the firewall is configured to only allow trusted IPs to access 5038.