Tofu is an excellent vegan substitute for paneer, aka Indian cottage cheese. However, it must be firm to be used as an alternative. You get homemade tofu when you curdle boiled soya milk using lemon juice or white vinegar. It is similar to making homemade paneer from dairy milk. For more alternatives to dairy items, follow the link.