This does indeed sound a lot like shin splints, or medial tibial stress syndrome, as it is known medically. Medial tibial stress syndrome probably occurs as a result of inflammation of the tendons and lining over the bone of the lower leg due to the repetitive high impact trauma of running and similar athletic activities.
Unfortunately, shin splints can be a chronic problem that doesn't heal easily. The mainstay of treatment is absolute rest or switching to a low impact form of exercise such as swimming. If, however, you took a complete break for 6 months and they are now coming back that means this is something you will probably have to deal with, meaning you will need to change the types of sport you play.
Occasionally the problem is related to the anatomy of your foot. Therefore you could see an athletic shoe specialist or a podiatrist
about the possibility of special shoes or orthotics. However, this is basically your only option other than rest or change to a lower impact form of exercise.
I suggest talking to your primary care doctor
or a sports medicine doctor
about the problem, as they will be able to help you over the coming months.