Forum Discussion
Tim_V
Apr 20, 2021Nimbostratus
To clarify the last sentence, I know how to create the data group list, how to I add it into the iRule.
- SanjayPApr 20, 2021Nacreous
something sort of below. Modify datagroup name accordingly
when HTTP_REQUEST priority 100 { if { ( [string tolower [HTTP::host]] equals "1000-t01.DOMAIN.COM" ) and ( not ( [class match [IP::client_addr] equals COMPANY-1000-CUSTOMER-DG-Allow ] or [class match [IP::client_addr] equals newmonitorcompany-DG-Allow] ) ) } { # log local0. "Invalid CUSTOMER client IP: [IP::client_addr] - Blocking traffic" HTTP::respond 200 content [ifile get COMPANY_ip_forbidden] after 50 drop event disable } }