The Server & Workload Protection Firewall is flexible and supports
restrictive or permissive configurations. Like the intrusion prevention and web
reputation modules, you can also run the Firewall module in two modes: inline or
tap. Test your Firewall rules in tap mode. After you confirm that they work
correctly, switch to inline mode.
Configure your Firewall carefully because no single set of rules fits every
environment. Understand the rule actions and priorities before you create rules. Use
extra caution with Allow rules because they implicitly deny traffic that you do not
define.
Test Firewall rules before deploying them
The Firewall module (as well as the intrusion prevention and web reputation modules)
includes a Server & Workload Protection network engine that decides
whether to block or allow packets. For the Firewall and intrusion prevention
modules, the network engine performs a packet sanity check and also makes sure each
packet passes the Firewall and intrusion prevention rules. The network engine
operates in one of two modes:
- Tap mode: Packet streams are not modified. The traffic is still processed by the Firewall and/or intrusion prevention modules, if they are enabled. However any issues detected do not result in packet or connection drops. When in Tap mode, Server & Workload Protection offers no protection beyond providing a record of events.
- Inline mode: Packet streams pass directly through the Server & Workload Protection network engine. The network engine applies all rules to network traffic before packets move up the protocol stack.
Before you deploy Firewall rules, test them in Tap mode or in Inline mode with each
rule set to Log Only. This lets you preview how the rules affect traffic without
taking action. If you do not test the rules properly, they could block all traffic
and make your computer inaccessible.
Test in Tap mode
Tap mode allows you to test your Firewall rules, without disturbing the flow of
traffic.
- Go to Computers or Policies in Server & Workload Protection.
- Open the context menu for a computer or policy, then select Details to open the Computer or Policy editor.
- Go to .
- Select Tap from the list and select Save.
- Create your rules and select OK. To check your rules, go to .
NoteIn Tap mode, you do not need to set a rule's action to Log Only.
|
Once you are satisfied with your Firewall rules, go back to the Computer or Policy
editor, select Inline from the drop-down list, and select
Save.
Test in Inline mode
Tap mode usually lets you test Firewall rules without disturbing traffic. You can
also test rules in Inline mode when you set each rule's action to Log Only. This
lets you analyze traffic without blocking or denying packets.
- Go to Computers or Policies in Server & Workload Protection.
- Open the context menu for a computer or policy, then select Details to open the Computer or Policy editor.
- Go to .
- Select Inline from the drop-down menu and select Save.
- While you’re creating your rule, set the action to Log Only.
- To check your rules, go to .
Once you are satisfied with your Firewall rules, change the action from Log Only to
your desired action and select OK.
Enable fail open behavior
In some cases, the network engine blocks packets before the Firewall rules, or
intrusion prevention rules, can take effect. By default, it blocks packets in either
of these situations:
- The agent or virtual appliance has a system problem, such as when it runs out of memory
- The packet sanity check fails
This 'fail closed' behavior offers a high level of security: it ensures that cyber
attacks cannot penetrate your network when an agent or virtual appliance is not
functioning properly, and safeguards against potentially malicious packets. The
disadvantage to 'fail closed' is that your services and applications might become
unavailable because of problems on the agent or virtual appliance. You might also
experience performance issues if the packet sanity check drops a large number of
packets unnecessarily (too many false positives).
If you have concerns about service availability, consider changing the default
behavior to allow packets through (or 'fail open') for system and packet check
failures, as explained below.
- Go to Computers or Policies in Server & Workload Protection.
- Open the context menu for a computer or policy, then select Details to open the Computer or Policy editor.
- Select Settings on the left.
- Select the Advanced tab.
- Under Network Engine Settings, set the Failure Response settings as follows:
- Set Network Engine System Failure to Fail open to allow packets through if the Server & Workload Protection network engine experiences problems, such as out-of-memory failures, allocated memory failures, and network engine deep packet inspection (DPI) decoding failures. Consider using fail open here if your agent or virtual appliance frequently encounters network exceptions because of heavy loads or a lack of resources. With fail open, the network engine allows the packet through, does not perform Intrusion Prevention rules checking, and logs an event. Your services and applications remain available despite the problems on the agent or virtual appliance.
- Set Network Packet Sanity Check Failure to Fail open to allow packets through that fail the network engine's packet sanity checks. Examples of packet sanity checks: Firewall sanity checks, network layer 2, 3, or 4 attribute checks, and TCP state checks. Consider using fail open here if you want to perform Intrusion Prevention rules checking only on 'good' packets that pass the sanity check. With fail open, the network engine allows the failed packet through, does not perform Intrusion Prevention rules checking on it, and logs an event.
- Select Save.
You have now enabled fail open behavior for system or packet check failures.
Turn on Firewall
To enable Firewall functionality on a computer:
-
In the Computer or Policy editor, go to .

