I read this book some years ago. It was probably a paperback book in the library. It is not Starship troopers or the Ender series or the "Sand ??" series that CoPilot suggested that appears to be the only one with both portals and hostile insectoids that CoPilot knows about.
this book used portals/wormholes for FTL travel. Portals could not be created only discovered. They were stable and permanent. There was only one portal from/to our solar system. It went to Alpha Centauri. The Centauri system had multiple portals to different star systems.
Book also had relentlessly hostile insect race. This race seemed to have a Borg-like hive mind. (there is no allusion to Borg in the novel.) They were instantly hostile to any sentient race they encountered. The book would have occasional paragraphs of how the insect race thought. They always referred to their opponents as some kind of enemy. The "Bugs" had 5 "worlds that must be defended" that were home bases. There the bugs bred and built ships, weapons etc.
Opposing the bugs was an alliance of species including humans. Some of these races appeared to have been at war with humans in earlier books of the series before the bugs forced them to unite against them.
One of the things human ships did was explore any system that could be reached by a portal for additional portals. These unoccupied systems may not have had any planets or at least any habitable ones. One ship was exploring a system that was 9 jumps away from the "nearest" (of jumps not actual distance) alliance system. They found another portal and jumped. This 10th jump brought them to one of bugs home bases. The portal was also a rare one-way portal. One way visibility not one-way travel. The bugs would not be able to find the portal unless they observed someone using it.
The alliance scout observed the situation carefully then started back to alliance system. Unfortunately for them the bugs had discovered the 5th system in the chain and they were almost destroyed. Somehow they escaped and made it back to an alliance system. Eventually a fleet of alliance ships retraced the route and used some planet-killing weapon to destroy the bugs on the home world. (perhaps by burning the atmosphere). The shock of losing so many bugs paralyzed the surviving defenses and ships allowing the alliance to destroy most of the planetary defenses. When a fleet of bugs arrived from another system, they were not affected by the carnage and the alliance ships jumped back toward home.
Another plot thread. A female officer is given the rank of admiral and the command of a large starship and sets off to explore another empty system. While there a fleet of bug ships attacks and the admiral's ship is fleeing the bugs but getting and getting further from the only portal they know that they could use to get back to base. Before they left an alliance world that had been occupied by bugs was being reconquered by the alliance. Rumors of inhabitants being captured, farmed and eaten were floating around.
We are then introduced to a pair of species not known to the alliance or the reader. Their ship(s) are cloaked. The bugs know these species however and refer to them as the "ancient enemy" The pair of species are an avian species (the only known one in this universe) and a furred species that look to humans remarkably similar to teddy bears. The Birds and Bears aware of the bugs ships and an unknown ship. They decide to risk an attack on the bug ships. The admiral turns around and attacks the bugs as well. Most of the bug ships are destroyed and the rest flee.
The admiral gets to introduce herself to the commanding bird and bear. The admiral's ship cannot return to base (perhaps damaged) but does go with the new potential allies to their base. Apparently the bird/bear alliance had inferior technology to bugs and humans and had only survived by withdrawing to safe territory and heavily defending any portals known to the bugs.
In the end, all of the bugs home bases are destroyed. However a few bugs withdraw to "the world that must be concealed" to try and rebuild.
a subsequent book in the series only concerns humans. There is a civil war between earth government and outlying worlds. All other races stay out of the fight.