Forum Discussion

raj_bjs77's avatar
raj_bjs77
Icon for Nimbostratus rankNimbostratus
Aug 17, 2018

I need an irule to read a txt file in a remote webserver for blocking external IPs dynamically

I need an irule to read a txt file in a remote webserver for blocking external IPs dynamically something like reading a dynamic txt file in a webserver in a remote server

 

4 Replies

  • To do this you’d need to use a sideband connection which isn’t ideal in TCL. iRules LX can do this much easier but I wouldn’t really advocate doing it this way. It would be better to automatically update a datagroup, perhaps using REST api.

     

  • Hi,

     

    where is the file located? and how is it filled (updated).

     

    It is located on a webserver? or on F5. and how is it formatted?

     

    Lee is Right you can directly automatically update a datagroup. But wee need the context in order to give you the right recommendation.

     

    Regards,

     

  • You may not do that with an irule but with tmsh command and icall scheduler!

     

    Irule are per connection, so it will use too many cpu to use irules.

     

  • file is located on webserver in a txt file. It will be updated as a entry in a text file