{"id":20456007,"url":"https://github.com/vm32/firewall-rule-management-script","last_synced_at":"2025-07-20T08:04:53.673Z","repository":{"id":220817009,"uuid":"752672834","full_name":"vm32/Firewall-Rule-Management-Script","owner":"vm32","description":"Bash script aids in the effective management of firewall rules","archived":false,"fork":false,"pushed_at":"2024-02-07T10:19:08.000Z","size":11,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T20:12:57.831Z","etag":null,"topics":["blue-team","cyber-security","firewall","firewall-rules","security"],"latest_commit_sha":null,"homepage":"","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/vm32.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-04T13:46:53.000Z","updated_at":"2024-11-10T16:55:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"21ae77ed-d951-4547-9ca9-a76e9fa7f5de","html_url":"https://github.com/vm32/Firewall-Rule-Management-Script","commit_stats":null,"previous_names":["vm32/firewall-rule-management-script"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vm32/Firewall-Rule-Management-Script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vm32%2FFirewall-Rule-Management-Script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vm32%2FFirewall-Rule-Management-Script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vm32%2FFirewall-Rule-Management-Script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vm32%2FFirewall-Rule-Management-Script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vm32","download_url":"https://codeload.github.com/vm32/Firewall-Rule-Management-Script/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vm32%2FFirewall-Rule-Management-Script/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266087788,"owners_count":23874518,"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":["blue-team","cyber-security","firewall","firewall-rules","security"],"created_at":"2024-11-15T11:20:47.548Z","updated_at":"2025-07-20T08:04:53.664Z","avatar_url":"https://github.com/vm32.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firewall Rule Management Script\n\nThis repository contains a Bash script designed to facilitate the management of `iptables` firewall rules. It provides a user-friendly command-line interface for listing, adding, and deleting `iptables` rules.\n\n## Features\n\n- **List Current Rules**: Displays all current `iptables` rules with enhanced formatting for better readability.\n- **Add New Rule**: Allows the user to add a new rule to the `iptables`, with inputs for chain, protocol, port, and action.\n- **Delete Rule**: Enables the user to delete a specific rule by specifying the chain and rule number.\n\n## Requirements\n\n- `iptables` installed on your system.\n- Bash shell environment.\n\n## Usage\n\nTo use the script, follow these steps:\n\n1. Clone the repository to your local machine:\n   ```bash\n   git clone git@github.com:vm32/Firewall-Rule-Management-Script.git\n   chmod +x firewall_rules.sh\n   sudo ./firewall_rules.sh\n  ![image](https://github.com/vm32/Firewall-Rule-Management-Script/assets/21219411/b8e42372-a53c-4900-a1ed-ffe89d782abe)\n\n# Compatible Linux Distributions\n\nThe iptables management script is compatible with a wide range of Linux distributions that support iptables and have a Bash shell environment. Below is a list of some popular distributions where the script should work without issues:\n\n- **Ubuntu**: All recent and LTS (Long Term Support) versions.\n- **Debian**: Stable, Testing, and Unstable branches.\n- **Fedora**: Including current and some previous versions.\n- **CentOS**: Versions 6, 7, and 8 (CentOS 8 has shifted to using `nftables` by default but iptables are still supported).\n- **Red Hat Enterprise Linux (RHEL)**: Versions 6, 7, and 8 (Similar to CentOS, RHEL 8 uses `nftables` by default but supports iptables).\n- **Arch Linux**: Rolling release model ensures up-to-date iptables and Bash versions.\n- **Manjaro**: Based on Arch Linux, hence fully compatible.\n- **openSUSE Leap** and **Tumbleweed**: Both the regular release and rolling release versions.\n- **Mint**: Based on Ubuntu and Debian, so it's fully compatible.\n- **Slackware**: One of the oldest distributions that still maintain iptables and Bash in its environment.\n\n## Prerequisites\n\nBefore running the script, ensure that `iptables` is installed and that you have `sudo` or root access to manage firewall rules. Some distributions may use `nftables` as a default firewall management tool. In such cases, you might need to install `iptables` or use its compatibility layer.\n\n## Note\n\nThis list includes distributions that are known to support iptables and Bash, but it's not exhaustive. The script may work on other distributions that meet these requirements. Always ensure that your system is up-to-date and has the necessary permissions to modify iptables rules.\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=vm32/Firewall-Rule-Management-Script\u0026type=Date)](https://star-history.com/#vm32/Firewall-Rule-Management-Script\u0026Date)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvm32%2Ffirewall-rule-management-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvm32%2Ffirewall-rule-management-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvm32%2Ffirewall-rule-management-script/lists"}