Can you give name of free firewall and free antivirus, preferably with open source code that does not keep logs and information that can deanonymize the user (for example, any entries (notes, logs) about the ip-addresses of connections to the node, data packets, or any keys, etc.), or another, that can deanonymize users of my entry or relay node of tor if somebody will get physical access to my computer? This question for ensuring safety users who will transmit traffic through my entry or relay node.
If you are using Linux, then the firewall that comes with your distribution. As for antivirus, you don't usually need one for Linux because it's not usually required but you can install ClamAV if you really want to.
What you really need to know is how to disable logging in each program or for the system as a whole. Since you provided no information on what kind of system that you will be using, just take that as a general guideline of what you need to research.
Well, R.I.P. ClamAV - it's still a Cisco project - so unless it will change the way as the signatures are distributed to detect a [Bundestrojaner] (https://www.sonntagmorgen.com/staatstrojaner-erkennen/) to English: federal trojan for example - it's just better than nothing, but not a remedy by itself