From history it seems that either you mght be having infected hemorrhoids or fissure in ano
producing enlarged painful lymph
nodes in groin.
Go for one course of antibiotic and anti-inflammatory medicine course.
Apply antibiotic cream locally.
Consult surgeon and get examined.
Take plenty of water.
Ok and take care.