Solved

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

Posted on 2014-02-07
4
1,055 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 40

Expert Comment

by:noci
ID: 39844327
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
ID: 39847448
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
ID: 39847976
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
ID: 39861146
read aws network & security manual
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Monitoring systems evolution, cloud technology benefits and cloud cost calculators business utility.
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.

751 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