You can achieve this using layers.
Create a new layer called Player and put your player on this layer. You can add and assign layers at the top of a prefab/gameobject in the inspector.
Then assign a new layer to your boundary objects.
Then go to Project Settings window, Physics 2D section. At bottom, look at Layer Collision Matrix. Make sure there's a checkbox for every layer that should collide with your new layers. For the boundary object layer, uncheck for every other layer than the player layer.