6 releases
new 0.1.5 | Feb 11, 2025 |
---|---|
0.1.4 | Feb 7, 2025 |
0.1.2 | Jan 31, 2025 |
#261 in Configuration
699 downloads per month
Used in nullnet-wallguard-server
38KB
835 lines
🔥 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
~0.7–1.3MB
~28K SLoC