Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am new at Amazon Cloud technologies. I ve set up an Amazon Linux instance created my keys and assigned elastic IP. Also, I opened all TCP, UDP, ICMP ports(ok, it's very dangerous, but I am using it for test purposes). I ve also installed Apache server and enabled it. But still cant ping or access my instance via IP. Any ideas?

EDIT:

Please see a screenshot of the security groups settings. All ports are open... Check this out

share|improve this question
    
try add a 80 port in security group. –  qrtt1 Jun 16 '12 at 13:59
    
Can you be a little more clear about what you can and can't do and what you want to achieve ? –  Iain Jun 16 '12 at 14:03
    
I can make ssh connections, and of course to use the admin interface of aws console. But neither can ping my instance nor "http" to the apache server I just installed. Check my edits please... –  py_script Jun 16 '12 at 15:09

2 Answers 2

Use the key (the .pem file) to connect to the instance. You can get the address from looking at the instance in the EC2 console... it's at the bottom when you select one.

just do

$ ssh -i [keyfile.pem] ec2-user@[address from the console]

that will get you in. Also, you can try telnet to make sure it is listening

$ telnet [address from the console] 22

That will connect to the SSH port over telnet which will let you know if it's up. You won't be able to log in this way however.

EDIT = sorry, I didn't catch the part about apache for some reason.

check iptables

$ iptables -L

Add a rule for port 80 if you need

$ iptables -I INPUT 1 -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
share|improve this answer
1  
He installed apapche, so he logged in so he has port 22 up. –  Andrew Smith Jun 16 '12 at 14:23
    
Yeap, I already can make ssh connections. –  py_script Jun 16 '12 at 14:49
    
Whoops, sorry. 2 things then. 1) check the Security Group. 2) check iptables. –  Michael Beattie Jun 16 '12 at 15:09
    
Thank you...as you can see from my edits(screenshot), all ports are open. I added this rule on IP Tables and I executed iptables -L after that. Still cant connect to port 80 –  py_script Jun 17 '12 at 13:08
    
is apache running? –  Michael Beattie Jun 19 '12 at 0:14

You need to go to EC2 console and in the security tab configure the firewall to open ports, ICMP (ping) and UDP if needed. This is stateless firewall on incoming packets only. By default it allows only SSH (tcp/22).

share|improve this answer
    
Hello Andrew, Please check my edits –  py_script Jun 16 '12 at 15:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.