AOG, a harbour is a place were different groups can find shelter.
State funding comes from the drugs trade and sympathisers who will pay money into the Afghan government to provide faciilities, organisational and logistical networks.
People from all over the world can then travel to Afghanistan via it's large porous borders, train as a soldier for their cause.
Then return to their home nation with a name and contact info for the head of the cell they are to belong to.
The command structure within Afghanistan can then coordinate whatever actions it likes safe from ground assault or police action.
A simple analogy, it was why America had to find a means to prosecute a war against Japan in 1941, thoughtfully Japan made that decision for them, an act for which Rear Admiral Foley of the U.S.S Lanikai probably owes his retirement too.