Foreign upstream gateway for remote maintenance