ufw: allow gre and igmp protocols (#51166)

* ufw: allow gre and igmp protocols.

* Add changelog.
This commit is contained in:
Felix Fontein 2019-02-11 15:46:38 +01:00 committed by John R Barker
parent 95557077b6
commit a279892fae
2 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- "ufw - ``proto`` can now also be ``gre`` and ``igmp``."

View file

@ -81,7 +81,7 @@ options:
proto: proto:
description: description:
- TCP/IP protocol. - TCP/IP protocol.
choices: [ any, tcp, udp, ipv6, esp, ah ] choices: [ any, tcp, udp, ipv6, esp, ah, gre, igmp ]
name: name:
description: description:
- Use profile located in C(/etc/ufw/applications.d). - Use profile located in C(/etc/ufw/applications.d).
@ -255,7 +255,7 @@ def main():
from_port=dict(type='str'), from_port=dict(type='str'),
to_ip=dict(type='str', default='any', aliases=['dest', 'to']), to_ip=dict(type='str', default='any', aliases=['dest', 'to']),
to_port=dict(type='str', aliases=['port']), to_port=dict(type='str', aliases=['port']),
proto=dict(type='str', aliases=['protocol'], choices=['ah', 'any', 'esp', 'ipv6', 'tcp', 'udp']), proto=dict(type='str', aliases=['protocol'], choices=['ah', 'any', 'esp', 'ipv6', 'tcp', 'udp', 'gre', 'igmp']),
app=dict(type='str', aliases=['name']), app=dict(type='str', aliases=['name']),
comment=dict(type='str'), comment=dict(type='str'),
), ),