nullnet-libfireparse 0.1.5

A library for parsing and translating firewall configurations across multiple NullNet targets
Documentation

🔥 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