Skip to content

Commit

Permalink
Fix add prerouting check
Browse files Browse the repository at this point in the history
  • Loading branch information
pappz committed Dec 5, 2023
1 parent 3861c9a commit c5c3eff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/firewall/nftables/acl_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ func shouldAddToPrerouting(proto firewall.Protocol, dPort *firewall.Port, direct
return false
}

if dPort == nil {
if dPort == nil && proto != firewall.ProtocolICMP {
return false
}
return true
Expand Down

0 comments on commit c5c3eff

Please sign in to comment.