Link to home
Start Free TrialLog in
Avatar of epifanio67
epifanio67

asked on

unable to telnet to aws micro instance, any ideas why?

Hello Experts,

I am testing aws micro instance, RHL.

I was able to set up vsftpd successfully and transfer files ok.

However, I tried opening a port, 25565, but I am unable to telnet to it. Any ideas why?

below are the current iptable rules:
[ec2-user@ip-172-31-3-98 ~]$ sudo /sbin/iptables -L -n -v --line-numbers
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
num   pkts bytes target     prot opt in     out     source               destination
1    54765   71M ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
2        0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0
3       30  1280 ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0
4       31  1512 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22
5        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:25565
6        0     0 REJECT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
num   pkts bytes target     prot opt in     out     source               destination
1        0     0 REJECT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT 10 packets, 3424 bytes)
num   pkts bytes target     prot opt in     out     source               destination

Open in new window


I telnet to aws instance public IP

telnet aws-instance-public-ip 25565... could not open connection to the host, on port 25565: connect failed

In advance, thank you for your help...

regards,
Avatar of noci
noci

what does
netstat -antp | grep 25565  
tell you?

If nothing shows up then the service isn't started, or it uses a different port.
Avatar of epifanio67

ASKER

Thank you noci...

[ec2-user@ip-172-31-3-98 ~]$ sudo netstat -antp | grep 25565
tcp        0      0 :::25565                    :::*                        LISTEN      16524/java

Open in new window


the process is up and the port is listening...

yet, I unable to get to it...

Any other suggestions? do the tables look ok?

Is there anything I need to do with SELinux?

Thanks for your help....
ASKER CERTIFIED SOLUTION
Avatar of epifanio67
epifanio67

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
read aws network & security manual