In general it is legal for a security camera to film neighbors or their property. There are exceptions for privacy such as bathrooms and bedrooms. Audio recording also has separate regulations.