Forum Discussion

TFL-Support_913's avatar
Icon for Nimbostratus rankNimbostratus
Jan 27, 2011

Data Group Lists for iRules

Hi everyone,



We need to create an iRule to allow access to a VIP from only a certain list of IP addresses. I can see how to do this by creating an iRule that references an IP Address Data Group. The problem lies in that we have a 20,000 user network and need to restrict the access to 600 individual IP addresses. We can do some summarization but we're still looking at 500 entries into the Data Group.



Does anyone know if you can import a text file or copy and paste somehow into the IP Address Data Group to save entering 500 IP addresses?



Thanks very much in advance.



11 Replies

  • Hi Chris,



    Reading over this may help: Writing iRules look in the sub-topic "Creating, managing, and using data groups".



    Location:An external data group must reside in either the /config or the /var/class directory. The default location for storing external data groups is the /config directory.



    As far as your formatting issue I think you must specify what it is in the External Class. If it's a host it automatically appends in the background (you will only see this if you use iControl to pull the class members) and if it's a network it appends the assigned netmask:



    host := "host1",


    host := "host2",


    network := "network1",