Tags
malware activity virus scope autoruns Proxy servers fallback flag Inactive discovered devices SNMP Apple Device Enrollment Program set up service explorer manually deploy Comodo EDR agent parent process multiple ticket selection selected tickets security events folder transfer discoveries network management remote folder TLS TLS1.2 pci dss pci compliance ITarian Portal Endpoint Manager vdi environment vdi clone environment instant clone documentation vendor notice security dashboard events resolution remote tool partner onboard itarian unknown file hunter TLS Encryption procedure parameters pass profiles history performance metrics real time remote endpoints download browse service URL Security Components system Global Software Inventory 2 minutes Integrate intagrate Active Directory Portable Interception SSL enable reporting Rule Threat Protection Rule Advance spam Customize archived outgoing incoming administrator validate domains add Antispam type PCI data loss Location Network information start software session extensions appoinments resource connection computers Comodo Rescue Disk infected opportunity opportunities custom relationship management quote COMODO-CRM protect mac device email notifications registry COM Quarantined point system restore msi contained applications processes security client events Release date department registration particular os section Two Factor Authentication Login interface dashboard report generate Direct Download Link One drive Google drive HIPS mode cleanup automatic suspicious suspicious certificates shellcode injection detect Elevated Access system user access default charging groups move current malware list store push IP address ip installer acronis auto-remediation server machine icon Product Logos Rebrand backup Device Control data Chromoting WebRTC ports Protocol skip offline manual time entries ticket assignee Help Guide Tour schedule Reschedule appointment unknown application protection virtual desktop Local Verdict server manage calculation cost configuration charging SD contract prepaid hours products classification inventory analyze Device list OS patches global search bar Tool bar Windows Defender Security Center file group white Citrix record SPF work billable time onsite email template template variables emails Gmail SMTP disable Add collaborators admin action Audit logs feature requests submit vote remotely Reset proxy swg secure web gateway dome error disk ticket detail page thread section tickets section internal notes Sub-help topic help topic features Application control white_list Patch Management child parent scheduled customized get to headers columns company restrict customer technician remote access list iOS devices field Reports iOS device APN Certificate MAC OS X options Linux block Comodo Client Communication (CCC) allow Comodo Client Security (CCS) network zones active component tray icon hide show packages additional install block port baseline installation package bulk implement restrict firewall endpoints security and communication global export virus import Database folders files define exclusions change staff admin rating check reassign assign permissions new role create for user of device enroll associated use how profile specific Removing Devices Uninstall windows profile Configuration templates latest version clients comodo file ratings monitoring custom All Devices Ratings Track widgets Agent valkyrie malware files Kill chain report automated establishing endpoint remote session Users prevent Android organization windows assets Mac OS billing identified threats Sort Closed inside Program executed containment service desk remote control Locally runs update scan antivirus SLA Business Hours control CCS Password access Client Auto Specific Device Response Application Third party Status View Logs intended devices alert fails Company Information Configure Verdict Patch Procedures Executable Comodo Internet Security ITSM Analysis Command Line Heuristic Filter Unrecognized Trusted File Rate Malicious Purge Calendar Device Exclusion USB Admin Panel Settings ticket Default system-wide Specific Path Details Monitor Multi Set Currency Connected Who Quick Actions Comparison Version Enterprise Managed Service Provider C1 Portal Remote management Comodo Remote Control ticket management staff panel assign tickets
More

How to create a custom firewall rule set in a Windows profile

Release Time
07/02/2017
Views
1362 times
Category
profiles
Tags

  • A firewall ruleset is a collection of one or more firewall rules. Each rule in a set outlines an application's permissions regarding a specific type of traffic.
     
  • At the simpler end of the spectrum, a firewall rule can just allow or block internet access for a certain application. You can also create complex rules that implement specific actions based on traffic direction, protocol, source/destination port, and more.
     
  • You can add multiple rules to a single ruleset. Rules nearer the top of the list have priority in the event of a settings conflict.
  • This article explains how to create custom ruleset in a Windows profile.
     
  • See Firewall Rules Explained at the end of this page if you want more help to construct a rule.

Use the links below to jump to the task you need help with:

Create a firewall ruleset

  • Login to ITarian
     
  • Click 'Applications' > 'Endpoint Manager'
  • Click ‘Configuration Templates’ > ‘Profiles’
     
  • Open the Windows profile applied to your target devices
     
    • Open the 'Firewall' tab if it has already been added to the profile

      OR
       
    • Click 'Add Profile Section' > 'Firewall' if it hasn't yet been added:
       
  • Open the 'Rulesets' tab:



     
  • Click 'Add Ruleset' to create a new custom ruleset:


     
  • Name - Enter a label for the ruleset. Choose a name that describes the action and/or targets of the rule. For example, ‘Block instant messenger apps’.
     
  • Next, add and configure the individual rules for the ruleset. You have a couple of options here:
     

