Merge pull request #516 from safing/fix/fast-tracking-icmp

Fix fast-tracking non-echo ICMP/v6 messages
This commit is contained in:
Patrick Pacher
2022-02-04 09:48:50 +01:00
committed by GitHub

View File

@@ -226,6 +226,7 @@ func fastTrackedPermit(pkt packet.Packet) (handled bool) {
// Permit all ICMP/v6 packets that are not echo requests or replies.
log.Debugf("filter: fast-track accepting ICMP/v6: %s", pkt)
_ = pkt.PermanentAccept()
return true
case packet.UDP, packet.TCP:
@@ -318,8 +319,8 @@ func fastTrackedPermit(pkt packet.Packet) (handled bool) {
if pkt.Info().Dst.Equal(compat.SystemIntegrationCheckDstIP) {
compat.SubmitSystemIntegrationCheckPacket(pkt)
_ = pkt.Drop()
return true
}
return true
}
return false