root / manifests / rules / afs3_callback.pp @ 53aa1fa8
Historique | Voir | Annoter | Télécharger (472 octets)
1 | f3f2870f | Steve Traylen | # @summary Open call back port for AFS clients |
---|---|---|---|
2 | # @param saddr list of source network ranges to a |
||
3 | 09cba182 | Steve Traylen | # @example allow call backs from particular hosts |
4 | # class{'nftables::rules::afs3_callback': |
||
5 | # saddr => ['192.168.0.0/16', '10.0.0.222'] |
||
6 | # } |
||
7 | f3f2870f | Steve Traylen | # |
8 | class nftables::rules::afs3_callback ( |
||
9 | Array[Stdlib::IP::Address::V4,1] $saddr = ['0.0.0.0/0'], |
||
10 | ) { |
||
11 | 11bf7237 | Steve Traylen | nftables::rule { 'default_in-afs3_callback': |
12 | content => "ip saddr { ${saddr.join(', ')} } udp dport 7001 accept"; |
||
13 | f3f2870f | Steve Traylen | } |
14 | } |