Add firewalld Rich Rule port forwarding example (#39534)
Example provided by Mike Cardwell (@mikehardenize) in an issue comment 28349#issuecomment-385354551 Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
04ae0c3312
commit
69affddc7f
1 changed files with 11 additions and 0 deletions
|
@ -133,6 +133,17 @@ EXAMPLES = '''
|
|||
zone: custom
|
||||
state: present
|
||||
permanent: true
|
||||
|
||||
- name: Redirect port 443 to 8443 with Rich Rule
|
||||
firewalld:
|
||||
rich_rule: rule family={{ item }} forward-port port=443 protocol=tcp to-port=8443
|
||||
zone: public
|
||||
permanent: true
|
||||
immediate: true
|
||||
state: enabled
|
||||
with_items:
|
||||
- ipv4
|
||||
- ipv6
|
||||
'''
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
|
Loading…
Reference in a new issue