Herbs for immunity
Your ability to fight off bacterial infection is the result of a complex immune system. It is very unlikely that supplementation with herbs could have much impact.
The best way to prevent infections is with vaccinations
and avoidance of exposures to infectious diseases through hygenic behaviors such as handwashing. Saline nasal washes may be beneficial. Probiotics are being studied currently.