Note
For information on enabling the Firewall for containers, refer to Apply your Firewall settings. -
Select On.
-
Select Save.
NoteWhen you enable the Server & Workload Protection Firewall with at least one
Firewall rule, the Agent disables the Windows Firewall automatically to prevent
conflicts.
|
Default Firewall rules
The policies that come with Server & Workload Protection include
several recommended inbound rules but no outbound rules. You can view the default
inbound rules assigned to each policy by going to the Firewall tab in
the relevant operating system policy. The example below shows the default assigned
Firewall rules for the Windows 10 Desktop policy. You can configure these Firewall
rules to meet the needs of your environment. The default rules provide a starting
point.
NoteTo minimize the impact on system performance, try not to assign more than 1,000 Firewall
rules.
It is also good practice to document all Firewall rule changes in the
"Description" field of the Firewall rule. Make a note of when and why rules were
created or deleted for easier Firewall maintenance.
|

Default Bypass rule for Server & Workload Protection Traffic
Server & Workload Protection automatically implements a
Priority 4 Bypass Rule that opens the listening port number of the
agent for heartbeats on computers running the agent. Priority 4 places this rule
before any Deny rule. Bypass guarantees that the traffic is never impaired. The
system creates this rule internally and does not show it in the Firewall rule
list.
This rule, however, accepts traffic from any IP address and any MAC address. To
harden the agent's listening ports, you can create an alternative, more restrictive,
Bypass rule for this port. The agent will override the default Server & Workload Protection traffic rule with the new custom rule
if it has these settings:
- Priority: 4 - Highest
- Packet direction: Incoming
- Frame type: IP
- Protocol: TCP
- Packet Destination Port: Agent's listening port for heartbeats
The custom rule must use the these parameters to replace the default rule. Ideally,
use the IP address or MAC address of Server & Workload Protection as
the packet source for the rule.
Restrictive or permissive Firewall design
Firewall policies typically follow one of two strategies: allow services unless you
explicitly deny them, or deny services unless you explicitly allow them. Choose the
strategy that minimizes the effort required to create and maintain rules in your
environment.
Restrictive Firewall
From a security perspective, use a restrictive Firewall. It blocks traffic by default
and allows only traffic that you explicitly permit. If your primary goal is to block
unauthorized access, focus on restricting connectivity. A restrictive Firewall is
easier to maintain and provides greater security than a permissive Firewall. Use
Allow rules only to permit specific traffic through the Firewall and deny everything
else.
NoteAs soon as you assign a single outgoing Allow rule, the outgoing Firewall will operate
in
restrictive mode. This is also true for the inbound Firewall: as soon as you
assign a single incoming Allow rule, the inbound Firewall will operate in
restrictive mode.
|
Permissive Firewall
A permissive Firewall permits all traffic by default and only blocks traffic believed
to be malicious based on signatures or other information. A permissive Firewall is
easy to implement but it provides minimal security and requires complex rules. Deny
rules explicitly block traffic.
Firewall rule actions
You can configure the Firewall to take the following actions:
WARNINGIf you assign only incoming rules, the Firewall allows all outgoing traffic. If you
assign a
single outgoing Allow rule, the outgoing Firewall operates in restrictive mode.
The Firewall permits ICMPv6 traffic unless a Deny rule blocks it.
|
| Allow |
Explicitly allows traffic that matches the rule to pass and then
implicitly denies everything else.
|
||
| Bypass |
Allows traffic to bypass both Firewall and intrusion prevention
analysis. Create Bypass rules in pairs, one for each traffic
direction. Base each rule on IP, port, traffic direction, and
protocol.
Use Bypass rules for media-intensive protocols or traffic from
trusted sources.
|
||
| Deny |
Explicitly blocks traffic that matches the rule.
|
||
| Force Allow |
If a packet matches a Force Allow rule, the system passes it but
still inspects it for intrusion prevention. The system logs no
events.
Use this Firewall rule action for UDP and ICMP traffic.
|
||
| Log only |
The Firewall logs traffic only. It takes no other action.
|
For more information about creating a Firewall rule, refer to Create a
Firewall rule.
Firewall rule priorities
Rule priority determines the order in which the Firewall applies filters. It applies
high-priority rules before low-priority rules. When rules share the same priority,
the order of precedence is Bypass, Force Allow, then Deny. A Deny action with higher
priority takes precedence over a Bypass action with lower priority. For more
information about rule priorities and actions, refer to Firewall rule actions and priorities.
To simplify the administration of Firewall rules, consider reserving certain priority
levels for specific actions. For example, apply a default of priority 3 to rules
that use Bypass, priority 2 for Force Allow rules, and priority 1 for Deny rules.
This reduces the potential for rule conflicts.
Allow rules
Set Allow rules to priority 0 so the Firewall processes them after Force Allow and
Deny rules with higher priorities. Allow rules implicitly deny traffic that does not
match them. When you assign a Deny rule, it takes precedence over all existing Allow
rules.
Force Allow rules
Use Force Allow rules for traffic that must always be allowed, such as Address
Resolution Protocol (ARP). The Force Allow action takes precedence over a Deny rule
at the same or higher priority. For example, if you have a Deny rule at priority 3
that prevents access to an allowed port number from the 10.0.0.0/8 subnet, and you
want to allow host 10.102.12.56 to access that, you must create a Force Allow rule
at priority 3 or 4 to override the Deny rule at priority 3. When a packet matches
this rule, the Firewall allows it immediately and stops processing lower-priority
rules.
Bypass rules
The Bypass rule is a special type of rule that allows a packet to bypass both the
Firewall and Deep Packet Inspection (DPI) engines. Set this rule to priority 4.
Create one rule for each traffic direction.
Recommended Firewall policy rules
TrendAI™ recommends requiring the following rules for all
Firewall policies:
- ARP: Allows incoming ARP requests so that the computer can reply to queries for its MAC address. If you do not assign this rule, no devices on the network can query the host for its MAC address and it will be inaccessible from the network.
- Allow solicited TCP/UDP replies: Allows the computer to receive replies to its own TCP connections and UDP messages. This works in conjunction with TCP and UDP stateful Firewall configuration.
- Allow solicited ICMP replies: Allows the computer to receive replies to its own ICMP messages. This works in conjunction with ICMP stateful Firewall configuration.
- DNS Server: Allows DNS servers to receive inbound DNS queries.
- Remote Access RDP: Allows the computer to accept Remote Desktop connections.
- Remote Access SSH: Allows the computer to accept SSH connections.
Test Firewall rules
Before continuing with further Firewall configuration steps, test the recommended
Firewall rules to ensure they're working correctly.
Test the remote access SSH rule:
- Test an SSH connection to the computer. If the Firewall is enabled and the Remote Access SSH rule is disabled, the Firewall denies the connection. Go to to view the denied event.
- Go to the . Under Assigned Firewall Rules, select Assign/Unassign.
- Search for Remote Access SSH and enable the rule. Select OK and Save.
- Test the SSH connection again. The Firewall should allow it.
Test the remote access RDP rule:
- Test an RDP connection to the computer. If the Firewall is enabled and the Remote Access RDP rule is disabled, the Firewall denies the connection. Go to events to view the denied event.
- Go to the . Under Assigned Firewall Rules, select Assign/Unassign.
- Search for Remote Access RDP and enable the rule. Select OK and Save.
- Test the RDP connection again. The Firewall should allow it.
Reconnaissance scans
You can configure the Firewall to detect possible reconnaissance scans and help
prevent attacks by blocking traffic from the source IPs for a period of time. After
an agent or appliance detects an attack, you can instruct agents and appliances to
block traffic from the source IPs for a period of time. Use the Block Traffic lists
on the tab to set the number of minutes.
- Computer OS Fingerprint Probe: The agent or appliance detects an attempt to discover the computer's OS.
- Network or Port Scan: The agent or appliance reports a network or port scan if it detects that a remote IP is visiting an abnormal ratio of IPs to ports. Normally, an agent or appliance sees only traffic destined for itself, so it most often detects port scans. The statistical analysis method used in computer or port scan detection is derived from the "TAPS" algorithm proposed in the paper "Connectionless Port Scan Detection on the Backbone" presented at IPCCC in 2006.
- TCP Null Scan: The agent or appliance detects packets with no flags set.
- TCP SYNFIN Scan: The agent or appliance detects packets with only the SYN and FIN flags set.
- TCP Xmas Scan: The agent or appliance detects packets with only the FIN, URG, and PSH flags set or a value of 0xFF (every possible flag set).
You can configure each agent or appliance to send attack information to Server & Workload Protection. Select Notify DSM Immediately to
trigger an alert. For this option to work, configure agents and appliances for
agent-initiated, appliance-initiated, or bidirectional communication in . When you enable this option, the agent or appliance initiates a
heartbeat to Server & Workload Protection immediately upon detecting
the attack or probe.
NoteTo enable reconnaissance protection, enable the Firewall and stateful inspection on
the Policy or
Computer Editor > Firewall > General tab. Then go to the Policy or
Computer Editor > Firewall > Advanced tab and enable Generate Firewall
Events for packets that are 'Out of Allowed Policy'. The Firewall uses these
events for reconnaissance detection.
|
NoteReconnaissance scan detection requires at least one active Firewall rule assigned
to the agent's
policy.
|
For information about handling reconnaissance warnings, refer to Warning:
Reconnaissance Detected.
Stateful inspection
When you enable the Server & Workload Protection Firewall, enable
stateful inspection too. This mechanism analyzes each packet in the context of
traffic history, correctness of TCP and IP header values, and TCP connection state
transitions. For stateless protocols such as UDP and ICMP, the Firewall uses
historical traffic analysis to provide pseudo-stateful inspection.
The stateful mechanism handles packets as follows:
- The Firewall passes a packet to the stateful routine if the packet meets the static Firewall rule conditions.
- The stateful routine checks whether the packet belongs to an existing connection.
- The stateful routine checks the TCP header for correct sequence numbers, flag combinations, and other values.
The Server & Workload Protection Firewall stateful configuration
helps protect against attacks such as denial of service when you enable stateful
inspection for TCP, ICMP, or UDP and allow only solicited replies. If you enable UDP
stateful inspection, use Force Allow when running UDP servers such as DHCP. If you
do not have a DNS or WINS server configured for the agents, you might need a Force
Allow Incoming UDP Ports 137 rule for NetBIOS.
Disable stateful logging unless you need it for ICMP or UDP protocols.
Example
Use this example to create a simple Firewall policy for a web server:
-
Enable stateful inspection for TCP, UDP, and ICMP using a global Firewall stateful configuration with these options enabled.
-
Add a Firewall rule to allow TCP and UDP replies to requests from the workstation. To do this, create an incoming Allow rule with the protocol set to TCP + UDP and select Not and Syn under Specific Flags. At this point the policy only allows TCP and UDP packets that are replies to requests initiated by a user on the workstation. For example, in conjunction with the stateful analysis options enabled in step 1, this rule allows a user on this computer to perform DNS lookups (via UDP) and to browse the Web via HTTP (TCP).
-
Add a Firewall rule to allow ICMP replies to requests originated on the workstation. To do this, create an incoming Allow rule with the protocol set to ICMP and select the Any Flags check box. This means that a user on this computer can ping other workstations and receive a reply but other users will not be able to ping this computer.
-
Add a Firewall rule to allow incoming TCP traffic to ports 80 and 443 with the Syn checkbox selected in the Specific Flags section. This means that external users can access a Web server on this computer.This policy allows solicited TCP, UDP, and ICMP replies and external access to the web server. It denies all other incoming traffic.To refine this policy, consider whether you need to restrict traffic from other computers on the network. For example, you might allow internal users to access the web server but deny access from computers in the DMZ. Add a Deny rule to block traffic from the DMZ IP range.
-
Add a Deny rule for incoming TCP traffic with source IP 10.0.0.0/24 which is the IP range assigned to computers in the DMZ. This rule denies any traffic from computers in the DMZ to this computer.To refine the policy, you might allow incoming traffic from the mail server in the DMZ.
-
Use a Force Allow for incoming TCP traffic from source IP 10.0.0.100. This Force Allow overrides the Deny rule we created in the previous step to permit traffic from this one computer in the DMZ.
Important things to remember
- The Firewall checks all traffic against its rules before the stateful inspection engine analyzes it. If traffic passes the rules, the engine analyzes it when stateful inspection is enabled in the Firewall Stateful Configuration.
- Allow rules are prohibitive. The Firewall automatically drops traffic that does not match an Allow rule. This also applies to other frame types. Include rules for any required traffic, such as ARP, unless static ARP tables are in use.
- If you enable UDP stateful inspection, use a Force Allow rule to allow unsolicited UDP traffic. For example, if you enable it on a DNS server, use a Force Allow rule for port 53 so the server can accept incoming DNS requests.
- If ICMP stateful inspection is enabled a Force Allow rule must be used to allow unsolicited ICMP traffic. For example, if you wish to allow outside ping requests a Force Allow rule for ICMP type 3 (Echo Request) is required.
- A Force Allow rule takes precedence only within the same priority context.
- If you do not have a DNS or WINS server configured (common in test environments), you might need a Force Allow incoming UDP port 137 rule for NetBIOS (Windows shares).
NoteWhen troubleshooting a new Firewall policy, first check the Firewall rule logs on
the agent or
appliance. The logs show which traffic the Firewall denies so you can refine
your policy.
|
