The Windows firewall offers four types of rules: Program – Block or allow a program. Port – Block or a allow a port, port range, or protocol. Predefined – Use a predefined firewall rule included with Windows. Custom – Specify a combination of program, port, and IP address to block or allow.
How to write firewall rules?
Add a new rule. There are three ways to add a new firewall rule on the Policies > Common Objects > Rules > Firewall Rules page.
Select the behavior and protocol of the rule. Enter a Name and Description for the rule. Select a Packet Source and Packet Destination. Select a combination of IP and MAC addresses,and if available for the frame type,Port and Specific Flags for the Packet Source Configure rule events and alerts. When a firewall rule is triggered,it logs an event in the Deep Security Manager and records the packet data. Set a schedule for the rule. Select whether the firewall rule should only be active during a scheduled time. Assign a context to the rule. Rule contexts allow you to set firewall rules uniquely for different network environments. See policies and computers a rule is assigned to. You can see which policies and computers are assigned to a firewall rule on the Assigned To tab. Export a rule. You can export all firewall rules to a .csv or .xml file by clicking Export and selecting the corresponding export action from the list. Delete a rule. To delete a rule,right-click the rule in the Firewall Rules list,click Delete and then click OK. What are firewall rules?
Firewall rules are used to filter network traffic between the local computer and the network. To filter traffic means to allow or block traffic based on the filtering conditions specified in the rule.
What is an example of a firewall?
Software firewalls are designed to protect a computer by blocking certain programs from sending and receiving information from a local network or the Internet. The image to the right shows the icon for Windows Firewall, an example of a firewall software program included with Microsoft Windows.