Disclosed in embodiments of the present application are a
packet forwarding method, an electronic device, a storage medium, and a program product. The
packet forwarding method comprises: receiving a virtual routing and forwarding packet sent by a
private network device, wherein the virtual routing and forwarding packet carries first target address information; on the basis of the first target address information, determining a first
service flow corresponding to the virtual routing and forwarding packet; on the basis of the first
service flow and a preset association relationship, determining a first network tunnel corresponding to the virtual routing and forwarding packet, wherein the preset association relationship is a correspondence between identification information of a
service flow and a network tunnel, and the identification information of the service flow comprises first identification information of the first service flow; and forwarding, by means of the first network tunnel, the virtual routing and forwarding packet to a target network device corresponding to the first target address information.