Please help creating this iRule to direct subnets to different paths.I would need something like below 2 samples. Please let me know if you need any other details.
when HTTP_REQUEST { if {Subnet 10.9.254.0/24 , 164.38.32.0/24, 10.10.10.0/24 etc.} forward to path XYZ } else {Subnet NOT above subnets } forward to path ABC }
when HTTP_REQUEST { if {Subnet 10.9.254.0/24 , 164.38.32.0/24, 10.10.10.0/24 etc.} forward to path XYZ } else {Anything other subnet other than above subnets} forward to path ABC }
===================== Sys::Version Main Package Product BIG-IP Version 10.2.4
Ok, I will create a Data Group for bunch of subnets but how do i CALL that data group( lets say Testdata_gp) in below iRule script ?? when HTTP_REQUEST { if {([class match [IP::remote_addr] equals xyz_subnet]) } { HTTP::uri “/XYZ” } else { HTTP::uri “/ABC” } }
Ok, I will create a Data Group for bunch of subnets but how do i CALL that data group( lets say Testdata_gp) in below iRule script ?? when HTTP_REQUEST { if {([class match [IP::remote_addr] equals xyz_subnet]) } { HTTP::uri “/XYZ” } else { HTTP::uri “/ABC” } }
xyz_subnet was my example, replace this with Testdata_gp. This means it will look up this datagroup for the subnets you’ve entered and redirect accordingly.