How to allow only specified IP subnets to access LB virtual server with responder policy in NetScaler?
1.Put all the IP subnets that will be allowed in a dataset.
add policy dataset src_ip ipv4
bind policy dataset src_ip 192.128.0.0/10
bind policy dataset src_ip 10.10.0.0/10
Reference link :
2. create a responder policy
enable ns feature RESPONDER
add responder policy Block_bad_ip_pol "CLIENT.IP.SRC.TYPECAST_TEXT_T.EQUALS_ANY(\"src_ip\").NOT" RESET
3.bind the policy to LB Virtual Server
bind lb vserver <lb_vserver_name> -policyName Block_bad_ip_pol -priority 100 -gotoPriorityExpression END -type REQUEST