{"id":19592235,"url":"https://github.com/catalyst/firewallctl","last_synced_at":"2025-07-29T03:02:25.302Z","repository":{"id":66891464,"uuid":"62354950","full_name":"catalyst/firewallctl","owner":"catalyst","description":"Safely deploy script based firewalls in Linux","archived":false,"fork":false,"pushed_at":"2016-10-05T04:20:31.000Z","size":17,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-05T00:51:14.463Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catalyst.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,"publiccode":null,"codemeta":null}},"created_at":"2016-07-01T02:06:34.000Z","updated_at":"2023-11-06T06:58:06.000Z","dependencies_parsed_at":"2023-05-28T07:45:13.295Z","dependency_job_id":null,"html_url":"https://github.com/catalyst/firewallctl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Ffirewallctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Ffirewallctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Ffirewallctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Ffirewallctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catalyst","download_url":"https://codeload.github.com/catalyst/firewallctl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251154700,"owners_count":21544544,"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-11-11T08:34:14.436Z","updated_at":"2025-04-27T14:33:38.163Z","avatar_url":"https://github.com/catalyst.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# firewallctl\nSafely deploy script based firewalls in Linux.\n\n## Usage\n\n\u003cpre\u003e\n$ firewallctl\nusage: firewallctl [start|configure|confirm|rollback|status]\n\u003c/pre\u003e\n\n\u003cdl\u003e\n  \u003cdt\u003estart\u003c/dt\u003e\n  \u003cdd\u003eFor compatibility with init scripts. If there a last-known-good firewall, it will be applied immediately. If there isn't a known-good firewall firewallctl attempts to run the firewall script and then mark it as known-good. \u003cstrong\u003eThis bypasses the rollback timeout, so should not be used normally.\u003c/strong\u003e\u003c/dd\u003e\n\n  \u003cdt\u003econfigure [timeout]\u003c/dt\u003e\n  \u003cdd\u003eThe main way to use \u003ctt\u003efirewallctl\u003c/tt\u003e. Runs \u003cem\u003estatus\u003c/em\u003e then asks for confirmation. If confirmed, applies the changed firewall and starts the rollback timeout (defaults to 120 seconds if not specified).\u003c/dd\u003e\n\n  \u003cdt\u003econfirm\u003c/dt\u003e\n  \u003cdd\u003eOnce a configuration has been applied, it must be confirmed within \u003cem\u003etimeout\u003c/em\u003e seconds using the \u003cem\u003econfirm\u003c/em\u003e command, or the last known good firewall will be re-applied (and a log message will be printed to syslog to indicate this).\u003c/dd\u003e\n\n  \u003cdt\u003erollback\u003c/dt\u003e\n  \u003cdd\u003eImmediately re-apply the last known good firewall and cancel the timeout.\u003c/dd\u003e\n\n  \u003cdt\u003estatus\u003c/dt\u003e\n  \u003cdd\u003eJust output the current state of the firewall (e.g. whether a new firewall is waiting to be applied).\u003c/dd\u003e\n\u003c/dl\u003e\n\n## Example usage\n\n\u003cpre\u003e\ntest-firewall:/etc/network# firewallctl configure 10\nA new firewall is waiting to be deployed.\n\n--- /etc/network/last-known-good-firewall   2016-07-21 11:09:41.953415248 +1200\n+++ /etc/network/firewall   2016-07-21 11:09:58.861235524 +1200\n@@ -1869,6 +1869,7 @@\n     echo \"-A Demo -s 198.51.100.0 -j ACCEPT\"\n     echo \"-A Demo -s 198.51.100.1 -j ACCEPT\"\n     echo \"-A Demo -s 198.51.100.2 -j ACCEPT\"\n+    echo \"-A Demo -d 192.0.2.1 -j DROP\"\n     #\n     # Next up we frobnicate some packets\n     # As per change control #1234\n\nApply this change? [y/N]y\n\nApplied firewall. Use `firewallctl confirm' within 10 seconds to confirm.\ntest-firewall:/etc/network#\n[... time passes ...]\ntest-firewall:/etc/network# grep firewallctl /var/log/syslog\nJul 21 11:10:26 test-firewall root: firewallctl: rolled back firewall!\ntest-firewall:/etc/network# firewallctl configure 30\nA new firewall is waiting to be deployed.\n\n--- /etc/network/last-known-good-firewall   2016-07-21 11:09:41.953415248 +1200\n+++ /etc/network/firewall   2016-07-21 11:09:58.861235524 +1200\n@@ -1869,6 +1869,7 @@\n     echo \"-A Demo -s 198.51.100.0 -j ACCEPT\"\n     echo \"-A Demo -s 198.51.100.1 -j ACCEPT\"\n     echo \"-A Demo -s 198.51.100.2 -j ACCEPT\"\n+    echo \"-A Demo -d 192.0.2.1 -j DROP\"\n     #\n     # Next up we frobnicate some packets\n     # As per change control #1234\n\nApply this change? [y/N]y\n\nApplied firewall. Use `firewallctl confirm' within 30 seconds to confirm.\ntest-firewall:/etc/network# firewallctl confirm\nConfirmed.\ntest-firewall:/etc/network# firewallctl status\nRunning firewall is up to date.\n\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalyst%2Ffirewallctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatalyst%2Ffirewallctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalyst%2Ffirewallctl/lists"}