Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2014-02-07
4
Medium Priority
?
1,215 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

Happy holidays! Your Ops team can pack their bags. IT management and IT management tools are dead. Or at least that’s according to a new blog from Tech Target on AWS’s new Managed Services (MS) offering.
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
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.

705 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