{{define "firewall.html"}}
{{template "base" .}}
{{end}}
{{define "content"}}
{{if .Error}}
{{.Error}}
{{end}}
| Firewall |
{{.EnabledText}}
|
{{if .DefaultZone}}
| Default Zone | {{.DefaultZone}} |
{{end}}
| Lockdown Mode |
{{if .Lockdown}}Active{{else}}Inactive{{end}} |
| Log Denied Traffic | {{.Logging}} |
{{if .Matrix}}
| → |
{{range .ZoneNames}}{{.}} | {{end}}
{{range .Matrix}}
| {{.Zone}} |
{{range .Cells}}
{{.Symbol}} |
{{end}}
{{end}}
—
✓ Allow
⚠ Conditional
✗ Deny
{{end}}
{{if .Zones}}
| Name |
Action |
Interfaces |
Networks |
Host Services |
{{range .Zones}}
| {{.Name}} |
{{.Action}} |
{{.Interfaces}} |
{{if .Networks}}{{.Networks}}{{else}}—{{end}} |
{{if .Services}}{{.Services}}{{else}}—{{end}} |
{{end}}
{{end}}
{{if .Policies}}
| ⚷ |
Name |
Action |
Ingress |
Egress |
Services |
{{range .Policies}}
| {{if .Immutable}}⚷{{end}} |
{{.Name}} |
{{.Action}} |
{{.Ingress}} |
{{.Egress}} |
{{if .Services}}{{.Services}} {{end}}{{if .Masquerade}}masq{{end}} |
{{end}}
{{end}}
{{end}}