Projet

Général

Profil

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

root / spec / classes @ f29ea029

# Date Auteur Commentaire
f29ea029 2021-01-25 17:38 Kienan Stewart

Fix nftables::rules::out::nfs3 for nftables 0.9.0

7c92861a 2021-01-21 11:47 Kienan Stewart

Fix rubocop style error

c8683bd8 2021-01-18 16:21 Kienan Stewart

Revert "Use symbols for both lookups in os_facts"

This reverts commit 0877a8fd3646130f06b29e581a1ed2f990394094.

My initial tests were too hasty. `os_facts[:os][:family]` returns
an empty string. The original formulation was correct.

0877a8fd 2021-01-18 14:44 Kienan Stewart

Use symbols for both lookups in os_facts

The access does work this way and it seems preferable to be
consistent. The access using `os_facts['os']` does not work.

96705735 2021-01-18 14:00 Kienan Stewart

Add test cases for Debian

e743f82e 2021-01-18 08:35 Giuseppe Lo Presti

Made ctdb rule parameterized

1ee2f66b 2021-01-18 06:25 Giuseppe Lo Presti

Added to tests

94a80621 2020-12-14 05:07 Steve Traylen

Use Stdlib::Port everywhere in place of Integer

Use Stdlib::Port in place of Integer for ports

Fixes #37

04176b0e 2020-12-13 16:52 mh

switch naming to puppetserver

bacf254e 2020-12-11 02:19 Nacho Barrientos

Merge pull request #48 from cernops/config_template

Several fixes for nftables::config

2075a727 2020-12-10 09:21 Steve Traylen

Correct NFS udp and tcp port matching

There was a missing `th` from rule which from the examples in the man
page is meant to be there.

Cannot find the docs for what `th` does.

fcb1d356 2020-12-10 02:23 Nacho Barrientos

Auto fill simple table configuration

ce22630b 2020-12-09 05:37 Steve Traylen

Remove duplicate flush on reload

When nftables was reloaded a flush was being done both in the systemd
reload call and in the nft script itself.

7e5b657a 2020-12-08 11:49 Steve Traylen

rubocop:auto_correct fixes

e3c56ff6 2020-12-03 03:48 keachi

Merge pull request #29 from keachi/fwd_conntrack

Enable conntrack in FORWARD

24a5a2a7 2020-12-02 15:05 tr

Enable conntrack in FORWARD

ed8e4643 2020-12-02 08:03 duritong

Merge pull request #32 from dvanders/ceph_nfs

Add Ceph and NFS rules

d0c972c3 2020-12-02 05:37 Dan van der Ster

Test NFS rules

Signed-off-by: Dan van der Ster <>

f4e9e995 2020-12-02 05:37 Dan van der Ster

Test ceph rules

Signed-off-by: Dan van der Ster <>

03d9e7da 2020-12-01 03:09 Steve Traylen

New parameter noflush_tables to selectivly skip flush

Introduces a new structured fact nftables

```yaml
nftables:
tables:
- inet-filter
- ip-nat
- ip6-nat
- inet-f2b-table
```

By default the nft script will continue to contain `nft flush ruleset`...

72aad4a2 2020-11-29 13:22 keachi

Merge pull request #28 from traylenator/simplify

Do not test nftables::rules repeatadly

902ceaac 2020-11-29 13:18 keachi

Merge pull request #22 from cernops/log_limit

Set a customisable rate limit to the logging rules

300b7382 2020-11-27 05:21 Steve Traylen

Do not test nftables::rules repeatadly

Rather than testing the contents of nftable::rules just test
that nftables::rules instance is correct.

The existing test for the define nftables::rules is enough.

Motivation here is to make changes to nftables::rules easier to handle...

802d80d1 2020-11-27 03:35 Nacho Barrientos

Allow sourcing sets from Hiera

82d10659 2020-11-26 15:39 Nacho Barrientos

Allow disabling default NAT tables and chains

30462da1 2020-11-26 05:19 Steve Traylen

Reload rules atomically

Background: The unit file for nftables on CentOS 8 contains:

```
ExecStart=/sbin/nft -f /etc/sysconfig/nftables.conf
ExecReload=/sbin/nft 'flush ruleset; include "/etc/sysconfig/nftables.conf";'
ExecStop=/sbin/nft flush ruleset
```...

b10c6216 2020-11-24 10:37 Nacho Barrientos

Set a customisable rate limit to the logging rules

92461926 2020-11-24 07:53 duritong

Merge pull request #16 from cernops/icmp

Move ICMP stuff to separate classes allowing better customisation

ae9872e2 2020-11-24 04:17 Nacho Barrientos

Make masking Service['firewalld'] configurable

79e9a23f 2020-11-21 03:10 Nacho Barrientos

Move ICMP stuff to separate classes

8b97e6a3 2020-11-20 03:52 Steve Traylen

Correct bad merge

There was a bad merge between

correct tests.

a5f5fb12 2020-11-19 15:56 duritong

Merge pull request #13 from traylenator/comment

Add comments for all the nftable::rules entries

21d0496e 2020-11-19 15:53 duritong

