-
Notifications
You must be signed in to change notification settings - Fork 2
firewall
Thomas Mangin edited this page Apr 21, 2026
·
7 revisions
Pre-Alpha. This page describes behavior that may change.
Ze includes a firewall subsystem with an nftables backend for stateful packet filtering. Configuration lives in the firewall { } YANG section.
firewall {
backend nft;
table inet filter {
chain input {
type filter;
hook input;
priority 0;
policy drop;
rule accept-established {
match { conntrack-state established,related; }
action accept;
}
rule accept-ssh {
match { protocol tcp; destination-port 22; }
action accept;
}
rule accept-bgp {
match { protocol tcp; destination-port 179; }
action accept;
}
rule accept-bfd {
match { protocol udp; destination-port 3784; }
action accept;
}
}
}
}
The nftables backend lowers the YANG config into nftables expressions at commit time.
The ze:backend YANG extension provides commit-time rejection of unsupported features. If a feature is not supported by the configured backend, the commit fails with a descriptive error rather than silently ignoring the rule.
| Command | Description |
|---|---|
show firewall |
Current firewall state and rule counts. |
show ip firewall |
IP-level firewall state. |
clear firewall counters |
Reset match counters. |
- Traffic Control for per-interface queueing disciplines.
- Plugins for the plugin list.
- In-tree features for the authoritative capability list.
Unreviewed draft. This wiki was authored in bulk and has not been reviewed. File corrections on the issue tracker.
- Overview
- YANG Model
- Editor Workflow
- Archive and Rollback
- System
- Interfaces
- VRRP
- BFD
- FIB
- OSPF
- IS-IS
- MPLS / LDP / RSVP-TE
- RSVP-TE
- SRv6
- Static Routes
- Policy Routing
- Firewall
- Traffic Control
- Class of Service
- L2TP/PPP
- PPPoE
- VPP Data Plane
- RPKI
- IPsec VPN
- TACACS+ AAA
- RADIUS AAA
- AS112 DNS
- Authorization
- Fleet
- BGP
- Starting and Stopping
- Show Commands
- Monitoring
- Flow Export
- DDoS Mitigation
- Anomaly Detection
- Health Checks
- Audit Trail
- Production Diagnostics
- Logging
- Operational Reports
- Healthcheck
- Self-Update
- Zero-Touch Provisioning
- MRT Analysis
- Upgrade and Restart
- Storage
- Policy
- Core
- Resilience
- Validation
- Capabilities
- Address Families
- Protocol
- Subsystems
- Infrastructure
- Route Server at an IXP
- Transit Edge with RPKI
- Public Looking Glass
- ExaBGP Migration Walkthrough
- FlowSpec Injection
- Chaos-Tested Peering
- AS Path Topology