#parser #platform #target #libfireparse

nullnet-libfireparse

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

14 releases

Uses new Rust 2024

new 0.3.2 Apr 2, 2025
0.3.1 Mar 14, 2025
0.2.3 Feb 13, 2025
0.1.6 Feb 13, 2025
0.1.2 Jan 31, 2025

#1170 in Network programming

Download history 91/week @ 2025-01-24 366/week @ 2025-01-31 548/week @ 2025-02-07 421/week @ 2025-02-14 31/week @ 2025-02-21 142/week @ 2025-02-28 17/week @ 2025-03-07 131/week @ 2025-03-14 4/week @ 2025-03-21 105/week @ 2025-03-28

263 downloads per month
Used in 2 crates (via nullnet-wallguard-server)

MIT license

79KB
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
~154K SLoC