...or a mixture of both the above.

Copy rules from an existing rule set and modify them

  • You can create a ruleset from the ground up by configuring its individual rules, but this practice may prove time consuming.
     
  • An easier method is to copy an existing ruleset then modify its rules to suit your needs. You can also add additional rules as required.
     
  • You can also copy rules from the ruleset which is applied to another application or application group.
     
  • Choose the type of source ruleset from the 'Copy from' drop-down  



     
    • Ruleset - Choose a pre-defined ruleset from the menu to the right:




       
    • Another Application - The drop-down shows rulesets configured for specific applications/filegroups. You also view these in the 'Application Rules' tab. Choose the application rule set from which you want to import your rules


 

The rules are imported with their existing priority. If a piece of traffic is covered by more than one rule, then the rule highest in the list takes priority. You can change the rule order as required:


 

  • Click 'Add' to append the ruleset with new rules
     
  • Click the pencil icon beside a rule to edit it.
     
  • Select a rule and click 'Move Up' or 'Move Down' to change its priority order
     
  • Select a rule and click 'Remove' to delete a rule from the ruleset. 
     
  • Click 'OK' to add the ruleset
     
  • Click 'Save' in the Firewall settings pane to save the ruleset to the profile  

Create and edit individual firewall rules

  • Click 'Add' in the 'Firewall Ruleset' dialog:


     
  • You configure custom rules by defining the target traffic, and the action you want to take on that traffic.
     
  • Traffic conditions include the protocol, direction, source and destination address, and source/destination port.
     
  • If you are unsure about the settings in this area, we advise you first gain some background knowledge by reading Firewall Rules Explained.

    General Settings
     
    • Action: How the firewall should respond when the conditions of the rule are met. Options available are 'Allow' (Default), 'Block' or 'Ask'.
       
    • Protocol: Specify which connection method the data packet should be using. The available options are 'TCP', 'UDP', 'TCP or UDP' (Default), 'ICMP' or 'IP'
      .
      • Note: Your choice here alters the choices available to you in the tab structure on the lower half of the interface.
         
    • Direction: Specify whether the traffic should be inbound, outbound, or both directions. The options are 'In', 'Out' or 'In/Out' (Default).
       
    • Log as a firewall event if this rule is fired: Creates a firewall event log on the device whenever this rule is called into operation (i.e. when ALL conditions have been met). Default = Disabled.
       
    • Description: Type a friendly name for the rule. Name the rule by its intended purpose – e.g. 'Allow Outgoing HTTP requests'. If you create a friendly name, then this is shown instead of the full actions/conditions in the 'Firewall Ruleset' dialog.

     Protocol

     i. 'TCP', 'UPD' or 'TCP or UDP'

     If you select 'TCP', 'UPD' or 'TCP or UDP' as the protocol, then you also have to set the source and destinations:


 

Source Address and Destination Address:

  • Any - Defaults to an IP range of 0.0.0.0- 255.255.255.255 to allow connections from all IP addresses.
     
  • Host Name - Enter the name in the 'Host Name' text field
     
  • IPv4 Address Range - Enter the first and last IP addresses in the 'Start IP' and 'End IP' text boxes.
     
  • IPv4 Single Address - Choose a single IPv4 address
     
    • Enter the IP address in the 'IP' text box, e.g., 192.168.200.113.
       
  • IPv4 Subnet mask -  Choose an IPv4 network. IP networks can be divided into smaller networks called sub-networks (or subnets).
     
    • Enter the IP address and mask of the network.
       
  • IPv6 Address Range - Choose all IPv6 addresses covered by a range - for example a segment in your private network
     
    • Enter the first and last IPv6 addresses in the 'Start IP' and 'End IP' text boxes.
       
  • Single IPv6 Address - Choose an IPv6 address
     
    • Enter the IP address in the 'IP' text box, e.g., 3ffe:1900:4545:3:200:f8ff:fe21:67cf.
       
  • IPv6 Subnet Mask - Choose a IPv6 network. IP networks can be divided into smaller networks called sub-networks (or subnets).  
     
    • Enter the IP address and 'Mask' of the network in the respective fields
       
  • MAC Address - Choose a single source/destination by specifying its physical address
     
    • Enter the address in the 'MAC Address' text box.
       
  • Network Zone - Choose an entire network. This menu defaults to Local Area Network. You can also define your own zones in the firewall section of a profile. See https://wiki.itarian.com/frontend/web/topic/how-to-configure-network-zones-in-a-windows-profile for help on creating custom network zones
     
  • Exclude (i.e. NOT the choice below) - Applies the action to all items except the one you specify.  For example - create a block rule, specify an IP address, then select 'Exclude'. The rule will block traffic for every address except the one you specified.

