Added mask to allow non-local connections