If you need something to eat, it is hardly possible to suggest anything. If there were edible substances which would automatically repel mosquitoes and fleas, the species would probably have died out by now, as everyone would be consuming whatever it was to repel them...