Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / manifests / rules / samba.pp @ 4c3d5d6b

Historique | Voir | Annoter | Télécharger (636 octets)

1
# @summary manage Samba, the suite to allow Windows file sharing on Linux resources.
2
#
3
# @param ctdb Enable ctdb-driven clustered Samba setups
4
# @param action if the traffic should be allowed or dropped
5
#
6
class nftables::rules::samba (
7
  Boolean $ctdb = false,
8
  Enum['accept', 'drop'] $action = 'accept',
9
) {
10
  nftables::rule {
11
    'default_in-netbios_tcp':
12
      content => "tcp dport {139,445} ${action}",
13
  }
14

    
15
  nftables::rule {
16
    'default_in-netbios_udp':
17
      content => "udp dport {137,138} ${action}",
18
  }
19

    
20
  if $ctdb {
21
    nftables::rule {
22
      'default_in-ctdb':
23
        content => "tcp dport 4379 ${action}",
24
    }
25
  }
26
}