Reference

firewall feature

What it does

Inbound traffic to accept. A firewall feature implements it.

This is an abstract feature type: it has no instances of its own. Feature types that implement it receive what is sent to it.

Use it

Nothing uses this type directly. Features send items to it, and the feature that implements it receives them. This part of a system configuration sends one:

Example: feature-firewall-example

(import (vessel system))

;; Open the web ports. nftables, from the server features, receives the
;; rule.
(system-configuration
  features:
    (cons (simple-feature 'web firewall-feature
            (list (firewall-rule ports: '(80 443))))
          %server-features))

Verified

A real system.sgl also sets the fields this example leaves out: the host name, kernel, boot loader and file systems. Every time the manual is built, it composes this configuration with Vessel's code and checks what the feature receives.

Options

None. This feature type takes no configuration.

What it adds

It sends nothing to other feature types.

What it receives

  • firewall-rule: A rule; each protocol and port it opens is a claim.

Used in

Created with Sigil