For our freelancers, non-compete with the client is a minimum of 2 years, and non-disclosure is indefinite. There are heavy penalties for breaching either of these.
For us, non-compete and non-disclosure with the client are indefinite, and breaching them have heavy penalties.