Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rules for IGMP #194

Merged
merged 1 commit into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Enable this option to support Ceph's Monitor Daemon.
* [`nftables::rules::https`](#nftables--rules--https): manage in https
* [`nftables::rules::icinga2`](#nftables--rules--icinga2): manage in icinga2
* [`nftables::rules::icmp`](#nftables--rules--icmp)
* [`nftables::rules::igmp`](#nftables--rules--igmp): allow incoming IGMP messages
* [`nftables::rules::ldap`](#nftables--rules--ldap): manage in ldap
* [`nftables::rules::mdns`](#nftables--rules--mdns): allow incoming multicast DNS
* [`nftables::rules::multicast`](#nftables--rules--multicast): allow incoming multicast traffic
Expand All @@ -46,6 +47,7 @@ and Manager Daemons (MGR).
* [`nftables::rules::out::http`](#nftables--rules--out--http): manage out http
* [`nftables::rules::out::https`](#nftables--rules--out--https): manage out https
* [`nftables::rules::out::icmp`](#nftables--rules--out--icmp): control outbound icmp packages
* [`nftables::rules::out::igmp`](#nftables--rules--out--igmp): allow outcoming IGMP messages
* [`nftables::rules::out::imap`](#nftables--rules--out--imap): allow outgoing imap
* [`nftables::rules::out::kerberos`](#nftables--rules--out--kerberos): allows outbound access for kerberos
* [`nftables::rules::out::ldap`](#nftables--rules--out--ldap): manage outgoing ldap
Expand Down Expand Up @@ -629,6 +631,10 @@ Data type: `String`

Default value: `'10'`

### <a name="nftables--rules--igmp"></a>`nftables::rules::igmp`

allow incoming IGMP messages

### <a name="nftables--rules--ldap"></a>`nftables::rules::ldap`

manage in ldap
Expand Down Expand Up @@ -840,6 +846,10 @@ Data type: `String`

Default value: `'10'`

### <a name="nftables--rules--out--igmp"></a>`nftables::rules::out::igmp`

allow outcoming IGMP messages

### <a name="nftables--rules--out--imap"></a>`nftables::rules::out::imap`

allow outgoing imap
Expand Down
8 changes: 8 additions & 0 deletions manifests/rules/igmp.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#
# @summary allow incoming IGMP messages
#
class nftables::rules::igmp {
nftables::rule { 'default_in-igmp':
content => 'ip daddr 224.0.0.22 accept',
}
}
8 changes: 8 additions & 0 deletions manifests/rules/out/igmp.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#
# @summary allow outgoing IGMP messages
#
class nftables::rules::out::igmp {
nftables::rule { 'default_out-igmp':
content => 'ip daddr 224.0.0.22 accept',
}
}
2 changes: 2 additions & 0 deletions spec/acceptance/all_rules_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ class { 'nftables':
include nftables::rules::multicast
include nftables::rules::spotify
include nftables::rules::mdns
include nftables::rules::igmp
include nftables::rules::out::igmp
include nftables::services::dhcpv6_client
include nftables::services::openafs_client
nftables::set{'my_test_set':
Expand Down
Loading