Forum Discussion

JW123_149970's avatar
JW123_149970
Icon for Nimbostratus rankNimbostratus
Apr 24, 2014

F5 connects to wrong port

I'm using a Big-IP F5 9.4.2. I'm trying to specify that under certain conditions, an incoming request on port 80 should be sent to 172.18.0.12 port 8080. It ends up connecting to the right IP, but using port 80 instead.

My virtual server uses an irule that looks like this:

when HTTP_REQUEST {
   various conditions which lead to this line being executed:
  node 172.18.0.12 8080
  log local0. "HTTP_REQUEST: [LB::server addr]:[LB::server port]"
}

when LB_SELECTED { 
  log local0. "LB_SELECTED: [LB::server addr]:[LB::server port]" 
}  

when SERVER_CONNECTED {
  log local0. "SERVER_CONNECTED: [IP::server_addr]:[serverside {TCP::remote_port}]"
}

The output is:

Rule myrule : 172.18.0.12:8080
Rule myrule : 172.18.0.12:8080
Rule myrule : 172.18.0.12:80

What could cause the port to be changed to 80? I'm not using pools here; just specific nodes. And there are no other irules on the VS.

  • is it intermittent?

    if yes, i think you had better open a support case.

    if no, can you post the virtual configuration?

     b virtual (name) list all
    
  • No, it happens every time. I'm sure I've got something configured wrong; I just don't know what could come in between the "node" command and the actual port selection.

     b virtual "my-virtual-name" list all
    virtual my-virtual-name {
       enable
       limit 0
       rate class none
       mirror disable
       translate address enable
       translate service disable
       pool
       snat automap
       cmp enable
       cmp processor none
       lasthop pool none
       snatpool none
       pool none
       fallback persist none
       destination 1.2.3.4:any
       mask 255.255.255.255
       ip protocol tcp
       partition Common
       vlans none disable
       rules myrule
       httpclass none
       profiles
          http
          tcp
       persist none
       auth none
       clone pools none
    }
    
  • you need this to be enabled.

      translate service disable
    
    • JW123_149970's avatar
      JW123_149970
      Icon for Nimbostratus rankNimbostratus
      THANK YOU!!! This has been driving me insane. Really appreciate the help.
    • JW123_149970's avatar
      JW123_149970
      Icon for Nimbostratus rankNimbostratus
      THANK YOU!!! This has been driving me insane. Really appreciate the help.