Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5d1955
commit ffc8b86
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# @summary allow incoming webservice discovery | ||
# | ||
# @param ipv4 Allow ws-discovery over IPv4 | ||
# @param ipv6 Allow ws-discovery over IPv6 | ||
# | ||
# @see https://docs.oasis-open.org/ws-dd/ns/discovery/2009/01 | ||
# | ||
class nftables::rules::wsd ( | ||
Boolean $ipv4 = true, | ||
Boolean $ipv6 = true, | ||
) { | ||
if $ipv4 { | ||
nftables::rule { 'default_in-wsd_v4': | ||
content => 'ip daddr 239.255.255.250 udp dport 3702 accept comment "accept ws-discovery"', | ||
} | ||
} | ||
if $ipv6 { | ||
nftables::rule { 'default_in-wsd_v6': | ||
content => 'ip6 daddr ff02::c udp dport 3702 accept comment "accept ws-discovery"', | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters