Solved

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

Posted on 2014-02-07
4
915 Views
Last Modified: 2014-11-12
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,
0
Comment
Question by:epifanio67
  • 3
4 Comments
 
LVL 39

Expert Comment

by:noci
Comment Utility
what does
netstat -antp | grep 25565  
tell you?

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

Author Comment

by:epifanio67
Comment Utility
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....
0
 

Accepted Solution

by:
epifanio67 earned 0 total points
Comment Utility
Ok... I figure out the issue...

AWS network and security is managed via EC2 console... here is where you add/delete rules...
0
 

Author Closing Comment

by:epifanio67
Comment Utility
read aws network & security manual
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

With the spotlight very much on Cloud technology within the IT industry, it’s difficult to avoid the topic these days. Due to the constant flood of new information, added pressure, emphasis and focus on cloud migration is driving corporations to inv…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now