Merge pull request #14 from cernops/ct_away

Move conntrack rules from global to INPUT and OUTPUT

7b14f6d9 2020-11-19 15:11 keachi

Merge pull request #6 from traylenator/afs

Add rules for afs3_callback in and out rules for kerberos and openafs.

ea96d5db 2020-11-19 10:15 Nacho Barrientos

Move ct rules from global to INPUT and OUTPUT

61f03b47 2020-11-19 09:19 Steve Traylen

Switch $order$fragmenta/b to $order-$fragment-a/b

e53053ce 2020-11-19 08:31 Steve Traylen

Add comments for all the nftable::rules entries

For each nftable::rule this adds an extra concat fragment to
add a comment containing the name and order number for the rule.

The motivation here is to make the mapping from resulting rules back
to puppet code more obvious. When adding a new rule it should be more...

ac0af4aa 2020-11-19 03:16 Nacho Barrientos

Allow tables to add comments to $log_prefix

215aee13 2020-11-18 07:18 Steve Traylen

Add kerberos out and openafs_client out

f3f2870f 2020-11-18 07:18 Steve Traylen

Add rules for afs3_callback

In particular the afs callback to the cache manager(7001) which is UDP and always
IPv4 since there OpenAFS does not support IPv6.

https://wiki.openafs.org/devel/AFSServicePorts/

70727742 2020-11-16 04:50 Nacho Barrientos

Add a parameter to control the fate of discarded packets

0cf43fdf 2020-11-15 16:37 duritong

Merge pull request #4 from cernops/dhcp6

Add classes encapsulating rules for DHCPv6 client traffic (in/out)

37b2a3b7 2020-11-15 13:41 Nacho Barrientos

Add class nftables::services::dhcpv6_client

883389dc 2020-11-15 10:51 duritong

Merge pull request #5 from cernops/custom_log_prefix

Allow customising the log prefix

ed827383 2020-11-15 04:44 Nacho Barrientos

Allow customising the log prefix

e4c32222 2020-11-13 09:55 Nacho Barrientos

Use concat for table conf generation

This way other components of the module will be able to add extra stuff
to the table definitions like sets.

18ec6f48 2020-11-05 16:43 tr

Fix rulenames which includes an index

The rulename has a regex pattern `[/^[a-zA-Z0-9_]+-[a-zA-Z0-9_]+(\d+)?$/]`
which allows an index at the end of the rulename (with a delimiter).
This is split later with `$data = split($rulename, '
')` but the content...

248ef9d5 2020-10-28 14:40 tr

Add basic ip6 nat chains

fd0eaeca 2020-10-24 06:02 tr

Add class bridges

Allow traffic from any bridge to itself by default

b3a7a6dd 2020-10-23 13:46 tr

Allow to inject custom rules

b171ac7f 2020-10-20 12:55 mh

fix offenses

e17693e3 2020-10-20 08:29 Steve Traylen

New parameter out_all, default false

In order to allow all outbound traffic a parameter is
added to enable a simple `allow` entry on the out chain.

Default is false so backwards compatible.

If true all the other out_bound rules (ntp, ...) will be disabled...

01d8a819 2020-10-16 10:29 tr

Styling to make tests green

3d29a6eb 2020-08-31 06:13 tr

Add a rule to create snat

a0d5c724 2020-08-31 06:12 tr

Test masquerade default proto

2a3b45ec 2020-08-31 05:38 tr

Add a define for masquerading

a5205d2f 2020-08-31 05:01 tr

Extract the dnat spec tests

351a88fb 2020-08-30 10:49 tr

Add a define for ipv4 dnat

af544fea 2020-08-30 09:15 tr

Create a special ingoing chain for all ingoing fwd rules

f02562f2 2020-08-30 07:18 tr

Stop and mask firewalld service

8f5d09ec 2020-08-30 07:07 tr

Linting

9ae64df9 2020-08-30 07:07 tr

Add spec tests for a DNAT

95b1259b 2020-08-30 07:07 tr

Add spec tests for ip nat prerouting

d78c1613 2020-08-30 07:07 tr

Add spec tests for router functionality

605d5fde 2020-08-30 07:07 tr

Add spec tests for ip nat chain policies

c8e93806 2020-08-30 06:09 tr

Fix nat hooks

5bd849ba 2020-08-30 06:09 tr

Rename to snake cases

422b6851 2020-08-30 05:44 tr

Add spec tests for ip-nat

6f38efff 2020-08-30 05:43 tr

Rename spec filter to inet-filter

5df9303f 2020-08-30 05:24 tr

Replace filter with inet-filter

8efbdf9a 2020-08-29 19:05 tr

Refactoring

e89da898 2020-08-29 14:31 tr

Linting

f34dae00 2020-08-29 14:14 tr

Spec tests for default rules

3ccc62ae 2020-08-29 13:52 tr

Add spec tests for default chains

be6aa569 2020-08-29 13:25 tr

Add spec tests for filter chains

5acb554a 2020-08-29 12:06 tr

Write some spec tests for init class

64134e4e 2020-08-29 11:17 tr

Add spec tests it should compile