mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
31526595c5
commit
a10209cbe9
1 changed files with 10 additions and 1 deletions
|
@ -23,6 +23,11 @@ BINS = dict(
|
|||
ipv6='ip6tables',
|
||||
)
|
||||
|
||||
ICMP_TYPE_OPTIONS = dict(
|
||||
ipv4='--icmp-type',
|
||||
ipv6='--icmpv6-type',
|
||||
)
|
||||
|
||||
ANSIBLE_METADATA = {'status': ['preview'],
|
||||
'supported_by': 'core',
|
||||
'version': '1.0'}
|
||||
|
@ -403,7 +408,11 @@ def construct_rule(params):
|
|||
append_param(rule, params['uid_owner'], '--uid-owner', False)
|
||||
append_jump(rule, params['reject_with'], 'REJECT')
|
||||
append_param(rule, params['reject_with'], '--reject-with', False)
|
||||
append_param(rule, params['icmp_type'], '--icmp-type', False)
|
||||
append_param(
|
||||
rule,
|
||||
params['icmp_type'],
|
||||
ICMP_TYPE_OPTIONS[params['ip_version']],
|
||||
False)
|
||||
return rule
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue