The invention discloses a firewall setting method, apparatus and device, and a storage medium, and supports a user to call a firewall service interface through a client, create a firewall model containing logic firewall information, translate the logic firewall information into logic flow table information, and send the logic flow table information to the client. The logic flow table information is logic firewall information recorded in a flow table form, the logic flow table information is translated into an instruction which can be executed by the switch, and the instruction is executed by the switch so as to realize a firewall function. The logic firewall information is realized by adopting the flow table, and the firewall function can be realized through the flow table by only needingfew resources, so that the resource occupancy rate is greatly reduced compared with the existing general software firewall. Moreover, when a new firewall rule appears, only a piece of new flow table information needs to be added for the newly-added rule, and the new flow table information can be executed by the switch after translation, and the existing firewall does not need to be redeployed, sothat the firewall is simpler and quicker to update.