Skip to content

Instantly share code, notes, and snippets.

@rboyd
Created October 22, 2010 13:16
Show Gist options
  • Select an option

  • Save rboyd/640512 to your computer and use it in GitHub Desktop.

Select an option

Save rboyd/640512 to your computer and use it in GitHub Desktop.
iptables rules for amazon ec2 us east region
# iptables allow rules for ec2 us east (http://developer.amazonwebservices.com/connect/ann.jspa?annID=795)
-A INPUT -s 216.182.224.0/20 -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
-A INPUT -s 72.44.32.0/19 -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
-A INPUT -s 67.202.0.0/18 -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
-A INPUT -s 75.101.128.0/17 -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
-A INPUT -s 174.129.0.0/16 -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
-A INPUT -s 204.236.192.0/18 -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
-A INPUT -s 184.73.0.0/16 -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
-A INPUT -s 184.72.128.0/17 -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
-A INPUT -s 184.72.64.0/18 -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
-A INPUT -s 50.16.0.0/15 -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment