Hello and welcome to e health forum.
From the description provided, it seems that you are having a inflammed lymph node, as a result of localized skin infection.
You might consult a doctor for proper examination and prescription of antibiotics.
In the mean time, using Ibuprofen for pain relief might help.