A non-transitory computer-readable medium comprising program code instructions stored thereon for implementing a method for configuring a firewall equipment in a first communication network when the instructions are executed by a processor of a configuration device, wherein the first communication network is managed by an access equipment for accessing a second communication network, and wherein the instructions configure the configuration device to:
- obtain characteristic information of a user equipment in said first communication network by analyzing active interfaces of the user equipment in said first communication network;
- generate at least one configuration rule for configuring the firewall equipment on the basis of the obtained characteristic information and of a predetermined configuration model;
- and
- transmit, to the firewall equipment, an update command message to update a configuration of the firewall equipment, comprising said at least one generated configuration rule.