In order to prevent that your HD in your NAS gets completely filled with TimeMachine files. do the following to limit the space to 500GB.
- Create a share called TimeMachine
- Create a limited user called timemachine
- Limit the quota for this user to 500 GB
- Goto Shares, Edit share as below
- Now activate TimeMachine in your iMac using above credentials.