Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rorycl/pfcfg-parser
Quick and simple parser for PFSense XML configuration files, good for auditing firewall rules
https://github.com/rorycl/pfcfg-parser
go go-xml golang pfsense pfsense-firewall
Last synced: about 1 month ago
JSON representation
Quick and simple parser for PFSense XML configuration files, good for auditing firewall rules
- Host: GitHub
- URL: https://github.com/rorycl/pfcfg-parser
- Owner: rorycl
- License: mit
- Created: 2022-01-13T17:17:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-31T21:18:30.000Z (almost 3 years ago)
- Last Synced: 2024-06-21T08:19:36.186Z (7 months ago)
- Topics: go, go-xml, golang, pfsense, pfsense-firewall
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pfcfg-parser
version 0.0.3 : 31 January 2022
A quick and simple parser for PFSense XML configuration files to
generate a plain text file of the main configuration items, focusing on
aliases and firewall rules, useful for auditing.The output can be easily modified by altering the output template. For
reference to the naming of struct fields, refer to `pfconfig.go`.Build
go build
Run
./pfcfg-parser config-20220112112427.xml
Output
PFSense Configuration Report
Report generated at 2022-01-13 17:30
System mycorp-fwl17b
Version 21.7Interfaces
WAN on igb3 ip xx.xx.xx.xx
LAN on igb4 ip yy.yy.yy.yyVirtual IPs
carp wan WAN CARP zz.zz.zz.zzAliases
hostA host aa.bb.cc.25
web host aa.bb.cc.20 aa.bb.cc.21Filters
2581947622 2021-02-17 wan hostA to any
2425581024 2019-03-05 wan any to hostB:25
2425581120 2019-03-05 wan any to hostB:587
2425581216 2019-03-05 wan any to hostC:443