Forum Discussion
http outbound proxy
I'm using below iRule to forward http request to cloud. where F5 will act as outbound proxy.
when HTTP_REQUEST {
log local0. [HTTP::uri] set host [HTTP::host] log local0. "Host is $host" set ip [RESOLV::lookup $host] log local0. "IP is $ip" HTTP::uri /CloudPAMIDS/billingprofile/91990176012 node [lindex $ip 0] 443 }
however getting below error " IP is Oct 22 02:44:39 bigipF5 err tmm[8066]: 01220001:3: TCL error: /Common/http_forward_proxy - bad IP address format (line 7) invoked from within "node [lindex $ip 0] 443"
2 Replies
- spalande
Nacreous
when HTTP_REQUEST { log local0. [HTTP::uri] set host [HTTP::host] log local0. "Host is $host" set ip [RESOLV::lookup $host] log local0. "IP is $ip" HTTP::uri /CloudPAMIDS/billingprofile/91990176012 node [lindex $ip 0] 443 } - Kevin_Stewart
Employee
It would appear that your RESOLV::lookup command is failing. Per its wiki page, you should probably indicate the DNS server to use as an argument to the command. Example:
set ip [RESOLV::lookup 10.10.10.53 -a $host]Ref: https://devcentral.f5.com/wiki/iRules.resolv__lookup.ashx
Also, run a TCPDUMP to see if the box is making the port 53 calls out to the DNS server.
Recent Discussions
Related Content
* 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