Friday, January 14, 2011

AWS firewall commands

#show current settings
ec2-describe-group Test 

# Authorized to a group

ec2-authorize Test -P tcp -p 53 -o Test -u XXXXXXXXX



#Authorize to internet cidr block (all)
ec2-authorize Test -P tcp -p 8080 -s 0.0.0.0/0

 # Revoke
 ec2-revoke Test -P tcp -p 8080 -s 0.0.0.0/0

No comments:

Post a Comment