F5-iRule-which Client Ip to destination Node

Creating iRule for Redirection:

  1. Log in to the Configuration utility.
  2. Click Local Traffic.
  3. Click iRules—>iRule List
  4. Click Create…
  5. Type the name of the iRule
  6. Put the exact following content in the Definition dialog box:
  7. Click Finished.

when LB_SELECTED {
log local0. "[IP::client_addr] has connected to [LB::server]"
}

Associate iRule to the virtual server
  1. Log in to the Configuration utility.
  2. Click Local Traffic.
  3. Click Virtual Servers.
  4. Click the virtual server you want to associate the iRule
  5. Click Resources.
  6. In the iRules section, click Manage.
  7. In the Resource Management section, move the appropriate iRule to Enabled
  8. Click Finished.

No comments:

Post a Comment