Forum Discussion
Dan_Deming_1935
Nimbostratus
Aug 18, 2006How do I insert LB's IP with an irule?
We have 2 F5 Big IP units set up in front of 3 web servers running Apache 1.3. We're using the Type: Standard, Protocol: TCP and HTTP Profile: HTTP settings.
In our Apache logs, we want to include...
unRuleY_95363
Aug 18, 2006Historic F5 Account
Unfortunately, we don't have a mechanism for accessing the BIGIP's mgmt IP address nor any of the Self IP's.
Your best bet would probably be to use an external class/data group. The class would reference a file on the BIGIP that could contain the BIGIP's IP address and then you could reference that in the rule.
Here's the steps I would do:
a) create an external class called bigip_address and have it reference the file /config/bigip_address.txt.
b) create a script that grep's out the bigip's mgmt address from bigip_base.conf or from 'ifconfig eth0' and writes it to /config/bigip_address.txt
c) Use $::bigip_address to get this value in your rule.
The only trick is to make sure the script gets run if the configuration is changed (which I would assume should not really happen that often).
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
