Forum Discussion
Eric_Stuhl_2806
Nimbostratus
Apr 13, 2006Question about creating iRules
Hello,
I aplogize if this topic has been covered in the past, but I did a cursory search of the forum and couldn't find something to help me find an answer.
In my environment...
Eric_Stuhl_2806
Nimbostratus
Apr 13, 2006It is amazing what reading the manuals can do for you. I'm sorry for some of the silly questions. My programmers changed their requirements and now want me to tranlate IP addresses to customer names.
I'm trying to do this, using matchclass, but I can't seem to get the syntax right.
when CLIENT_ACCEPTED {
set ckname NETWORK_ALIAS
if { [matchclass $::Alias_Subnet contains [IP::client_addr] } {
set ckvalue ATLAS
}
elseif { [matchclass $::Test_Subnet contains [IP::client_addr] } {
set ckvalue TEST
}
else {
set ckvalue UNKNOWN
}
}
when HTTP_REQUEST {
HTTP::header insert $ckname $ckvalue
}
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