Software Secure Workload
Activity Configure

How to configure AppFlow on NetScaler

The following steps are for NetScaler load balancer. (Ref: Configuring AppFlow)

Procedure

1

Enable AppFlow on NetScaler.


     enable ns feature appflow

2

Add AppFlow collector endpoints.

The collector receives the AppFlow records from NetScaler. Specify the IP and port of NetScaler connector enabled on a Secure Workload Ingest appliance as an AppFlow collector.


     add appflow collector c1 -IPAddress 172.26.230.173 -port 4739

3

Configure an AppFlow action.

This lists the collectors that will get AppFlow records if the associated AppFlow policy matches.


     add appflow action a1 -collectors c1

4

Configure an AppFlow policy.

This is a rule that has to match for an AppFlow record to be generated.


     add appflow policy p1 CLIENT.TCP.DSTPORT(22) a1
     add appflow policy p2 HTTP.REQ.URL.SUFFIX.EQ("jpeg") a1

5

Bind AppFlow policy to Virtual Server.

Traffic hitting the IP of the virtual server (VIP) will be evaluated for AppFlow policy matches. On a match, a flow record is generated and sent to all collectors listed in the associated AppFlow action.


     bind lb vserver lb1 -policyname p1 -priority 10

6

Optionally, bind AppFlow policy globally (for all virtual servers).

An AppFlow policy could also be bound globally to all virtual servers. This policy applies to all traffic that flows through Citrix ADC.


     bind appflow global p2 1 NEXT -type REQ_DEFAULT

7

Optionally, template refresh interval.

Default value for template refresh is 60 seconds.


     set appflow param -templatereferesh 60

The above steps configures AppFlow on Citrix NetScaler load balancer to export IPFIX protocol packets for traffic going through NetScaler. The flow records will be sent to either 172.26.230.173:4739 (for traffic going through vserver lb1) and to 172.26.230.184:4739 (for all traffic going through the NetScaler). Each flow record includes 5 tuple information of the traffic and the byte/packet count of the flow.

The following screenshot shows a running configuration of AppFlow on a Citrix NetScaler load balancer.

Running configuration of AppFlow on Citrix NetScaler load balancer
Figure 1: Running configuration of AppFlow on Citrix NetScaler load balancer