These are caused by infection (mostly bacterial in nature) of the eyes hence for home remedy, the main management involves decreasing the inflammation and pain while waiting for it to subside.
In order to do this, mild cases may be managed by proper cleaning with sterilized water and draining if there is excessive pus near the edge of the eye. It is important to keep it sterile and avoiding contact with bare hands to avoid reinfection.
Topical creams and ointments are used in more severe cases. It essentially targets the bacteria proliferation, hence hastening the healing process.
Consult your local physician if it takes too long before it resolves itself.