The function of the firewall:
The firewall scans the network traffic flowing through it, which can filter out some attacks before they are executed on the target computer. Firewalls can also close unused ports. In addition, it can also prohibit outgoing communication on specific ports and block Trojans. Finally, it can prohibit access from special sites, thus preventing all communication from unknown intruders.