For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

nabf5guy's avatar
nabf5guy
Icon for Altostratus rankAltostratus
Apr 30, 2024
Solved

BIG-IP DNS iRule issue with static variable

I am trying to develop an iRule bypassing DNS processing when a DNS request matching a wide ip comes via a specific listener on our BIG-IP DNS. Code is below: when RULE_INIT { set static::u...
  • nabf5guy's avatar
    Apr 30, 2024

    Okay, figured out the issue with the static variable.

    If your iRule is a GTM iRule, not an LTM iRule, you need to declare static variables in a fully qualified manner, e.g. 

    set ::static::some_variable_name

    and then call them in a fully qualified manner, .e.g 

    $::static::some_variable_name

    It pays to go back and re-read even the documentation that you think you are familiar with.