A computer program product stored on a non-transitory computer readable medium and comprising program code instructions executable by a processor for implementing a method to be implemented at a device configured to be connected to a customer premises equipment of a first type network, said first network comprising at least one network apparatus in communication with said customer premises equipment, said method comprising:
- defining one or several routing rules to route packets of said device, based on capabilities information received from the customer premises equipment and said at least one network apparatus, and
- sending commands to enforce the defined routing rules either at the customer premises equipment or at the at least one network apparatus,
- said routing rules identifying either the customer premises equipment or said at least one network apparatus to forward packets between the first type network and a second type network.