{"id":13439999,"url":"https://github.com/yaa110/rust-iptables","last_synced_at":"2025-05-16T06:07:26.364Z","repository":{"id":41557044,"uuid":"81647870","full_name":"yaa110/rust-iptables","owner":"yaa110","description":"Rust bindings for iptables","archived":false,"fork":false,"pushed_at":"2025-02-20T18:32:10.000Z","size":19,"stargazers_count":89,"open_issues_count":2,"forks_count":26,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-11T07:16:02.346Z","etag":null,"topics":["bindings","iptables","netfilter","rust","rust-crate"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/iptables","language":"Rust","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/yaa110.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":"2017-02-11T11:10:52.000Z","updated_at":"2025-05-03T18:10:37.000Z","dependencies_parsed_at":"2024-06-19T02:49:35.308Z","dependency_job_id":"e8156e45-8ea7-4669-93ee-183ea43533bc","html_url":"https://github.com/yaa110/rust-iptables","commit_stats":{"total_commits":23,"total_committers":3,"mean_commits":7.666666666666667,"dds":"0.26086956521739135","last_synced_commit":"403afe09e904bc5f2867b125dbe21ff3165a50c6"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaa110%2Frust-iptables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaa110%2Frust-iptables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaa110%2Frust-iptables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaa110%2Frust-iptables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaa110","download_url":"https://codeload.github.com/yaa110/rust-iptables/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254478190,"owners_count":22077676,"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":["bindings","iptables","netfilter","rust","rust-crate"],"created_at":"2024-07-31T03:01:18.885Z","updated_at":"2025-05-16T06:07:25.597Z","avatar_url":"https://github.com/yaa110.png","language":"Rust","readme":"Rust iptables\n=============\n\n[![crates.io](https://img.shields.io/crates/v/iptables.svg)](https://crates.io/crates/iptables) [![Documentation](https://img.shields.io/badge/Docs-iptables-blue.svg)](https://docs.rs/iptables) [![Build](https://github.com/yaa110/rust-iptables/actions/workflows/build.yml/badge.svg)](https://github.com/yaa110/rust-iptables/actions/workflows/build.yml) [![License](http://img.shields.io/:license-mit-blue.svg)](https://github.com/yaa110/rust-iptables/blob/master/LICENSE)\n\nThis crate provides bindings for [iptables](https://www.netfilter.org/projects/iptables/index.html) application in Linux (inspired by [go-iptables](https://github.com/coreos/go-iptables)). This crate uses iptables binary to manipulate chains and tables. This source code is licensed under MIT license that can be found in the LICENSE file.\n\n```toml\n[dependencies]\niptables = \"*\"\n```\n\n## Getting started\n1- Import the crate `iptables` and manipulate chains:\n\n```rust\nlet ipt = iptables::new(false).unwrap();\n\nassert!(ipt.new_chain(\"nat\", \"NEWCHAINNAME\").is_ok());\nassert!(ipt.append(\"nat\", \"NEWCHAINNAME\", \"-j ACCEPT\").is_ok());\nassert!(ipt.exists(\"nat\", \"NEWCHAINNAME\", \"-j ACCEPT\").unwrap());\nassert!(ipt.delete(\"nat\", \"NEWCHAINNAME\", \"-j ACCEPT\").is_ok());\nassert!(ipt.delete_chain(\"nat\", \"NEWCHAINNAME\").is_ok());\n```\n\nFor more information, please check the test file in `tests` folder.\n","funding_links":[],"categories":["Libraries","库 Libraries","库"],"sub_categories":["Platform specific","特定于平台的 Platform specific","平台特定","平台标准 Platform specific"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaa110%2Frust-iptables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaa110%2Frust-iptables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaa110%2Frust-iptables/lists"}