8 lines
196 B
Rust
8 lines
196 B
Rust
use std::process::Command;
|
|
|
|
pub fn save_iptables() -> std::io::Result<std::process::Output> {
|
|
Command::new("iptables-save")
|
|
.args(["-f", "/etc/iptables/rules.v4"])
|
|
.output()
|
|
}
|