For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

spalande's avatar
spalande
Icon for Nacreous rankNacreous
Oct 22, 2013

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

  •  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
    }
    
  • 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.