F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

TalNe's avatar
TalNe
Icon for Nimbostratus rankNimbostratus
Dec 29, 2013

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

  • TalNe's avatar
    TalNe
    Icon for Nimbostratus rankNimbostratus

    i need to understand way the virtual command not working in ver 11.2.1 in version 11.3 its working perfect

     

  • 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's avatar
    TalNe
    Icon for Nimbostratus rankNimbostratus

    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

     

  • virtual SomelVirt

     

    can you try full virtual server name (i.e. including partition name)?

     

    e.g.

     

    virtual /Common/SomelVirt