chore(gateway): remove log around "No NAT session" (#8227)

This is pretty confusing when reading logs. For inbound packets, we
assume that if we don't have a NAT session, they belong to the Internet
Resource or a CIDR resource, meaning this log shows up for all packets
for those resources and even for packets that don't belong to any
resource at all.
This commit is contained in:
Thomas Eizinger
2025-02-21 16:24:59 +11:00
committed by GitHub
parent b10b6e75ea
commit deb47d956e
2 changed files with 5 additions and 5 deletions

View File

@@ -307,7 +307,11 @@ impl ClientOnGateway {
return Ok(None);
}
TranslateIncomingResult::NoNatSession => return Ok(Some(packet)),
TranslateIncomingResult::NoNatSession => {
// No NAT session means packet is likely for Internet Resource or a CIDR resource.
return Ok(Some(packet));
}
};
let mut packet = packet

View File

@@ -102,8 +102,6 @@ impl NatTable {
return Ok(TranslateIncomingResult::ExpiredNatSession);
}
tracing::trace!(?outside, "No active NAT session; skipping translation");
return Ok(TranslateIncomingResult::NoNatSession);
}
@@ -117,8 +115,6 @@ impl NatTable {
return Ok(TranslateIncomingResult::ExpiredNatSession);
}
tracing::trace!(?outside, "No active NAT session; skipping translation");
Ok(TranslateIncomingResult::NoNatSession)
}