Forum Discussion
Rob_Higginbotha
Nimbostratus
Apr 04, 2018external URL redirection
I would like to create an irule to redirect clients hitting the VIP to an external website.
for example
internal (DNS) - https://mobileapps.abc.com (VIP) 192.168.1.115
redirect to ex...
- Apr 05, 2018
Please try this: when HTTP_REQUEST { if { [HTTP::host] equals "mobileapps.abc.com" } { HTTP::redirect "https://portal.manage.microsoft.com[HTTP::uri]" } }
I'm still not sure I have this right. Let me restate to confirm.
alertd receives a message from syslog-ng which contains both an alert code and a message string. alertd looks in bigip_error_maps.dat to find an alert definition which matches the alert code or message string. Once a map is found, it performs the action matching the definition in the user_alert.conf (or alertd.conf).
Is that right?
If it is, then I still don't understand why a match string can/should be specified in user_alert.conf, since the mapping is done with the bigip_error_maps.dat file and not user_alert.conf.
To illustrate what I'm getting at, take the example in the article.
syslog-ng sends an alert with a matching message string "FAILED LOGIN admin FROM 192.168.1.1 FOR console, Authentication Failure" (I don't know what this alert really looks like). alertd finds the map between "FAILED LOGIN (.*) FROM (.*) FOR (.*), Authentication failure" and "BIGIP_AUTH_FAIL" alert in bigip_error_maps.dat, and sends the trap matching that definition in user_alert.conf:
alert BIGIP_AUTH_FAIL "FAILED LOGIN (.*) FROM (.*) FOR (.*), Authentication failure" {
snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.27"
}
Why can/should the message string be specified in user_alert.conf? Hasn't alertd already found the approprate alert definition by the time it needs to use it?
In addition, what controls the message string sent by syslog-ng?
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