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}]"
}
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
}