Skip to content

Commit f0d8f3b

Browse files
update REFERENCE.md
1 parent ab49aac commit f0d8f3b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

REFERENCE.md

+21
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,18 @@ ferm::ipset { 'CONSUL':
401401
}
402402
```
403403

404+
##### Create an iptables rule that allows outbound traffic that matches the ipset `internet`
405+
406+
```puppet
407+
ferm::ipset { 'allow_outbound_ipsets':
408+
table => 'OUTPUT',
409+
match => 'dst',
410+
sets => {
411+
'internet' => 'ACCEPT'
412+
},
413+
}
414+
```
415+
404416
##### create two matches for IPv6, both at the end of the `INPUT` chain. Explicitly mention the `filter` table.
405417

406418
```puppet
@@ -424,6 +436,7 @@ The following parameters are available in the `ferm::ipset` defined type:
424436
* [`table`](#-ferm--ipset--table)
425437
* [`ip_version`](#-ferm--ipset--ip_version)
426438
* [`prepend_to_chain`](#-ferm--ipset--prepend_to_chain)
439+
* [`match`](#-ferm--ipset--match)
427440

428441
##### <a name="-ferm--ipset--sets"></a>`sets`
429442

@@ -463,6 +476,14 @@ By default, ipset rules are added to the top of the chain. Set this to false to
463476

464477
Default value: `true`
465478

479+
##### <a name="-ferm--ipset--match"></a>`match`
480+
481+
Data type: `Enum['dst', 'src']`
482+
483+
Define if 'sets' should match for 'src' or 'dst'. Default: 'src'
484+
485+
Default value: `'src'`
486+
466487
### <a name="ferm--rule"></a>`ferm::rule`
467488

468489
This defined resource manages a single rule in a specific chain

0 commit comments

Comments
 (0)