Nonlinear waves in bounded media