AMI manager connection

@david551 I think every post involving AI has been a hallucination and made things up that didn’t exist/work. >_>

This is showing that the accept rule is added

[root@issabel ~]# iptables -L -n -v | grep 5039
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:5039

Some of the port are open but not 5039…

[root@issabel ~]# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:8088            0.0.0.0:*               LISTEN      22598/asterisk      
tcp        0      0 0.0.0.0:8089            0.0.0.0:*               LISTEN      22598/asterisk      
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      1791/master         
tcp        0      0 0.0.0.0:2299            0.0.0.0:*               LISTEN      916/sshd            
tcp        0      0 0.0.0.0:4190            0.0.0.0:*               LISTEN      2513/cyrus-master   
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      2513/cyrus-master   
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      2513/cyrus-master   
tcp        0      0 127.0.0.1:20004         0.0.0.0:*               LISTEN      2583/php            
tcp        0      0 0.0.0.0:20005           0.0.0.0:*               LISTEN      1708/php            
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      1343/mysqld         
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      2513/cyrus-master   
tcp        0      0 0.0.0.0:5039            0.0.0.0:*               LISTEN      22598/asterisk      
tcp        0      0 0.0.0.0:4559            0.0.0.0:*               LISTEN      2615/hfaxd          
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      2513/cyrus-master   
tcp6       0      0 :::2299                 :::*                    LISTEN      916/sshd            
tcp6       0      0 :::4190                 :::*                    LISTEN      2513/cyrus-master   
tcp6       0      0 :::993                  :::*                    LISTEN      2513/cyrus-master   
tcp6       0      0 :::995                  :::*                    LISTEN      2513/cyrus-master   
tcp6       0      0 :::54443                :::*                    LISTEN      919/httpd           
tcp6       0      0 :::110                  :::*                    LISTEN      2513/cyrus-master   
tcp6       0      0 :::143                  :::*                    LISTEN      2513/cyrus-master   
tcp6       0      0 :::80                   :::*                    LISTEN      919/httpd           
udp        0      0 0.0.0.0:69              0.0.0.0:*                           928/xinetd          
udp        0      0 127.0.0.1:323           0.0.0.0:*                           2674/chronyd        
udp        0      0 0.0.0.0:2727            0.0.0.0:*                           22598/asterisk      
udp        0      0 0.0.0.0:4520            0.0.0.0:*                           22598/asterisk      
udp        0      0 0.0.0.0:4569            0.0.0.0:*                           22598/asterisk      
udp        0      0 0.0.0.0:5000            0.0.0.0:*                           22598/asterisk      
udp        0      0 0.0.0.0:5060            0.0.0.0:*                           22598/asterisk      
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           578/avahi-daemon: r 
udp        0      0 0.0.0.0:39653           0.0.0.0:*                           578/avahi-daemon: r 
udp6       0      0 ::1:323                 :::*                                2674/chronyd        
[root@issabel ~]#

Port checking from my laptop with nmap, so are closed with unknown service and some is opened

tjdibbs@Timis-Macbook luli_chat_backend % nmap 102.216.110.27 -p 5039
Starting Nmap 7.95 ( https://nmap.org ) at 2024-09-17 13:42 PDT
Nmap scan report for 102.216.110.27
Host is up (0.23s latency).

PORT     STATE  SERVICE
5039/tcp closed unknown

Nmap done: 1 IP address (1 host up) scanned in 0.58 seconds
tjdibbs@Timis-Macbook luli_chat_backend % nmap 102.216.110.27 -p 4559
Starting Nmap 7.95 ( https://nmap.org ) at 2024-09-17 13:43 PDT
Nmap scan report for 102.216.110.27
Host is up (0.15s latency).

PORT     STATE  SERVICE
4559/tcp closed hylafax

Nmap done: 1 IP address (1 host up) scanned in 0.32 seconds
tjdibbs@Timis-Macbook luli_chat_backend % nmap 102.216.110.27 -p 3306
Starting Nmap 7.95 ( https://nmap.org ) at 2024-09-17 13:45 PDT
Nmap scan report for 102.216.110.27
Host is up (0.15s latency).

PORT     STATE  SERVICE
3306/tcp closed mysql

Nmap done: 1 IP address (1 host up) scanned in 0.32 seconds
tjdibbs@Timis-Macbook luli_chat_backend % nmap 102.216.110.27 -p 110 
Starting Nmap 7.95 ( https://nmap.org ) at 2024-09-17 13:45 PDT
Nmap scan report for 102.216.110.27
Host is up (0.12s latency).

PORT    STATE SERVICE
110/tcp open  pop3

Nmap done: 1 IP address (1 host up) scanned in 0.34 seconds
tjdibbs@Timis-Macbook luli_chat_backend % nmap 102.216.110.27 -p 25  
Starting Nmap 7.95 ( https://nmap.org ) at 2024-09-17 13:46 PDT
Nmap scan report for 102.216.110.27
Host is up (0.12s latency).

PORT   STATE SERVICE
25/tcp open  smtp

Nmap done: 1 IP address (1 host up) scanned in 0.22 seconds

On Tuesday 17 September 2024 at 14:33:12, tjdibbs via Asterisk Community
wrote:

What do you get from “iptables -L INPUT | grep 5039”?

to allow connection to the port, based on what I found online and AI

No, I mean what is the output from running that command? It is not the
command you showed us earlier.

Okay, so I want to connect to asterisk system with ip address of
(102.216.110.27) from my laptop

What is the IP address of your laptop?

The very fact that you are showing us a public IP address makes me strongly
suspect you are not trying to connect from a machine on the same local
network, and there will be various firewalls and/or routers in the path between
client and server, not necessarily under your control.

They are not the same network I guess, and I am not sure if there is a
firewall between…

This is almost certainly the problem you have, then.

Antony.


The Linux Operating System kernel was first released on this day in 1991.
https://www.kernel.org/

                                               Please reply to the list;
                                                     please *don't* CC me.

What is the IP address of your laptop?

The very fact that you are showing us a public IP address makes me strongly
suspect you are not trying to connect from a machine on the same local
network, and there will be various firewalls and/or routers in the path between
client and server, not necessarily under your control.

So is there a way I can solve firewall issues…
I can connect to some tcp port on the asterisk system, does it mean that the firewall blocking me from accessing any port running asterisk service…

On Tuesday 17 September 2024 at 14:33:12, tjdibbs via Asterisk Community
wrote:

They are not the same network I guess, and I am not sure if there is a
firewall between…

How do you connect to this machine (the one running Asterisk) at all?

I cannot even see that it is accessible by SSH (and it’s certainly not
responding to ICMP).

I think this question is turning into one for your hosting provider.

Antony.


The Linux Operating System kernel was first released on this day in 1991.
https://www.kernel.org/

                                               Please reply to the list;
                                                     please *don't* CC me.

On Tuesday 17 September 2024 at 15:10:52, tjdibbs via Asterisk Community
wrote:

The very fact that you are showing us a public IP address makes me
strongly suspect you are not trying to connect from a machine on the
same local network, and there will be various firewalls and/or routers
in the path between client and server, not necessarily under your
control.

So is there a way I can solve firewall issues…
I can connect to some tcp port on the asterisk system, does it mean that
the firewall blocking me from accessing any port running asterisk
service…

Our emails crossed… “I think this question is turning into one for your
hosting provider.”

Antony.


The Linux Operating System kernel was first released on this day in 1991.
https://www.kernel.org/

                                               Please reply to the list;
                                                     please *don't* CC me.