Jump to content

Recommended Posts

Posted

Hi

Using the link below, I'm trying to add two data sets to the respond policy below with no luck. The reason I have two data sets is because I'm using IPV6 and IPV4 addresses.

I've tried the following, 

!CLIENT.IP.SRC.TYPECAST_TEXT_T.CONTAINS_ANY("ds_SMTPAllowIPV4") && !CLIENT.IP.SRC.TYPECAST_TEXT_T.CONTAINS_ANY("ds_SMTPAllowIPV6")

 

New to creating the responder policies

Thanks

Derek

Article - 3a. Citrix ADC - Responder ...

  • Solution
Posted

hello,

tested below and it worked.

exp: (CLIENT.IP.SRC.TYPECAST_TEXT_T.CONTAINS_ANY("ds_1") || CLIENT.IP.SRC.TYPECAST_TEXT_T.CONTAINS_ANY("ds_2")).NOT


add policy dataset ds_1 ipv4
add policy dataset ds_2 ipv6
bind policy dataset ds_1 4.4.4.4 -index 1
bind policy dataset ds_1 4.4.4.5 -index 2
bind policy dataset ds_1 192.168.68.1 -index 3
bind policy dataset ds_2 AA:aa:aa:: -index 1
bind policy dataset ds_2 AF:aa:aa:: -index 2

add responder action you_blocked respondwith "\"your IP blocked\""
add responder policy DS_test "(CLIENT.IP.SRC.TYPECAST_TEXT_T.CONTAINS_ANY(\"ds_1\") || CLIENT.IP.SRC.TYPECAST_TEXT_T.CONTAINS_ANY(\"ds_2\")).NOT" you_blocked

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...