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

nullnet-libfireparse

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

6 releases

new 0.1.5 Feb 11, 2025
0.1.4 Feb 7, 2025
0.1.2 Jan 31, 2025

#261 in Configuration

Download history 323/week @ 2025-01-27 376/week @ 2025-02-03

699 downloads per month
Used in nullnet-wallguard-server

MIT license

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