Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've got one question regarding Ubuntu Juju deployment, on AWS cloud. I'm using Bash to write my hooks. At the end of the install hook/script, I have lines that expose some of my TCP ports(80,443,5666 etc)

Syntax:

open-port 80/tcp
open-port 443/tcp

My question is how can I expose ICMP ports in a similar manner? ICMP ECHO request, ICMP ECHO reply is what I need.

The reason for this is that we use Nagios for monitoring of our EC2 instances. Alarms fire off right away, complaining that instance is not reachable, since Nagios relies on ICMP for basic remote host check.

share|improve this question
4  
Nitpicking, ICMP does not have ports. Ports are provided by TCP or UDP or SCTP. See tools.ietf.org/html/rfc792 for details. –  sarnold Aug 29 '13 at 19:06
add comment

1 Answer

up vote 2 down vote accepted
+200

You can't.

Juju in AWS uses EC2 security groups. Though the security groups can be made to allow ICMP with the EC2 API or Console, there are no hooks anywhere in the Juju code to do so. The only hooks that exist are for TCP and UDP.

If you have access to the EC2 console, you can find the relevant security group and allow ICMP there.

Or, if you have the credentials configured for the ec2-api-tools, you can use a command like:

ec2-authorize <group> -P icmp -t -1:-1 -s 0.0.0.0/0

In Juju bug 833064, they mention an intent to switch to machine-level firewalling (iptables on the instance) rather than continuing to limit themselves to the platform's firewalling capabilities and APIs.

share|improve this answer
    
Thanks, I guess that will do. –  Nemmy Aug 31 '13 at 22:31
add comment

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.