{"id":13577737,"url":"https://github.com/likg/ansible-role-csf","last_synced_at":"2025-04-05T12:31:13.959Z","repository":{"id":217507052,"uuid":"79802979","full_name":"likg/ansible-role-csf","owner":"likg","description":"Ansible role CSF/LFD","archived":false,"fork":false,"pushed_at":"2021-10-04T11:31:42.000Z","size":47,"stargazers_count":18,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-05T14:47:10.462Z","etag":null,"topics":["ansible","ansible-galaxy","ansible-role","csf","lfd"],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/likg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2017-01-23T12:38:31.000Z","updated_at":"2022-10-08T17:41:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"66c70f46-92b4-46c8-a07f-b9c425892695","html_url":"https://github.com/likg/ansible-role-csf","commit_stats":null,"previous_names":["likg/ansible-role-csf"],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likg%2Fansible-role-csf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likg%2Fansible-role-csf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likg%2Fansible-role-csf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likg%2Fansible-role-csf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/likg","download_url":"https://codeload.github.com/likg/ansible-role-csf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247338712,"owners_count":20922994,"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","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-galaxy","ansible-role","csf","lfd"],"created_at":"2024-08-01T15:01:23.933Z","updated_at":"2025-04-05T12:31:08.949Z","avatar_url":"https://github.com/likg.png","language":"Jinja","funding_links":[],"categories":["Jinja"],"sub_categories":[],"readme":"[![Ansible Galaxy](https://img.shields.io/badge/role-likg.csf-blue.svg?style=flat)](https://galaxy.ansible.com/likg/csf/)\n[![Build Status](https://travis-ci.org/likg/ansible-role-csf.svg?branch=master)](https://travis-ci.org/likg/ansible-role-csf)\n\n# Ansible Role: CSF/LFD\n\nInstall and configure [CSF/LFD](https://configserver.com/cp/csf.html)\n\n## Requirements\n\nCSF/LFD is a set of perl scripts, thus perl interpreter is required. Many popular distros comes with perl installed by default, nevertheless, this role will install perl if it is missing.\n\nFull list of required packages (will be installed by this role) defined in [`csf_required_packages`](defaults/main.yml#L6-L11) and [`csf_required_packages_dist`](vars/) variables.\n\n## Role Variables\n\nAvailable variables with their default values can be found in [defaults/main.yml](defaults/main.yml).\n\n## Dependencies\n\nNone.\n\n## Example Playbook\n```yaml\n- hosts: servers\n  become: yes\n  roles:\n    - { role: likg.csf }\n  vars_files:\n    - path_to_vars.yml\n```\n\nFile `path_to_vars.yml`:\n```yaml\ncsf_global_ini:\n  - option: RESTRICT_SYSLOG\n    value: \"2\"\n  - option: URLGET\n    value: \"2\"\n  - option: TCP_IN\n    value: \"80,443,{{ hostvars[inventory_hostname]['ansible_port'] | default('22') }},30000:65535\"\n  - option: TCP_OUT\n    value: \"20,21,22,25,37,43,53,80,123,443,873,953,8080,9418,{{ hostvars[inventory_hostname]['ansible_port'] | default('22') }},30000:65535\"\n  - option: UDP_IN\n    value: \"53\"\n  - option: UDP_OUT\n    value: \"20,21,43,53,113,123,58745,30000:65535\"\n\ncsf_allow:\n  - 10.10.10.10\n  - 172.16.1.1/29\n\ncsf_ignore:\n  - 10.10.10.10\n  - 172.16.1.1/29\n\ncsf_pignore:\n  - 'exe:/usr/sbin/nginx'\n  - 'user:mysql'\n\ncsf_fignore:\n  - '/tmp/\\.horde'\n  - '/tmp/\\.horde/.*'\n\ncsf_blocklists:\n  - \"SPAMDROP\"\n\ncsf_csfpre_sh: |\n  #!/bin/bash\n  /sbin/iptables -t nat -F POSTROUTING\n```\n## License\n\nMIT\n\n## Author Information\n\nThis role was created by Lik.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikg%2Fansible-role-csf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flikg%2Fansible-role-csf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikg%2Fansible-role-csf/lists"}