Merge pull request #3126 from jtopjian/openstack-icmp-documentation

provider/openstack: ICMP Documentation
This commit is contained in:
Joe Topjian 2015-10-31 22:06:06 +09:00
commit fa6df71b70
1 changed files with 17 additions and 0 deletions

View File

@ -81,3 +81,20 @@ The following attributes are exported:
* `name` - See Argument Reference above. * `name` - See Argument Reference above.
* `description` - See Argument Reference above. * `description` - See Argument Reference above.
* `rule` - See Argument Reference above. * `rule` - See Argument Reference above.
## Notes
### ICMP Rules
When using ICMP as the `ip_protocol`, the `from_port` sets the ICMP _type_ and the `to_port` sets the ICMP _code_. To allow all ICMP types, set each value to `-1`, like so:
```
rule {
from_port = -1
to_port = -1
ip_protocol = "icmp"
cidr = "0.0.0.0/0"
}
```
A list of ICMP types and codes can be found [here](https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Control_messages).