Forum Discussion

H_Gaouette_1835's avatar
H_Gaouette_1835
Icon for Nimbostratus rankNimbostratus
Feb 05, 2019

iRule to open file and compare contents to a variable

Need iRule to open a file, then compare contents to a variable. I have a file of IP addresses which have rights to relay mail. Need to restrict access to the mail relay and would like to create an iRule to do that...any ideas.

 

1 Reply

  • It seems like you would benefit from using datagroups. These will allow you to have a changable list that you can access in iRules and compare items to. You can read here about how to format a list to import it into a datagroup.