{"id":15517023,"url":"https://github.com/deric/bash-firewall","last_synced_at":"2025-06-29T06:32:47.604Z","repository":{"id":25625779,"uuid":"29061037","full_name":"deric/bash-firewall","owner":"deric","description":"a bash DSL for generating firewall rules","archived":false,"fork":false,"pushed_at":"2015-04-07T14:50:19.000Z","size":192,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T10:34:02.134Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deric.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-10T15:22:49.000Z","updated_at":"2015-04-07T14:50:19.000Z","dependencies_parsed_at":"2022-08-23T09:31:17.738Z","dependency_job_id":null,"html_url":"https://github.com/deric/bash-firewall","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deric/bash-firewall","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fbash-firewall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fbash-firewall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fbash-firewall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fbash-firewall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deric","download_url":"https://codeload.github.com/deric/bash-firewall/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fbash-firewall/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262547113,"owners_count":23327103,"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":[],"created_at":"2024-10-02T10:10:54.174Z","updated_at":"2025-06-29T06:32:47.582Z","avatar_url":"https://github.com/deric.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bash firewall\n\nScripts for generating iptables rules.\n\n## Checkout\n\n    git clone https://github.com/deric/bash-firewall.git /root/.firewall \u0026\u0026 source /root/.firewall/install\n\n## Usage\n\nMain firewall config should be located in `~/.fw/rules`\n\nopening port\n```\nopen_port tcp 22\n```\nwill generate command:\n\n```\n/sbin/iptables -A input_new -p tcp -m multiport --destination-port 22 -j ACCEPT\n```\n\n`iptables` command is aliased as `ipt`\n\n```\nipt -A INPUT -s 127.0.0.1 -j ACCEPT\n```\n\n\nGenerate preview of iptables commands which will be applied\n```\n$ fw\n```\n\napply firewall rules:\n```\n$ fw --apply\n```\n\npermanently saves (iptables-persistent)\n```\n$ fw --save\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderic%2Fbash-firewall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderic%2Fbash-firewall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderic%2Fbash-firewall/lists"}