firewall: forward ICMP(v6) packets
This commit is contained in:
		
							parent
							
								
									f8e8acb521
								
							
						
					
					
						commit
						7e02a13144
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		|  | @ -123,6 +123,18 @@ table inet filter { | |||
|         ct status dnat accept \ | ||||
|         comment "Forward DNAT traffic for servers and suchlike" | ||||
| 
 | ||||
|         ip protocol icmp icmp type { | ||||
|             echo-request, echo-reply, destination-unreachable, | ||||
|             parameter-problem, time-exceeded, | ||||
|         } accept \ | ||||
|         comment "Accept ICMPv4" | ||||
| 
 | ||||
|         ip6 nexthdr icmpv6 icmpv6 type { | ||||
|             echo-request, echo-reply, destination-unreachable, | ||||
|             packet-too-big, parameter-problem, time-exceeded, | ||||
|         } accept \ | ||||
|         comment "Accept ICMPv6" | ||||
| 
 | ||||
|         include "/etc/nftables.d/forward.nft*" | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue