Any tips on doing tech consulting job in US, while staying in India?

For someone on Green card…

How to manage this with the employer?
Do employers allow to do this?
Any tips?
Can one get paid in the US?
What would be the tax implication in US and India? Where would taxes need to be paid US, India or both?
Has anyone tried this?