Forum Discussion
ltm steer trafic in irule from virtual type layer 4 preformence to virtual type standart not working
hi im trying to steer trafic between 2 virtual server with irules, i tested it in version 11.3 hf1 and it works perfect whene i try to implmant this process in system version 11.2.1 the trafic are not sendes to the secound virtual server the configuration are identical in bothe system , the trafic are enabled on all vlan i will appreciate your help to solve this problem
here is the irules 1)the first irule check if the destenation address is in the data group that i created. if {[class match [IP::local_addr] equals dest_direct_xforwarded]} { set counter that will be used to insert the xforwarded only once set ::counter 1 set the origin destination address set ::ip_virt_dest [IP::local_addr] send the traffic to the new virtual server virtual SomelVirt } 2)the secound irule insert X-Forwarded-For - i create http profile that enable the X-Forwarded-For and config it in the virtual server when HTTP_REQUEST { check if the data is for match and the counter is 1 if {[class match $::ip_virt_dest equals dest_direct_xforwarded] && $::counter == 1} {
log the X-Forwarded-For log local0. "X-Forwarded-For is [HTTP::header value X-Forwarded-For]" set the counter to 0 set ::counter 0 } }
5 Replies
- nitass
Employee
global variable (i.e. ::counter and ::ip_virt_dest) are shared across connection. so, its value can be overwritten by another connection.
The101: iRules 101 - Variables by Colin Walker
https://devcentral.f5.com/articles/-the101-irules-101-variables.UsErRrSjYdUanyway, what do you intend to do exactly?
- TalNe
Nimbostratus
i need to understand way the virtual command not working in ver 11.2.1 in version 11.3 its working perfect
- nitass
Employee
i need to understand way the virtual command not working in ver 11.2.1 in version 11.3 its working perfect
i do not think it indeed works in 11.3.
just my 2 cents.
- TalNe
Nimbostratus
its working the irules and the X-Forwarded-For in version 11.3 the question is way its not working in ver 11.2.1
- nitass
Employee
virtual SomelVirt
can you try full virtual server name (i.e. including partition name)?
e.g.
virtual /Common/SomelVirt
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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