Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

AWS Glacier is Amazons cheapest storage option and is their answer to a ‘Cold’ storage service.  Customers primarily use this service for archival purposes and storage of infrastructure backups.  Its unlimited storage potential and low storage cost …
Or at least that’s the word according to a new blog from Tech Target on AWS’s new Managed Services (MS) offering. According to the blog, AWS is launching their AWS MS program to expedite the adoption of cloud by Fortune 1000 and Global 2000 companie…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

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