First, I would ensure that there were multiple exits from my underground domain, some secret, all guarded. Second, I would have a series of "buffer caverns" close to the surface, with lookouts posted. If an enemy force invades, the lookout collapses the cavern on their heads (via a pre-rigged trap) and retreats to sound the alarm. Even if the cavern collapse doesn't kill the intruders, it will block that passage and give the goblins time to prepare their defenses, or escape if the invaders are too powerful. Also, the buffer caverns can be staging points for raids down the mountainside.
If there are natural obstructions underground, such as small tunnels, underground rivers, or gaping chasms, I would turn those into choke points. Make the goblin warrens have four or five foot ceilings, meaning that the denizens and their wargs manuever fine, but anything Medium-sized (tall) and up is hampered by the low roof, providing negative circumstance modifiers to their attacks, and potentially making it impossible to use weapons of Large or greater size. Bridges across underground rivers and chasms can be guarded by archers, with or without poisoned arrows (depending on the toughness of the PCs), and those archers can use the bridges themselves as traps - when the PCs charge across, have them cut the ropes and fall back.
Wargs won't be much help as mounts indoors, but murder holes will be deadly. You can make the PCs fight for every foot they gain. Depending on the level of difficulty you're shooting for, the murder holes can protect goblins who are prepared to lob alchemist's fire, tanglefoot bags, poisoned arrows, burning pitch, tar, or oil, scalding water, etc. The goblins in the holes will have 9/10th cover, making it nearly impossible to strike them back directly.
If you want to be *really* nasty, have the goblins send skirmish forces after the PCs every few hours, eliminating any opportunity the PCs have to rest and recoup spells.
Finally, don't overlook magic. Goblin clerics, wizards, or even NPC adepts can be threatening, especially if they appear at the back of a goblin horde during a pitched battle. I'd shoot for spells that buff their champions and hinder the PCs. A great tactic is to have them cast silence on a goblin champion or chief before he wades into combat, making it hard for the party to heal wounded fighters.
Hope that helps.