BoxCollider have to go throught other BoxCollider

The problem is i need a BoxCollider(of heroes) to interact with BoxCollider(of enemies) and do not interact (pass throught) BoxColliders of heroes.
Any ideas?
Tnx.

Make 2 Layers, e.g. HeroesLayer and EnemiesLayer. Assign your Heroes-GameObjects the HeroesLayer and the Enemies-GameObjects the EnemiesLayer.

Then in project settings → Physics2D → Layer Collision Matrix edit the Matrix so that the checkbox HeroesLayer/EnemiesLayer is checked and the checkbox HeroesLayer/HeroesLayer is not.