With the CellularAutomaton function the syntax allows wrap around (aka periodic) boundary conditions and an infinite repetitive background. To have other boundary conditions, like outside forcing, then you need to implement it as part of the rule and (to be safe) add some new states to represent the boundary.
Vitaliy has some useful information in a post on the NKS forum