Révision 15aaf3c5
Allow only specific icmp types
- Rate limit the echo-requests
- Allow icmp types (w/o rate limit) which are protocol relevant
files/config/puppet-filter.nft | ||
---|---|---|
6 | 6 |
ct state established,related accept |
7 | 7 |
ct state invalid drop |
8 | 8 |
|
9 |
ip protocol icmp limit rate 4/second accept |
|
10 |
ip6 nexthdr ipv6-icmp limit rate 4/second accept |
|
11 |
ip protocol igmp limit rate 4/second accept |
|
9 |
ip protocol icmp icmp type { destination-unreachable, time-exceeded, parameter-problem } accept |
|
10 |
ip6 nexthdr ipv6-icmp icmpv6 type { destination-unreachable, packet-too-big, time-exceeded, parameter-problem, mld-listener-query, mld-listener-report, mld-listener-reduction, nd-neighbor-solicit, nd-neighbor-advert, ind-neighbor-solicit, ind-neighbor-advert, mld2-listener-report } accept |
|
11 |
ip protocol icmp icmp type echo-request limit rate 4/second accept |
|
12 |
ip6 nexthdr ipv6-icmp icmpv6 type echo-request limit rate 4/second accept |
|
12 | 13 |
} |
13 | 14 |
|
14 | 15 |
chain INPUT { |
Formats disponibles : Unified diff