feat: add iptables

This commit is contained in:
2021-04-11 14:44:24 +08:00
parent 1d02fda724
commit 87327c8b11
3 changed files with 109 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
fn main() {
println!("Hello, world!");
let ip_tables = iptables::new(false).unwrap();
let ip_tables_filter_result = ip_tables.list_table("filter");
println!("{:#?}", ip_tables_filter_result);
}