Topic: Could not connect to manager interface [Comments: 7]
gregshap
Mon, 01/11/2010 - 09:50 | Could not connect to manager interface
I am getting the: "Could not connect to manager interface" message after changing IP addresses in my system (Centos 4.7 with PBX Manager 6.0.1.70 and Asterisk 1.4). I tried to reset the password in Manager, I checked my binding in manager .conf which is:
[general]
enabled=yes
port=5038
bindaddr=0.0.0.0
writetimeout=200
[manager]
secret=insecure
permit=127.0.0.1/255.255.255.0
permit=192.168.1.0/255.255.255.0
deny=0.0.0.0/0.0.0.0
read=system,call,log,verbose,command,agent,user
write=system,call,log,verbose,command,agent,user
and have tried connecting through different interface addresses. Nothing makes this go away.
Please give me some other ideas?
Thanks,
Greg





Mon, 01/11/2010 - 18:31 | what did you change the ip to
what did you change the ip to and where are you conneting from?
right now only 192.168.1.0/24 is allowed to connect
Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com
Mon, 01/11/2010 - 20:17 | connecting
Erik
I am connecting from my LAN at 192.168.1.16.
The system was changed from having 2 nic cards, one LAN and one WAN.
I now only have a LAN card on 192.168.1.100.
Thanks,
Mon, 01/11/2010 - 20:25 | did you modify your iptables
did you modify your iptables rules?
in such cases its not uncommon to have a rule trusting everything on -i eth1 (your lan) and no special mention of 5038 (AMI). by reducing yourself to a single NIC your lan would then be on eth0 and no longer allowing full trusted trafffic.
to test run 'service iptables stop' from a privileged bash prompt and re-attempt
Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com
Mon, 01/11/2010 - 20:32 | IP Tables
Erik,
I tried that command and have the same result. Could not connect to manager interface.
???
Mon, 01/11/2010 - 20:36 | Manager
Just so I am clear, I have full access to the manager page, I just have that notice at the top.
Although, it seems that when I make a change, either it doesn't take effect or I am having yet another problem.
Greg
Mon, 01/11/2010 - 20:53 | oohhh.. ok so your thirdlane
oohhh.. ok so your thirdlane pbxmanager tools cannot connect to the manager interface..
1) go into the settings and change it from insecure to something else.. you will see a pending 'restart'. You dont have to restart.. go into the CLI and type 'reload manager' and then delete /etc/webmin/asterisk/restart_default
this should resolve your issue... if not check that /etc/hosts is not holding onto old ip's for hostnames you need
Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com
Wed, 01/13/2010 - 01:59 | OK, Here are the results
I tried all your ideas and still have the issue. I also noticed that if i make a change in manager, it looks like it takes place but really doesn't until I reboot the machine. This tells me it is writing the changes but not executing them until I reboot.
Do you have something else I can try.
Greg