Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firewalld: missing forward parameter #529

Closed
cwchristerw opened this issue Jan 24, 2024 · 1 comment · Fixed by #548
Closed

firewalld: missing forward parameter #529

cwchristerw opened this issue Jan 24, 2024 · 1 comment · Fixed by #548

Comments

@cwchristerw
Copy link
Contributor

cwchristerw commented Jan 24, 2024

SUMMARY

I would like to be able to add forward into zone by using firewalld module instead of "firewall-cmd --permanent --zone=docker --add-forward" command.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

firewalld

ANSIBLE VERSION
ansible [core 2.16.2]
  config file = /home/user/ansible/ansible.cfg
  configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/ansible/lib/python3.10/site-packages/ansible
  ansible collection location = /home/user/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/opt/ansible/bin/python3)
  jinja version = 3.1.2
  libyaml = True
COLLECTION VERSION
# /home/user/ansible/collections/ansible_collections
Collection    Version
------------- -------
ansible.posix 1.5.4  

# /opt/ansible/lib/python3.10/site-packages/ansible_collections
Collection    Version
------------- -------
ansible.posix 1.5.4
CONFIGURATION
COLLECTIONS_PATHS(/home/user/ansible/ansible.cfg) = ['/home/user/ansible/collections']
CONFIG_FILE() = /home/user/ansible/ansible.cfg
DEFAULT_FILTER_PLUGIN_PATH(/home/user/ansible/ansible.cfg) = ['/home/user/ansible/plugins/filters']
DEFAULT_FORKS(/home/user/ansible/ansible.cfg) = 25
DEFAULT_GATHERING(/home/user/ansible/ansible.cfg) = smart
DEFAULT_HASH_BEHAVIOUR(/home/user/ansible/ansible.cfg) = merge
DEFAULT_HOST_LIST(/home/user/ansible/ansible.cfg) = ['/home/user/ansible/inventories/group']
DEFAULT_ROLES_PATH(/home/user/ansible/ansible.cfg) = ['/home/user/ansible/roles']
DEFAULT_TIMEOUT(/home/user/ansible/ansible.cfg) = 15
DISPLAY_SKIPPED_HOSTS(/home/user/ansible/ansible.cfg) = False
INJECT_FACTS_AS_VARS(/home/user/ansible/ansible.cfg) = False

OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS

@benibr
Copy link

benibr commented Jan 25, 2024

Would also be interested! Really missing this feature.

gfokkema added a commit to gfokkema/ansible.posix that referenced this issue Jun 11, 2024
gfokkema added a commit to gfokkema/ansible.posix that referenced this issue Jun 11, 2024
gfokkema added a commit to gfokkema/ansible.posix that referenced this issue Jun 11, 2024
gfokkema added a commit to gfokkema/ansible.posix that referenced this issue Jun 11, 2024
gfokkema added a commit to gfokkema/ansible.posix that referenced this issue Jun 11, 2024
gfokkema added a commit to gfokkema/ansible.posix that referenced this issue Jun 11, 2024
saito-hideki pushed a commit to gfokkema/ansible.posix that referenced this issue Sep 9, 2024
saito-hideki pushed a commit to gfokkema/ansible.posix that referenced this issue Sep 9, 2024
saito-hideki pushed a commit to gfokkema/ansible.posix that referenced this issue Sep 9, 2024
saito-hideki pushed a commit to gfokkema/ansible.posix that referenced this issue Sep 9, 2024
saito-hideki pushed a commit to gfokkema/ansible.posix that referenced this issue Sep 9, 2024
softwarefactory-project-zuul bot added a commit that referenced this issue Sep 9, 2024
Firewalld: Add functionality to set forwarding

SUMMARY

Adds firewalld functionality to do the equivalent of firewall-cmd --add-forwarding --zone={zone}.
Functionality is exactly analogous to the firewall-cmd --add-masquerade --zone={zone} already present.
Fixes #529

ISSUE TYPE


Feature Pull Request

COMPONENT NAME

firewalld
ADDITIONAL INFORMATION


Usage:

- ansible.posix.firewalld:
    forward: true
    state: enabled
    permanent: true
    zone: internal

Reviewed-by: Abhijeet Kasurde
Reviewed-by: Hideki Saito <[email protected]>
saito-hideki pushed a commit to saito-hideki/ansible.posix that referenced this issue Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants