emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/nftables-mode 242fae1e71 11/41: limit ICMP by type, tw


From: Stefan Monnier
Subject: [elpa] externals/nftables-mode 242fae1e71 11/41: limit ICMP by type, tweak notes, expand on iif vs iifname, document "flush table" gotcha
Date: Mon, 23 May 2022 09:27:22 -0400 (EDT)

branch: externals/nftables-mode
commit 242fae1e7171012c0fb7ceb9a2d8b10faa5ddfa8
Author: Trent W. Buck <trentbuck@gmail.com>
Commit: Trent W. Buck <trentbuck@gmail.com>

    limit ICMP by type, tweak notes, expand on iif vs iifname, document "flush 
table" gotcha
---
 nftables-host.nft | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/nftables-host.nft b/nftables-host.nft
index d218446a4f..842ee961b4 100644
--- a/nftables-host.nft
+++ b/nftables-host.nft
@@ -204,17 +204,22 @@ table inet my_filter {
     map ICMP_policy {
         type icmp_type : verdict
         flags interval
-        elements = {            #FIXME: icmp type 5 12 13 14 40
-            destination-unreachable: accept, # RFC 4890 4.3.1 essential errors
-                      time-exceeded: accept, # RFC 4890 4.3.1 essential errors
-                  parameter-problem: accept, # RFC 4890 4.3.1 essential errors
-                       echo-request: accept, # RFC 4890 4.3.1 echo (ping)
-                         echo-reply: accept, # RFC 4890 4.3.1 echo (ping)
-                      source-quench: drop,   # deprecated
-                            1 -   2: drop,   # unassigned
-                            6 -   7: drop,   # deprecated / unassigned
-                            9 -  10: accept, # RFC 4890 4.3.3 & 4.4.1 (IRDP - 
alternative to DHCPv4??)
-                           15 - 255: drop,   # deprecated / unassigned / 
reserved / experimental
+        elements = {
+            destination-unreachable: accept,   # RFC 4890 4.3.1 essential 
errors
+                      time-exceeded: accept,   # RFC 4890 4.3.1 essential 
errors
+                  parameter-problem: accept,   # RFC 4890 4.3.1 essential 
errors
+                       echo-request: accept,   # RFC 4890 4.3.1 echo (ping)
+                         echo-reply: accept,   # RFC 4890 4.3.1 echo (ping)
+               router-advertisement: accept,   # RFC 4890 4.3.3 & 4.4.1 (IRDP 
- alternative to DHCPv4??)
+                router-solicitation: accept,   # RFC 4890 4.3.3 & 4.4.1 (IRDP 
- alternative to DHCPv4??)
+                           redirect: drop,     # RFC 4890 4.3.3 & 4.4.4 
Redirect
+                      source-quench: drop,     # deprecated
+                            1 -   2: drop,     # unassigned
+                            6 -   7: drop,     # deprecated / unassigned
+                           15 -  39: drop,     # deprecated / unassigned / 
reserved / experimental
+                           41 - 255: drop,     # deprecated / unassigned / 
reserved / experimental
+                           13 -  14: continue, # FIXME Timestamp / Timestamp 
Reply???
+                                 40: continue, # FIXME Photuris???
         }
     }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]