1
0
martillo-maldito/src/iptables_save.rs

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()
}