A network apparatus and a
network attack blocking method thereof are disclosed. The network apparatus includes a
network interface device, a storage device, and a processor. The
network interface device connects a network. The storage device stores a block
list. The processor is coupled to the
network interface device and the storage device, and selectively allows at least one communication port to serve as a service port for connecting with an external device according to environment information of the network, receives a
network packet sent by the external device through the network by using the
network interface device, and determines whether a destination port of the
network packet is one of the service ports. If the destination port is one of the service ports, the processor establishes a connection with the external device and provides services. If the destination port is not one of the service ports, the processor blocks the connection of the external device and adds identification information of the external device to the block
list.