Source and Destination Ports




 

  • A port Range - Specify a set of ports covered by a range.
     
    • Enter the first port number and last port number in the respective fields
       
  • A set of ports - Choose a predefined Port Set. Predefined port sets are created and managed under the 'Port Sets' tab in the firewall section of a profile. See https://wiki.itarian.com/frontend/web/topic/how-to-configure-port-sets-in-a-windows-profile   if you want mode details on creating and managing port sets.
     
  • A single port - Specify a one port number
     
    • Enter the single port number in the 'Port' drop-down combo-box.
       
  • Any - Apply the rule to any port number - set by default, 0- 65535.

ii. ICMP

ICMP (Internet Control Message Protocol) packets contain error and control information to announce network errors, congestion, timeouts, and to assist in troubleshooting. It is mainly used for traces and pings. Pinging is frequently used to perform a quick test before initiating communications.

If you select 'ICMP' as the protocol, then you also have to set the source and destination addresses and ICMP details. The source and destination addresses can be configured as explained above.

    ICMP Details


 

  • Type -  Choose the ICMP version
     
  • Message - Specify the type of the ICMP message.

When you select a particular ICMP message, the menu defaults to set its code and type as well. If you select the ICMP message type 'Custom' then you are asked to specify the code and type.

iii. IP

If you select 'IP' as the protocol, then you also have to set the source and destination addresses and IP details. The source and destination addresses can be configured as explained above.

   IP Details


 

  • IP Protocol - Select the type of IP protocol
     
  • Click OK in the 'Firewall Rule' dialog to add the rule to the ruleset
     
  • Repeat the process to add more firewall rules

The rules will be added to the list. You can re-order, remove and edit the rules as explained above.

Firewall Rules Explained

  • At their core, each firewall rule is a simple IF THEN trigger - a set of conditions that a packet of data must meet, and an action that is taken if those conditions are met.
     
  • Comodo firewall analyzes the attributes of every packet of data that attempts to enter or leave the host. Attributes of a packet include the application that is sending or receiving the packet, the protocol it is using, the direction in which it is traveling, the source and destination IP addresses, and the ports it is attempting to traverse.
     
  • The firewall looks for a rule that matches all packet attributes so it can decide whether it should be allowed or not. If there is no matching rule, then the connection is automatically blocked until a rule is created.

The conditions (attributes) of a rule depend on the protocol it addresses.

  • 'TCP', 'UDP' or 'TCP and UDP' -  rules have the form: Action |Protocol | Direction |Source Address | Destination Address | Source Port | Destination Port
     
  • ICMP' - rules have the form: Action | Protocol | Direction | Source Address | Destination Address | ICMP Details
     
  • 'IP' -  rules have the form: Action | Protocol | Direction | Source Address | Destination Address | IP Details

You should now specify the traffic covered by the rule, and the action is taken if all conditions are met:​​​​

  • Action: The action the firewall takes when the conditions of the rule are met. The options are 'Allow', 'Block' or 'Ask'.
     
  • Protocol: The connection method that the application is attempting to use. Options are 'TCP', 'UDP', 'TCP or UDP', 'ICMP' or 'IP'
     
  •  Direction: Choose whether the rule applies to inbound traffic, outbound traffic, or both. Options are 'In', 'Out' or 'In/Out'
     
  •  Source Address: The origin of the connection attempt. The rule shows 'From' followed by one of the following: IP, IP range, IP Mask, Network Zone, Host Name or Mac Address
     
  • Destination Address: The target of the connection attempt. The rule shows 'To' followed by one of the following: IP, IP range, IP Mask, Network Zone, Host Name or Mac Address
     
  • Source Port: The port number that the application is attempting to send through. Shows 'Where Source Port Is' followed by one of the following: 'Any', 'Port #', 'Port Range' or 'Port Set'
     
  • Destination Port: The ports on the remote host that the application is trying to connect to. Shows 'Where Source Port Is' followed by one of the following: 'Any', 'Port #', 'Port Range' or 'Port Set'
     
  •  ICMP Details: The Internet Control Message Protocol (ICMP) message must be detected to trigger the action. It only applies if the protocol is ICMP. See Create and edit individual firewall rules for details of available messages that can be displayed.
     
  • IP Details: The type of internet protocol (IP) that must be detected to trigger the action. See Add and Edit a Firewall Rule to see the list of available IP protocols that can be displayed here.

Once a rule is applied, Comodo Firewall monitors all network traffic relating to the chosen application and takes the specified action if the conditions are met.