All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

pfjson: A CLI Tool for Converting OpenBSD pf.conf Files to JSON and Back

By

fork-bomber

8mo ago· 2 min readenCode

Summary

A CLI tool called pfjson that converts OpenBSD Packet Filter configuration files (pf.conf) to JSON format and back. The tool supports encoding pf.conf to structured JSON with metadata for integrity verification, decoding JSON back to pf.conf, file safety features to prevent overwriting, and automatic checksum verification during conversion.

Key quotes

· 4 pulled
A CLI tool to convert OpenBSD Packet Filter configuration files (pf.conf) to JSON and vice versa.
The JSON contains structured representations of all pf.conf elements with metadata for integrity verification.
By default, pfjson will not overwrite existing files.
The tool automatically verifies data integrity during conversion.
Snippet from the RSS feed
A CLI tool to convert OpenBSD Packet Filter configuration files (`pf.conf`) to JSON and vice versa. - fleximus/pfjson

You might also wanna read