{"id":31059227,"url":"https://github.com/ome/ansible-role-iptables-raw","last_synced_at":"2025-09-29T08:15:39.378Z","repository":{"id":55622816,"uuid":"137352636","full_name":"ome/ansible-role-iptables-raw","owner":"ome","description":"Ansible module to import iptables_raw library","archived":false,"fork":false,"pushed_at":"2024-11-19T10:06:15.000Z","size":51,"stargazers_count":4,"open_issues_count":4,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-09-04T18:50:21.580Z","etag":null,"topics":["ansible","ansible-role","firewall","iptables","ome","openmicroscopy"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/ome/iptables_raw/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ome.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-06-14T12:01:31.000Z","updated_at":"2024-11-19T09:45:52.000Z","dependencies_parsed_at":"2023-12-19T00:30:51.591Z","dependency_job_id":"0ab36233-15eb-427f-8a8f-f418f24ded7c","html_url":"https://github.com/ome/ansible-role-iptables-raw","commit_stats":{"total_commits":34,"total_committers":4,"mean_commits":8.5,"dds":0.6470588235294117,"last_synced_commit":"c7d8eb951462e7e0daf014f53ccfee1891c27b4d"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/ome/ansible-role-iptables-raw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-iptables-raw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-iptables-raw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-iptables-raw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-iptables-raw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ome","download_url":"https://codeload.github.com/ome/ansible-role-iptables-raw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-iptables-raw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275225879,"owners_count":25427009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","firewall","iptables","ome","openmicroscopy"],"created_at":"2025-09-15T08:05:01.333Z","updated_at":"2025-09-29T08:15:34.329Z","avatar_url":"https://github.com/ome.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Iptables Raw\n============\n\n[![Actions Status](https://github.com/ome/ansible-role-iptables-raw/workflows/Molecule/badge.svg)](https://github.com/ome/ansible-role-iptables-raw/actions)\n[![Ansible Role](https://img.shields.io/badge/ansible--galaxy-iptables_raw-blue.svg)](https://galaxy.ansible.com/ui/standalone/roles/ome/iptables_raw/)\n\nImport the Iptables Raw library and make it available as a task.\nEnsure iptables is active.\n\nSee these links for full documentation on the `iptables_raw` module:\n- https://nordeus.com/blog/engineering/managing-iptables-with-ansible-the-easy-way/\n- https://github.com/Nordeus/ansible_iptables_raw\n- https://github.com/ansible/ansible/pull/21054\n\n\nParameters\n----------\n\nOptional:\n- `iptables_raw_disable_firewalld`: Disable the firewalld service (if installed and enabled it will conflict), default `True`\n\n\nDevelopment\n-----------\nThe [`library/iptables_raw.py`](library/iptables_raw.py) version is https://github.com/Nordeus/ansible_iptables_raw/tree/34672590224f393016ad086f82054319108e67ad (2018-02-18) with the following change to prevent ansible-lint/flake8 failing:\n\n```diff\ndiff --git a/library/iptables_raw.py b/library/iptables_raw.py\nindex 71dfc0d..978a6c7 100644\n--- a/library/iptables_raw.py\n+++ b/library/iptables_raw.py\n@@ -344,7 +344,7 @@ class Iptables:\n     def _is_debian(self):\n         return os.path.isfile('/etc/debian_version')\n\n-    # If /etc/arch-release exist, this means this is an ArchLinux OS\n+    # If /etc/arch-release exist, this means this is an ArchLinux OS\n     def _is_arch_linux(self):\n         return os.path.isfile('/etc/arch-release')\n\n```\n\n\nExample Playbook\n----------------\n\n    - hosts: localhost\n      roles:\n        - role: ome.iptables-raw\n\n      tasks:\n        # Block all incoming connections apart from ssh\n        - ome.iptables_raw:\n            name: test_rules\n            keep_unmanaged: no\n            rules: |\n              -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT\n              -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT\n              -A INPUT -j REJECT\n              -A FORWARD -j REJECT\n              -A OUTPUT -j ACCEPT\n            state: present\n\n\nAuthor Information\n------------------\n\nome-devel@lists.openmicroscopy.org.uk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fome%2Fansible-role-iptables-raw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fome%2Fansible-role-iptables-raw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fome%2Fansible-role-iptables-raw/lists"}