Tech News
← Back to articles

CLI tool to convert OpenBSD Packet Filter config files to JSON and vice versa

read original related products more articles

pfjson

A CLI tool to convert OpenBSD Packet Filter configuration files ( pf.conf ) to JSON and vice versa.

Features

Bidirectional conversion between pf.conf and JSON formats

Preserves comments and formatting

Checksum verification using SHA256 and SHA512 for data integrity

File metadata tracking including original filename and file size

File overwrite protection requiring explicit force flag ("-f")

Stdin/stdout support using "-" as filename

Syntax validation and dry-run modes

... continue reading