•
Service: all_services
3.
Select OK
3.6.8. Stateless Policy
A
Stateless Policy
is equivalent to an
IP Rule
. Both can be used to define a stateless connection,
however, using a
Stateless Policy
is the recommended method.
A stateless connection means that packets pass through the NetDefend Firewall without a state
for the connection being set up in NetDefendOS's state table. Since the stateful inspection
process is bypassed, this is less secure than a stateful connection. The traffic processing is also
slower since every packet is checked against the entire rule set.
Generally, using a
Stateless Policy
or
IP Rule
with a
FwdFast
action is not recommended because
both will yield slower traffic throughput when compared with a normal stateful connection.
However, some scenarios with certain protocols might require a stateless connection.
Note that the
Protocol
property of the
Service
object used with a
Stateless Policy
does not need to
be set to anything. The
Protocol
property is ignored with a
Stateless Policy
.
Note: By default, logging is enabled for a Stateless Policy
Like other types of policy, logging is enabled by default for a
Stateless Policy
object.
Unfortunately, this means that a log message will be generated for each packet that
triggers the rule. This is usually undesirable so it is better to disable logging on the policy.
Example 3.38. Creating a Stateless Policy
In this example, TCP packets will be sent between the internal network
lannet
and the
dmznet
network. This might be required in a real world situation because of certain traffic types causing
problems.
As with a
FwdFast
IP rule, two
Stateless Policy
objects are needed, one for each direction of traffic
flow. Instead of creating a custom
Service
object, this example will use the predefined object
all_tcp
.
Command-Line Interface
Allow stateless TCP flow from lannet to dmznet:
gw-world:/> add StatelessPolicy SourceInterface=lan
SourceNetwork=lannet
DestinationInterface=dmz
DestinationNetwork=dmznet
Service=all_tcp
Name=stateless_lan_to_dmz
Action=Allow
Allow stateless TCP flow from dmznet to lannet:
gw-world:/> add StatelessPolicy SourceInterface=dmz
SourceNetwork=dmznet
Chapter 3: Fundamentals
251
Summary of Contents for NetDefendOS
Page 30: ...Figure 1 3 Packet Flow Schematic Part III Chapter 1 NetDefendOS Overview 30 ...
Page 32: ...Chapter 1 NetDefendOS Overview 32 ...
Page 144: ...Chapter 2 Management and Maintenance 144 ...
Page 284: ...Chapter 3 Fundamentals 284 ...
Page 392: ...Chapter 4 Routing 392 ...
Page 419: ... Host 2001 DB8 1 MAC 00 90 12 13 14 15 5 Click OK Chapter 5 DHCP Services 419 ...
Page 420: ...Chapter 5 DHCP Services 420 ...
Page 573: ...Chapter 6 Security Mechanisms 573 ...
Page 607: ...Chapter 7 Address Translation 607 ...
Page 666: ...Chapter 8 User Authentication 666 ...
Page 775: ...Chapter 9 VPN 775 ...
Page 819: ...Chapter 10 Traffic Management 819 ...
Page 842: ...Chapter 11 High Availability 842 ...
Page 866: ...Default Enabled Chapter 13 Advanced Settings 866 ...
Page 879: ...Chapter 13 Advanced Settings 879 ...