This what we have in Sweden....
In Sweden allemansrätten (lit. "everyman's right") is a freedom granted by the Constitution of Sweden. Since 1994 the Instrument of Government says that notwithstanding the right to own property "everyone shall have access to nature in accordance with allemansrätten". What this means is not further explicated on in the constitution, and only sparsely in other legislation. The concept was introduced in the 1940s as a customary law. With the increased living standard in Sweden during the early 20th century—and with the introduction of mandatory holidays—the government wanted to encourage outdoor access and a healthy lifestyle for its citizens. As in other Nordic countries, the Swedish right to roam comes with an equal emphasis being placed upon the responsibility to look after the countryside; the maxim is "do not disturb, do not destroy".
Allemansrätten gives a person the right to access, walk, cycle, ride, ski, and camp on any land—with the exception of private gardens, the immediate vicinity of a dwelling house and land under cultivation. Restrictions apply for nature reserves and other protected areas. It also gives the right to pick wild flowers, mushrooms and berries (provided one knows they are not legally protected), but not to hunt in any way. Swimming in any lake and putting an unpowered boat on any water is permitted unless explicitly forbidden. Visiting beaches and walking by a shoreline is permitted, providing it is not a part of a garden or within the immediate vicinity of a residence (legally defined as the hemfridszon). According to legal practice this is between 100 to 300 metres from a dwelling house. To better protect access to water and the right to walk along beaches, it is since 1975 generally not permitted to build a new house near (generally 100 m) from a beach and/or shoreline.
Fishing remains essentially private—apart from on the biggest five lakes and the coast of the Baltic Sea, the Sound, Kattegat and Skagerrak. Access to land by means of motor vehicles is prohibited. It is not permitted to drive a car on a private road, or to camp in a caravan on such roads, or on private parking places. This means in reality that caravan camping is best done on camping places (or rest areas along roads, even though it is not recommended). At certain times of the year, and with certain restrictions, both small camp-fires and unleashed dogs are permitted. It is allowed to put up a tent on any land that is not a private garden for one night, even without permission.
Exercise of the rights is overseen by the Environmental Protection Agency—which can, for example, force the removal of a fence if it obstructs people's right to enter the property under allemansrätten.