Forum Discussion
abi1980_184094
Nimbostratus
Mar 08, 2015I rule
Can some give me an Irule to loadbalance multiple pools for the same VIP
pool x 443 would be default
Pool y 5222
pool z 5223
nitass
Employee
Mar 08, 2015At this link (https://devcentral.f5.com/wiki/iRules.TCP__server_port.ashx) the event CLIENT_ACCEPTED is a valid event!
Where do I wrong?i understand serverside connection is not established when CILENT_ACCPETED is triggered, so TCP::server_port won't be available at that time.
e.g.
configuration
[root@ve11c:Active:Sync Failed] config tmsh list ltm virtual bar
ltm virtual bar {
destination 172.28.24.10:80
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
tcp { }
}
rules {
qux
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 7
}
[root@ve11c:Active:Sync Failed] config tmsh list ltm rule qux
ltm rule qux {
when CLIENT_ACCEPTED {
log local0. "[TCP::server_port]"
}
when SERVER_CONNECTED {
log local0. ""
}
}
client
[root@centos1 ~] curl -I http://172.28.24.10
curl: (52) Empty reply from server
[root@centos1 ~]
/var/log/ltm
[root@ve11c:Active:Sync Failed] config tail -f /var/log/ltm
Mar 8 16:55:22 ve11c err tmm[15262]: 01220001:3: TCL error: /Common/qux - no serverside connection established (line 1) invoked from within "TCP::server_port"
G_romano_187703
Nimbostratus
Mar 09, 2015Thanks you very much nitass!
Giorgio
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
