Under Scotland’s access rights, you can ‘wild’ camp, but should adhere to the Scottish Outdoor Access Code ad seek permission from the landowner before setting up camp. You can find the code, and what is meant by ‘wild’ camping, by following this link: http://www.outdooraccess-scotland.scot/practical-guide-all/camping.
It is worth noting that these rights do not extend to campervans. If you are travelling by motorhome or campervan, stick to designated campsites or overnight parking places and never take your vehicle off-road unless you have the landowner’s permission. If public or private landowners restrict or regulate parking on their land, you must comply with this.