#configuration #parser #firewall #across #null-net #platform #libfireparse

nullnet-libfireparse

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

4 releases

new 0.1.3 Feb 6, 2025
0.1.2 Jan 31, 2025
0.1.1 Jan 31, 2025
0.1.0 Jan 30, 2025

#207 in Configuration

Download history 395/week @ 2025-01-29

395 downloads per month
Used in nullnet-wallguard-server

MIT license

30KB
665 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
~29K SLoC