Forum Discussion
Mauricio_Cusine
Aug 22, 2007Nimbostratus
Validate IP address with regexp
Hello,
I am trying to check if a IP address is valid in the bigip with regexp (I don't know if anybody know other method).
The regexp is the follow but don't work. Anybody can help me?....
Thomas_Schaefer
May 08, 2009Nimbostratus
Does anyone have an idea why this would not work with 209.162.186.60 pulled from a string? I am executing this statement:
set a "209.162.186.60"
log local0. "catch $a => [catch {IP::addr $a mask 255.255.255.255} ]"
log local0. "catch $hostname => [catch {IP::addr $hostname mask 255.255.255.255} ]"
log local0. "hostname = \[$hostname>\]"
$hostname was pulled from a header using set hostname [HTTP::header "X-HOSTNAME"].
This is the result of the log:
Rule OutboundSSLRouter HTTP_REQUEST: catch 209.162.186.60 = 1
Rule OutboundSSLRouter HTTP_REQUEST: catch 209.162.186.60 = 0
Rule OutboundSSLRouter HTTP_REQUEST: catch 209.162.186.60 = 1
Is there anything special about a variable pulled from HTTP::header?
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