Puppet Class: nftables::rules::ssh

Defined in:
manifests/rules/ssh.pp

Summary

manage in ssh

Overview

Parameters:

  • ports (Array[Stdlib::Port,1]) (defaults to: [22])

    ssh ports



3
4
5
6
7
8
9
10
# File 'manifests/rules/ssh.pp', line 3

class nftables::rules::ssh (
  Array[Stdlib::Port,1] $ports = [22],
) {
  nftables::rule {
    'default_in-ssh':
      content => "tcp dport {${join($ports,', ')}} accept",
  }
}