There is no way to prevent this condition.
Nodules may drain an oily solution and pus.
When to See Doctor
Consult a doctor if you experience symptoms like
Thickened and woody skin which will be tender to touch
Reddening or darker, brownish pigmentation on the skin
Raised nodules or lumps under the skin