5. Procedure – Enabling virus filtering in HTTP
Purpose:
To configure virus filtering in the HTTP traffic with common parameter values, create an HttpProxy class which stacks ZCV to inspect the downloaded data. Complete the following steps.
These settings instruct the new HttpProxy to pass all responses (downloaded data) to the specified stacking provider — that is, to ZCV to scan everything downloaded via HTTP for viruses. Zorp will stack the stacking provider for every response (response_stack) that will scan the data part of the message for viruses.
Steps:
Navigate to the ZMC component of the firewall host.
Select the
tab, then click .Select the
template from the left panel, and enter a name for the new class. Name this classHttpVirusProxy
and click .Add the
self.response_stack
attribute to the panel.Select this new attribute, then click
.Enter the
*
(asterisk) character, then click .Click on the text in the
field, then selecttype_http_stk_data
.Click
, then select the second row of the appearing panel (the one havingzorp_stack
in its field). Click .Configure the proxy to send the incoming data to ZCV.
Select
.In the
field, select the stacking provider policy (for example,zcv
) created in Procedure 4, Making ZCV available for Zorp services.In the
field, select the rulegroup (for example,http
) created in Procedure 4, Making ZCV available for Zorp services.Click
.
Python: Create an HttpProxy class which stacks ZCV to inspect the downloaded data.
class HttpVirusProxy(HttpProxy): def config(self): HttpProxy.config(self) self.response_stack["*"]=(HTTP_STK_DATA, (Z_STACK_PROVIDER, "ZCV", "http"))
Create a service that clients can use to access the Internet.
Select
, and enter a name for the service (for example,intra_HTTP_inter
).Select
.Configure the other parameters of the service as needed for your environment, then click
.Select
, and select the service created in the previous step.Configure the other parameters of the rule as needed for your environment, then click
.
Python: Create an HttpProxy class which stacks ZCV to inspect the downloaded data.
def demo_instance() : Service(name='demo_instance/intra_http_inter', router=TransparentRouter(), chainer=ConnectChainer(), proxy_class=HttpVirusProxy, max_instances=0, max_sessions=0, keepalive=Z_KEEPALIVE_NONE) Rule(rule_id=1, src_zone=('*', ), dst_zone=('internet', ), proto=6, service='demo_instance/intra_http_inter' )
Commit and upload the changes, then restart Zorp.
Published on May 30, 2024
© BalaSys IT Ltd.
Send your comments to support@balasys.hu