Model Reference#
Hand-maintained. This page is edited by hand, in the same commit as any change to pkg/model. just generate-docs does not write it (that recipe produces docs/templates/model-reference.md, a reference for the vendor XML schema). The generated record of the Go surface is the API snapshot under pkg/parser/testdata/api-snapshots/.
This document provides a complete reference of all data fields available in the opnDossier CommonDevice export model. This is the model used for JSON and YAML exports. It normalizes the raw OPNsense XML schema into clean, platform-agnostic types.
Table of Contents#
CommonDevice (Root)#
The root export object representing a normalized device configuration.
| Field | Type | JSON Key | Description |
|---|
DeviceType | string | device_type | Platform identifier (e.g., "opnsense") |
Version | string | version | Config format version from the top-level <version>, not the installed release |
Theme | string | theme | Web GUI theme name |
System | System | system | System-level settings |
Interfaces | []Interface | interfaces | Network interface configurations (flat array) |
VLANs | []VLAN | vlans | VLAN configurations |
Bridges | []Bridge | bridges | Network bridge configurations |
PPPs | []PPP | ppps | PPP connection configurations |
GIFs | []GIF | gifs | GIF tunnel configurations |
GREs | []GRE | gres | GRE tunnel configurations |
LAGGs | []LAGG | laggs | Link aggregation configurations |
VirtualIPs | []VirtualIP | virtualIps | CARP, IP alias, and proxy ARP configurations |
InterfaceGroups | []InterfaceGroup | interfaceGroups | Logical interface group configurations |
FirewallRules | []FirewallRule | firewallRules | Normalized firewall filter rules |
NAT | NATConfig | nat | NAT configuration (inbound and outbound) |
DHCP | []DHCPScope | dhcp | DHCP server scopes, one per interface |
DNS | DNSConfig | dns | DNS resolver and forwarder configuration |
NTP | NTPConfig | ntp | NTP time synchronization settings |
SNMP | SNMPConfig | snmp | SNMP service configuration |
LoadBalancer | LoadBalancerConfig | loadBalancer | Load balancer and health monitor configuration |
VPN | VPN | vpn | VPN subsystem configurations |
Routing | Routing | routing | Gateways, gateway groups, and static routes |
Certificates | []Certificate | certificates | TLS/SSL certificates |
CAs | []CertificateAuthority | cas | Certificate authorities |
HighAvailability | HighAvailability | highAvailability | CARP/pfsync HA settings |
IDS | *IDSConfig | ids | Intrusion detection/prevention configuration |
Syslog | SyslogConfig | syslog | Remote syslog forwarding configuration |
Users | []User | users | System user accounts |
Groups | []Group | groups | System groups |
Sysctl | []SysctlItem | sysctl | Kernel tunable parameters |
Packages | []Package | packages | Installed software packages |
Revision | Revision | revision | Configuration revision metadata |
NamedObjects | NamedObjects | namedObjects | Registry of named objects (firewall aliases), keyed by name; absent when the device has none |
Enrichment fields (populated during export, not present in raw parse):
| Field | Type | JSON Key | Description |
|---|
Statistics | *Statistics | statistics | Calculated configuration statistics |
Analysis | *Analysis | analysis | Analysis findings and insights |
SecurityAssessment | *SecurityAssessment | securityAssessment | Security scores and recommendations |
PerformanceMetrics | *PerformanceMetrics | performanceMetrics | Performance-related metrics |
ComplianceResults | *ComplianceResults | complianceResults | Compliance audit results from plugin-based checks |
System Configuration#
Core system settings including hostname, DNS, web GUI, and SSH.
System#
| Field | Type | JSON Key | Description |
|---|
Hostname | string | system.hostname | Device hostname |
Domain | string | system.domain | DNS domain name |
Optimization | string | system.optimization | TCP/IP optimization profile |
Language | string | system.language | Web GUI language code |
Timezone | string | system.timezone | System timezone (Region/City) |
TimeServers | []string | system.timeServers | Configured NTP server addresses |
DNSServers | []string | system.dnsServers | Configured DNS resolver addresses |
DNSAllowOverride | bool | system.dnsAllowOverride | Allow DHCP/PPP DNS override |
WebGUI | WebGUI | system.webGui | Web GUI access configuration |
SSH | SSH | system.ssh | SSH service configuration |
Firmware | Firmware | system.firmware | Firmware version and update settings |
DisableNATReflection | bool | system.disableNatReflection | Disable hairpin NAT |
DisableConsoleMenu | bool | system.disableConsoleMenu | Disable console menu |
IPv6Allow | bool | system.ipv6Allow | Enable IPv6 traffic |
PacketFilterDisabled | bool | system.packetFilterDisabled | Packet filtering off; no rules apply |
Notes | []string | system.notes | Operator notes |
SSH#
| Field | Type | JSON Key | Description |
|---|
Enabled | bool | system.ssh.enabled | Whether SSH is active |
Port | string | system.ssh.port | SSH listening port |
Group | string | system.ssh.group | Group allowed SSH access |
WebGUI#
| Field | Type | JSON Key | Description |
|---|
Protocol | string | system.webGui.protocol | Web GUI protocol (http/https) |
NoAntiLockout | bool | system.webGui.noAntiLockout | Anti-lockout rule turned off |
SSLCertRef | string | system.webGui.sslCertRef | SSL certificate reference ID |
LoginAutocomplete | bool | system.webGui.loginAutocomplete | Browser autocomplete on login |
MaxProcesses | string | system.webGui.maxProcesses | Max web server processes |
NoDNSRebindCheck | bool | system.webGui.noDnsRebindCheck | DNS rebind filtering disabled |
Firmware#
| Field | Type | JSON Key | Description |
|---|
Version | string | system.firmware.version | Not filled: release not in config |
Mirror | string | system.firmware.mirror | Update mirror URL |
Flavour | string | system.firmware.flavour | Firmware flavour (OpenSSL/LibreSSL) |
Plugins | string | system.firmware.plugins | Comma-separated plugin list |
Network Interfaces#
Network interface configurations are exported as a flat array, not a map.
Interface#
| Field | Type | JSON Key | Description |
|---|
Name | string | interfaces[].name | Logical name (e.g., "lan", "wan", "opt1") |
PhysicalIf | string | interfaces[].physicalIf | Physical device (e.g., "igb0", "em0") |
Description | string | interfaces[].description | Human-readable label |
Enabled | bool | interfaces[].enabled | Administratively up |
IPAddress | string | interfaces[].ipAddress | IPv4 address |
IPv6Address | string | interfaces[].ipv6Address | IPv6 address |
Subnet | string | interfaces[].subnet | IPv4 subnet prefix length |
SubnetV6 | string | interfaces[].subnetV6 | IPv6 subnet prefix length |
Gateway | string | interfaces[].gateway | IPv4 gateway |
GatewayV6 | string | interfaces[].gatewayV6 | IPv6 gateway |
BlockPrivate | bool | interfaces[].blockPrivate | Block RFC 1918 traffic |
BlockBogons | bool | interfaces[].blockBogons | Block bogon traffic |
Type | string | interfaces[].type | Interface type (dhcp, static, none) |
MTU | string | interfaces[].mtu | Maximum transmission unit |
SpoofMAC | string | interfaces[].spoofMac | Overridden MAC address |
Virtual | bool | interfaces[].virtual | Virtual interface flag |
VLAN#
| Field | Type | JSON Key | Description |
|---|
VLANIf | string | vlans[].vlanIf | VLAN interface name |
PhysicalIf | string | vlans[].physicalIf | Parent physical interface |
Tag | string | vlans[].tag | 802.1Q VLAN tag |
Description | string | vlans[].description | Description |
Gateway#
| Field | Type | JSON Key | Description |
|---|
Name | string | routing.gateways[].name | Gateway name |
Interface | string | routing.gateways[].interface | Reachable interface |
Address | string | routing.gateways[].address | Gateway IP address |
IPProtocol | string | routing.gateways[].ipProtocol | Address family (inet/inet6) |
Weight | string | routing.gateways[].weight | Priority weight for multi-WAN |
Description | string | routing.gateways[].description | Description |
Monitor | string | routing.gateways[].monitor | Health monitoring IP |
Disabled | bool | routing.gateways[].disabled | Administratively disabled |
DefaultGW | string | routing.gateways[].defaultGw | Default route marker |
MonitorDisable | string | routing.gateways[].monitorDisable | Disable health monitoring |
Firewall and Security#
Firewall rules are normalized with clean boolean types and resolved endpoint addresses.
FirewallRule#
| Field | Type | JSON Key | Description |
|---|
UUID | string | firewallRules[].uuid | Unique rule identifier |
Type | string | firewallRules[].type | Action: "pass", "block", "reject" |
Description | string | firewallRules[].description | Human-readable description |
Interfaces | []string | firewallRules[].interfaces | Applied interface names |
IPProtocol | string | firewallRules[].ipProtocol | Address family (inet/inet6/inet46) |
Protocol | string | firewallRules[].protocol | Layer-4 protocol (tcp, udp, icmp) |
Source | RuleEndpoint | firewallRules[].source | Source endpoint |
Destination | RuleEndpoint | firewallRules[].destination | Destination endpoint |
Direction | string | firewallRules[].direction | Traffic direction (in, out, any) |
Floating | bool | firewallRules[].floating | Floating rule (not interface-bound) |
Quick | bool | firewallRules[].quick | Quick matching (first match wins) |
Gateway | string | firewallRules[].gateway | Policy-based routing gateway |
Log | bool | firewallRules[].log | Log matched packets |
Disabled | bool | firewallRules[].disabled | Administratively disabled |
Tracker | string | firewallRules[].tracker | Tracking identifier |
StateType | string | firewallRules[].stateType | State tracking type |
On a pfSense rule Direction is the direction the rule compiles with, which is not always what <direction> holds. It stays empty, which reads as in, unless <floating> holds yes, and a rule that holds yes with no <direction> reads as any.
RuleEndpoint#
Used for both source and destination in firewall and NAT rules.
| Field | Type | JSON Key | Description |
|---|
Address | string | address | Resolved address ("any", CIDR, hostname), or a comma-separated list of them |
Port | string | port | Port or port range |
Negated | bool | negated | Inverted match (NOT logic) |
AddressRef | *ObjectRef | addressRef | Present when Address was expressed as a firewall alias; names the entry in namedObjects |
PortRef | *ObjectRef | portRef | Present when Port was expressed as a firewall alias; names the entry in namedObjects |
AddressRefs | []ObjectRef | addressRefs | Present when the Address of an OPNsense firewall rule is a list, or a list reported as any because it matches every address: one entry for each alias in it, in list order; AddressRef is then absent. Not filled on NAT rules |
NamedObject and ObjectRef (firewall aliases)#
OPNsense and pfSense firewall aliases (host, network, port, and dynamic url/geoip/external tables) are exposed via the device-level namedObjects registry rather than a separate per-vendor table. A rule endpoint keeps its already-resolved inline Address/Port value and additionally carries an AddressRef/PortRef when that value originated from an alias (AddressRefs for an address list), so existing consumers that only read the inline value are unaffected.
| Field | Type | JSON Key | Description |
|---|
Name | string | namedObjects.<name>.name | Alias name; matches the registry key |
Type | string | namedObjects.<name>.type | host, network, port, url, geoip, or external |
Members | []string | namedObjects.<name>.members | Raw member values (literal addresses/ports, or nested alias names); opaque for dynamic types |
Description | string | namedObjects.<name>.description | Human-readable alias description, when present |
Disabled | bool | namedObjects.<name>.disabled | OPNsense only. Present when the config turns the alias off: the firewall loads it with no members, whatever Members lists, so an endpoint naming it matches nothing and an inverted endpoint matches every address. An external or internal alias keeps its table as it is |
Proto | string | namedObjects.<name>.proto | OPNsense only. Address families a geoip or asn alias loads, comma separated (IPv4, IPv6); absent loads both |
Interface | string | namedObjects.<name>.interface | OPNsense only. Interface a dynipv6host alias tracks |
PathExpression | string | namedObjects.<name>.pathExpression | OPNsense only. Selects the values a urljson alias loads from the document it fetches |
Expire | string | namedObjects.<name>.expire | OPNsense only. Seconds after which the firewall purges an unused address from an external alias's table; absent purges none |
ObjectRef (used by AddressRef/PortRef above, and as the entries of AddressRefs) is a single-field pointer keyed into namedObjects:
| Field | Type | JSON Key | Description |
|---|
Name | string | name | The referenced object's name, keying into namedObjects |
Dynamic object types (url, geoip, external) are never expanded ā their Members are recorded as-is and are not resolved into a flattened address/port set.
Alias references beyond rule endpoints#
AddressRef/PortRef on rule endpoints are not the only alias references. Every field on which a pf-family alias can legitimately appear carries an *ObjectRef (or, for an address list, []ObjectRef) so downstream referential-integrity analysis (unused-object detection) sees a complete reference set:
- NAT translation targets ā
NATRule carries targetRef/sourcePortRef/natPortRef; InboundNATRule carries internalIpRef/internalPortRef/externalPortRef/localPortRef.
- Firewall redirect target ā
FirewallRule.targetRef.
- Static route ā
StaticRoute.networkRef.
- OpenVPN local/remote networks ā
localNetworkRef/remoteNetworkRef and their V6 variants on OpenVPNServer/OpenVPNCSC. Populated for pfSense only; OPNsense does not support aliases here (upstream feature request open).
Each ref is nil when the field held a literal value, so alias-free configs serialize unchanged.
Unused objects (analysis.unusedObjects)#
The analysis.unusedObjects array lists named objects defined in the config but not referenced by any policy ā computed as graph reachability from the ref sites above. Each finding carries name, type, memberCount, description, severity, and a hedged recommendation ("confirm before removing"). A disabled rule referencing an alias counts as a reference (the alias is staged, not dead).
NAT Configuration#
NATConfig#
| Field | Type | JSON Key | Description |
|---|
OutboundMode | string | nat.outboundMode | Mode: automatic, hybrid, advanced |
ReflectionDisabled | bool | nat.reflectionDisabled | Off globally and on every forward |
OutboundRules | []NATRule | nat.outboundRules | Outbound NAT rules |
InboundRules | []InboundNATRule | nat.inboundRules | Port-forward NAT rules |
NATRule (Outbound)#
| Field | Type | JSON Key | Description |
|---|
UUID | string | nat.outboundRules[].uuid | Unique identifier |
Interfaces | []string | nat.outboundRules[].interfaces | Applied interfaces |
Protocol | string | nat.outboundRules[].protocol | Layer-4 protocol |
Source | RuleEndpoint | nat.outboundRules[].source | Source endpoint |
Destination | RuleEndpoint | nat.outboundRules[].destination | Destination endpoint |
Target | string | nat.outboundRules[].target | Translation target address |
NatPort | string | nat.outboundRules[].natPort | Translated destination port |
Disabled | bool | nat.outboundRules[].disabled | Administratively disabled |
Log | bool | nat.outboundRules[].log | Log matched packets |
Description | string | nat.outboundRules[].description | Description |
InboundNATRule (Port Forward)#
| Field | Type | JSON Key | Description |
|---|
UUID | string | nat.inboundRules[].uuid | Unique identifier |
Interfaces | []string | nat.inboundRules[].interfaces | Applied interfaces |
Protocol | string | nat.inboundRules[].protocol | Layer-4 protocol |
Source | RuleEndpoint | nat.inboundRules[].source | Source endpoint |
Destination | RuleEndpoint | nat.inboundRules[].destination | Destination endpoint |
ExternalPort | string | nat.inboundRules[].externalPort | External port to forward |
InternalIP | string | nat.inboundRules[].internalIp | Internal target IP |
InternalPort | string | nat.inboundRules[].internalPort | Internal target port |
Disabled | bool | nat.inboundRules[].disabled | Administratively disabled |
Log | bool | nat.inboundRules[].log | Log matched packets |
Description | string | nat.inboundRules[].description | Description |
Category | string | nat.inboundRules[].category | Classification category |
PoolOpts | string | nat.inboundRules[].poolOpts | Address pool options |
Services#
DHCPScope#
DHCP scopes are a flat array with one entry per DHCP server and interface. A Kea subnet names no interface and carries its network in subnet. A dnsmasq range that names no interface and lies in no interface's network gets an entry of its own with an empty interface, and subnet holds the network dnsmasq assumes for it. diff identifies a scope by its interface, else by its server and subnet, as in dhcpd.kea[10.0.1.0/24]. A scope whose identity no other scope on either side has pairs only with the scope of the same identity, or is reported removed or added. Scopes with no identity, or sharing one, are paired by identical content and then by similarity, each only within its group, and a shared name is told apart by the range start, as in dhcpd.dnsmasq[10.0.0.0/8,10.1.0.100]. An interface can have an ISC and a dnsmasq scope at once, typically a disabled ISC scope left beside the dnsmasq one; source tells them apart.
| Field | Type | JSON Key | Description |
|---|
Interface | string | dhcp[].interface | Bound interface name |
Enabled | bool | dhcp[].enabled | DHCP server active on interface |
Range | DHCPRange | dhcp[].range | Address pool range |
Gateway | string | dhcp[].gateway | Default gateway for clients |
DNSServer | string | dhcp[].dnsServer | First DNS server (deprecated) |
DNSServers | []string | dhcp[].dnsServers | DNS servers for clients |
NTPServer | string | dhcp[].ntpServer | NTP server for clients |
WINSServer | string | dhcp[].winsServer | WINS server for clients |
StaticLeases | []DHCPStaticLease | dhcp[].staticLeases | Fixed MAC-to-IP mappings |
Source | DHCPSource | dhcp[].source | isc, kea or dnsmasq |
RangeV6 | *DHCPRange | dhcp[].rangeV6 | DHCPv6 range (dnsmasq only) |
Subnet | string | dhcp[].subnet | Network of a scope without an interface |
DHCPRange#
| Field | Type | JSON Key | Description |
|---|
From | string | dhcp[].range.from | First IP in pool |
To | string | dhcp[].range.to | Last IP in pool |
DHCPStaticLease#
| Field | Type | JSON Key | Description |
|---|
MAC | string | dhcp[].staticLeases[].mac | Hardware MAC address |
IPAddress | string | dhcp[].staticLeases[].ipAddress | Fixed IP address |
Hostname | string | dhcp[].staticLeases[].hostname | Assigned hostname |
Description | string | dhcp[].staticLeases[].description | Description |
SNMP#
Both converters fill these fields only for an agent they report as running, and leave the struct empty otherwise. On OPNsense that is the os-net-snmp plugin when <OPNsense><netsnmp><general><enabled> is 1, and otherwise a legacy <snmpd> block that carries <enable>, which only OPNsense up to 18.7 starts and which is reported with a conversion warning because the config does not record the release; a legacy block without <enable>, which factory defaults wrote up to 25.7, starts no agent. On pfSense it is an <snmpd> block that carries <enable>. SNMPConfig.IsEnabled() also counts a community alone, for a hand-built device that sets only ROCommunity.
| Field | Type | JSON Key | Description |
|---|
ROCommunity | string | snmp.roCommunity | Read-only community (v1/v2c); redacted with --redact |
SysLocation | string | snmp.sysLocation | System location |
SysContact | string | snmp.sysContact | System contact |
Enabled | bool | snmp.enabled | An SNMP agent runs |
ListenAddresses | []string | snmp.listenAddresses | Bound addresses, filled only for the OPNsense os-net-snmp agent, where empty means its default: every IPv4 address and the IPv6 loopback. No bind address is read for an <snmpd> agent. Red mode does not report an os-net-snmp agent bound only to loopback as WAN-exposed unless an enabled port forward that can redirect UDP port 161, where that agent answers SNMP, targets a loopback address, a network spanning one, or a name that may hold one (GOTCHAS.md section 8.4 lists them); an <snmpd> agent is judged by the firewall rules alone |
Users | []SNMPUser | snmp.users | SNMPv3 users the agent loads; passwords and keys are not carried |
SNMPUser#
| Field | Type | JSON Key | Description |
|---|
Username | string | snmp.users[].username | SNMPv3 user name |
ReadWrite | bool | snmp.users[].readWrite | Read-write access |
DNS (Unbound)#
| Field | Type | JSON Key | Description |
|---|
Enabled | bool | dns.unbound.enabled | Unbound resolver active |
DNSSEC | bool | dns.unbound.dnssec | DNSSEC validation enabled |
DNSSECStripped | bool | dns.unbound.dnssecStripped | Harden DNSSEC data on |
DNS (dnsmasq)#
The DHCP ranges dnsmasq serves are reported as dhcp[] scopes with source set to dnsmasq.
| Field | Type | JSON Key | Description |
|---|
Enabled | bool | dns.dnsMasq.enabled | dnsmasq forwarder active |
DNSSEC | bool | dns.dnsMasq.dnssec | DNSSEC validation enabled |
Port | string | dns.dnsMasq.port | DNS port; empty is 53, 0 is off |
Hosts | []DNSMasqHost | dns.dnsMasq.hosts | Host overrides |
DomainOverrides | []DomainOverride | dns.dnsMasq.domainOverrides | Per-domain DNS servers |
DomainOverride#
| Field | Type | JSON Key | Description |
|---|
Domain | string | dns.dnsMasq.domainOverrides[].domain | Domain forwarded |
IP | string | dns.dnsMasq.domainOverrides[].ip | DNS server address; on a legacy config as written, ip#port@srcip |
Description | string | dns.dnsMasq.domainOverrides[].description | Description |
Port | string | dns.dnsMasq.domainOverrides[].port | DNS server port, when not 53 |
SourceIP | string | dns.dnsMasq.domainOverrides[].sourceIp | Local address queries are sent from |
Syslog#
Remote logging and local log retention. On OPNsense configs that carry the Syslog model (<OPNsense><Syslog>), the remote fields summarize the destinations that forward; older configs are read from the legacy <syslog> keys. pfSense does not populate this section yet.
| Field | Type | JSON Key | Description |
|---|
Enabled | bool | syslog.enabled | At least one remote destination forwards |
SystemLogging, AuthLogging, FilterLogging, ... | bool | syslog.systemLogging, ... | A forwarding destination carries that category; FilterLogging follows what filterlog writes (program filterlog, facility local0, level info) |
RemoteServer, RemoteServer2, RemoteServer3 | string | syslog.remoteServer, ... | First three forwarding destinations |
LogFileSize | string | syslog.logFileSize | Local log size limit in bytes; with the Syslog model, the release's default when none is set; empty while local logging is off |
RotateCount | string | syslog.rotateCount | Number of daily log archives kept; with the Syslog model, the release's default when none is set; empty while local logging is off |
Destinations | []SyslogDestination | syslog.destinations | Every remote destination of the Syslog model, disabled ones included |
SyslogDestination#
| Field | Type | JSON Key | Description |
|---|
Enabled | bool | syslog.destinations[].enabled | <enabled> is 1 |
Transport | string | syslog.destinations[].transport | udp4, tcp4, udp6, tcp6, tls4 or tls6 |
Hostname | string | syslog.destinations[].hostname | Receiving server |
Port | string | syslog.destinations[].port | Receiving port |
Programs, Levels, Facilities | []string | syslog.destinations[].programs, ... | Filters the firewall applies together: a message is forwarded only when it passes every non-empty one, and an empty filter does not restrict its own field; program entries are kept untrimmed, as the firewall matches them |
Description | string | syslog.destinations[].description | Operator's label |
VPN Configuration#
VPN (Root)#
| Field | Type | JSON Key | Description |
|---|
OpenVPN | OpenVPNConfig | vpn.openVpn | OpenVPN configurations |
WireGuard | WireGuardConfig | vpn.wireGuard | WireGuard configurations |
IPsec | IPsecConfig | vpn.ipsec | IPsec configurations |
OpenVPN Server#
| Field | Type | JSON Key | Description |
|---|
VPNID | string | vpn.openVpn.servers[].vpnId | Unique VPN instance ID |
Mode | string | vpn.openVpn.servers[].mode | Server mode |
Protocol | string | vpn.openVpn.servers[].protocol | Transport protocol (UDP4/TCP4) |
Interface | string | vpn.openVpn.servers[].interface | Listening interface |
LocalPort | string | vpn.openVpn.servers[].localPort | Listening port |
Description | string | vpn.openVpn.servers[].description | Description |
TunnelNetwork | string | vpn.openVpn.servers[].tunnelNetwork | IPv4 tunnel network CIDR |
TunnelNetworkV6 | string | vpn.openVpn.servers[].tunnelNetworkV6 | IPv6 tunnel network CIDR |
LocalNetwork | string | vpn.openVpn.servers[].localNetwork | Local network pushed to clients |
MaxClients | string | vpn.openVpn.servers[].maxClients | Max simultaneous connections |
Compression | string | vpn.openVpn.servers[].compression | Compression algorithm |
StrictUserCN | bool | vpn.openVpn.servers[].strictUserCn | Enforce CN-to-username matching |
GWRedir | bool | vpn.openVpn.servers[].gwRedir | Redirect all traffic through VPN |
OpenVPN Client#
| Field | Type | JSON Key | Description |
|---|
VPNID | string | vpn.openVpn.clients[].vpnId | Unique VPN instance ID |
Mode | string | vpn.openVpn.clients[].mode | Client mode |
Protocol | string | vpn.openVpn.clients[].protocol | Transport protocol |
Interface | string | vpn.openVpn.clients[].interface | Bound interface |
ServerAddr | string | vpn.openVpn.clients[].serverAddr | Remote server address |
ServerPort | string | vpn.openVpn.clients[].serverPort | Remote server port |
Description | string | vpn.openVpn.clients[].description | Description |
WireGuard Server#
| Field | Type | JSON Key | Description |
|---|
UUID | string | vpn.wireGuard.servers[].uuid | Unique identifier |
Enabled | bool | vpn.wireGuard.servers[].enabled | Instance active |
Name | string | vpn.wireGuard.servers[].name | Server name |
PublicKey | string | vpn.wireGuard.servers[].publicKey | WireGuard public key |
Port | string | vpn.wireGuard.servers[].port | UDP listening port |
MTU | string | vpn.wireGuard.servers[].mtu | Tunnel MTU |
TunnelAddress | string | vpn.wireGuard.servers[].tunnelAddress | Tunnel IP with prefix |
DNS | string | vpn.wireGuard.servers[].dns | DNS server for tunnel |
WireGuard Client (Peer)#
| Field | Type | JSON Key | Description |
|---|
UUID | string | vpn.wireGuard.clients[].uuid | Unique identifier |
Enabled | bool | vpn.wireGuard.clients[].enabled | Peer active |
Name | string | vpn.wireGuard.clients[].name | Peer name |
PublicKey | string | vpn.wireGuard.clients[].publicKey | Peer public key |
TunnelAddress | string | vpn.wireGuard.clients[].tunnelAddress | Allowed IP address |
ServerAddress | string | vpn.wireGuard.clients[].serverAddress | Endpoint address |
ServerPort | string | vpn.wireGuard.clients[].serverPort | Endpoint port |
Keepalive | string | vpn.wireGuard.clients[].keepalive | Persistent keepalive (secs) |
IPsec#
| Field | Type | JSON Key | Description |
|---|
Enabled | bool | vpn.ipsec.enabled | IPsec subsystem active |
PreferredOldSA | bool | vpn.ipsec.preferredOldSa | Prefer old security associations |
DisableVPNRules | bool | vpn.ipsec.disableVpnRules | Disable auto firewall rules |
Routing#
Routing (Root)#
| Field | Type | JSON Key | Description |
|---|
Gateways | []Gateway | routing.gateways | Network gateways |
GatewayGroups | []GatewayGroup | routing.gatewayGroups | Gateway groups for failover |
StaticRoutes | []StaticRoute | routing.staticRoutes | Manually configured routes |
StaticRoute#
| Field | Type | JSON Key | Description |
|---|
Network | string | routing.staticRoutes[].network | Destination CIDR |
Gateway | string | routing.staticRoutes[].gateway | Next-hop gateway name |
Description | string | routing.staticRoutes[].description | Description |
Disabled | bool | routing.staticRoutes[].disabled | Administratively disabled |
GatewayGroup#
| Field | Type | JSON Key | Description |
|---|
Name | string | routing.gatewayGroups[].name | Group name |
Items | []string | routing.gatewayGroups[].items | Member gateways with tiers |
Trigger | string | routing.gatewayGroups[].trigger | Failover condition |
Description | string | routing.gatewayGroups[].description | Description |
Users and Groups#
Users and groups are top-level arrays, not nested under system.
User#
| Field | Type | JSON Key | Description |
|---|
Name | string | users[].name | Login username |
Disabled | bool | users[].disabled | Account locked |
Description | string | users[].description | Description |
Scope | string | users[].scope | Scope (system, local) |
GroupName | string | users[].groupName | Primary group |
UID | string | users[].uid | Numeric user ID |
APIKeys | []APIKey | users[].apiKeys | API key credentials |
Group#
| Field | Type | JSON Key | Description |
|---|
Name | string | groups[].name | Group name |
Description | string | groups[].description | Description |
Scope | string | groups[].scope | Scope (system, local) |
GID | string | groups[].gid | Numeric group ID |
Member | string | groups[].member | Comma-separated user UIDs |
Privileges | string | groups[].privileges | Comma-separated privileges |
Certificates#
Certificate#
| Field | Type | JSON Key | Description |
|---|
RefID | string | certificates[].refId | Unique reference ID |
Description | string | certificates[].description | Description |
Type | string | certificates[].type | Certificate type (server, user) |
CARef | string | certificates[].caRef | Issuing CA reference ID |
Certificate | string | certificates[].certificate | PEM-encoded certificate |
PrivateKey | string | certificates[].privateKey | PEM-encoded private key |
CertificateAuthority#
| Field | Type | JSON Key | Description |
|---|
RefID | string | cas[].refId | Unique reference ID |
Description | string | cas[].description | Description |
Certificate | string | cas[].certificate | PEM-encoded CA certificate |
PrivateKey | string | cas[].privateKey | PEM-encoded CA private key |
Serial | string | cas[].serial | Next certificate serial number |
Analysis and Findings#
The analysis enrichment field (Analysis, *Analysis) is populated during export, not present in the raw parse. It carries the output of opnDossier's shared detection engine (internal/analysis).
Analysis#
| Field | Type | JSON Key | Description |
|---|
DeadRules | []DeadRuleFinding | analysis.deadRules | Deprecated. See DeadRuleFinding (deprecated) below. |
UnusedInterfaces | []UnusedInterfaceFinding | analysis.unusedInterfaces | Interfaces with no associated rules or services |
SecurityIssues | []SecurityFinding | analysis.securityIssues | Detected security configuration issues |
PerformanceIssues | []PerformanceFinding | analysis.performanceIssues | Detected performance configuration issues |
ConsistencyIssues | []ConsistencyFinding | analysis.consistencyIssues | Detected configuration consistency issues |
ShadowedRules | []ShadowedRuleFinding | analysis.shadowedRules | Firewall rules ā or traffic subsets of rules ā that never take effect because a higher-precedence rule already covers them. The richer successor to deadRules. |
ShadowedRuleFinding#
Reported by internal/analysis.DetectShadowedRules, which models pf/OPNsense/pfSense rule-evaluation semantics directly (quick rules first-match, non-quick rules last-match, floating rules evaluated in list order before interface rules, device-wide when unscoped). An OPNsense rule list is already in evaluation order and is read as it stands. A disabled rule never appears as the covering rule, because the firewall does not load it, but it can be reported as the shadowed rule. pfSense tests <disabled> with isset() and OPNsense with !empty(), so an empty element disables a pfSense rule and leaves an OPNsense rule live, and each converter applies its vendor's test. A rule with no type counts as a pass rule, because both firewalls load it as one.
| Field | Type | JSON Key | Description |
|---|
Kind | string | analysis.shadowedRules[].kind | full (the entire rule is shadowed) or partial (only a traffic subset is eclipsed) |
ImpactClass | string | analysis.shadowedRules[].impactClass | security (a pass rule defeats a deny), troubleshooting (a deny defeats a pass, or ambiguous overlap), or hygiene (redundant same-action coverage) |
Severity | string | analysis.shadowedRules[].severity | critical, high, medium, or low ā combines impact class and reachability (WAN exposure escalates) |
Confidence | string | analysis.shadowedRules[].confidence | high, or low when an alias could not be resolved or a port value could not be read (see below) |
RuleIndex | int | analysis.shadowedRules[].ruleIndex | Position of the shadowed (loser) rule in firewallRules |
ShadowedByIndex | int | analysis.shadowedRules[].shadowedByIndex | Position of the covering (winner) rule in firewallRules |
Interface | string | analysis.shadowedRules[].interface | Interface the shadow was detected on |
Direction | string | analysis.shadowedRules[].direction | Evaluation direction bucket (in or out) the shadow was resolved under |
Port | string | analysis.shadowedRules[].port | Eclipsed port subset, populated for partial shadows only |
Description | string | analysis.shadowedRules[].description | Human-readable summary of the shadow. Advisory findings are prefixed with (unconfirmed ā unresolved alias), or with (unconfirmed, unreadable port value) when the only thing that could not be read is a port value rather than an alias. |
Recommendation | string | analysis.shadowedRules[].recommendation | Suggested corrective action |
DeadRuleFinding (deprecated)#
Deprecated: deadRules remains populated for backward compatibility ā it is a derived view covering only the unreachable-and-duplicate scenarios that shadow detection surfaces, re-projected into this narrower shape. The re-projection is not entry-for-entry: duplicate entries map one-to-one onto a shadowedRules entry, but unreachable entries are keyed by the block-all owner rule and have no corresponding shadowedRules entry (see Correlation key below). New integrations should read shadowedRules instead: it captures every full/partial shadow across all impact classes ā not just the unreachable/duplicate cases ā with richer classification (impactClass, confidence, the covering rule's index) that deadRules cannot express.
Correlation key: this only holds for duplicate entries ā ruleIndex there is the shadowed (loser) rule and corresponds to the shadowedRules entry with the same ruleIndex, so those two can be deduped safely. For unreachable entries, ruleIndex instead identifies the block-all rule causing the unreachability (the owner, not a shadowed rule) ā it has no corresponding shadowedRules entry, so consumers must not blanket-dedup both collections on ruleIndex.
Removal: deadRules will be removed no earlier than the next major version of opnDossier.
| Field | Type | JSON Key | Description |
|---|
Kind | string | analysis.deadRules[].kind | unreachable (the block-all owner rule that renders later rules unreachable) or duplicate |
RuleIndex | int | analysis.deadRules[].ruleIndex | For duplicate, position of the shadowed (loser) rule in firewallRules; for unreachable, position of the block-all owner rule causing it |
Interface | string | analysis.deadRules[].interface | Interface the dead rule is bound to |
Description | string | analysis.deadRules[].description | Summary of why the rule is considered dead |
Recommendation | string | analysis.deadRules[].recommendation | Suggested corrective action |