12 releases
new 0.3.0 | Mar 3, 2025 |
---|---|
0.2.3 | Feb 13, 2025 |
0.1.6 | Feb 13, 2025 |
0.1.2 | Jan 31, 2025 |
#158 in Configuration
1,232 downloads per month
Used in 2 crates
(via nullnet-wallguard-server)
77KB
1.5K
SLoC
🔥 libfireparse
libfireparse is a Rust library for parsing firewall configuration files and converting them into a unified format compatible with the NullNet platform.
Usage
use libfireparse::Parser;
let xml = r#"<pfsense><aliases></aliases><filter></filter></pfsense>"#;
match Parser::parse("pfsense", xml) {
Ok(config) => println!("Parsed {} rules and {} aliases", config.rules.len(), config.aliases.len()),
Err(err) => eprintln!("Error: {:?}", err),
}
Supported platforms
- pfSense
- OPNsense
License
MIT
Dependencies
~6–13MB
~155K SLoC