Using an iRule to specify multiple allowed ports for a virtual server
Hi there!
I use version 11.4.0 LTM. One of the key concerns for doing the mentioned job in my subject is when our ports in irule are not the same as pool members ports we should specify "all Ports" and "port translation" in virtual server properties, but when we specify "all Ports", the "port translation" option which is specified by default, would be unspecified automatically! and it causes problem. I think it was better to be manual other than this way, because if it is specified we don`t have problem in this case, does anyone agree? Is it solved in new versions? here is an examle of the iRule I used:
when CLIENT_ACCEPTED { if {([TCP::local_port] == 443) } { pool POOL1 } elseif {([TCP::local_port] == 5443) } { pool POOL2 } else { discard } }