To give you a more specific answer, could you clarify what you mean by "inside" and "environment"? For example, are you thinking about:
* A cell? The cell membrane is the barrier between the inside of a cell and its external environment.
* A human body? The skin is a barrier between the inside of the body and the external environment.
* A building? The walls, roof, and windows act as barriers between the inside of the building and the external environment.
* A computer? The case acts as a barrier between the internal components and the external environment.
Once you provide more context, I can give you a more specific answer.