Forum Discussion

Abdel_839's avatar
Abdel_839
Icon for Nimbostratus rankNimbostratus
Jul 05, 2012

Irule migation V9.4.5 to V10.2.3

Hi i'm new in this foum and new in F5 bigIP need to validate if these Irules run in V9 will run well in V10.2.3 thank you

 

 

 

irules

 

irules_DNS

 

----------------------------------------------------------------

 

when CLIENT_ACCEPTED {

 

 

 

set dns [IP::local_addr]

 

 

 

switch $dns {

 

 

 

19X.X.X.X. { pool Pool_Routeur_Aster }

 

19X.X.X.X.X { pool Pool_Routeur_Aster }

 

21X.X.X.X.X { pool Pool_Routeur_Aster }

 

X.X.X.X { pool Pool_Routeur_Aster }

 

X.X.X.X { pool Pool_Routeur_Remip }

 

X.X.X.X { pool Pool_Routeur_Remip }

 

 

 

}

 

 

 

}

 

----------------------------------------------------------------

 

----------------------------------------------------------------

 

 

 

iRule_NAT_Static

 

----------------------------------------------------------------

 

when CLIENT_ACCEPTED {

 

set my_ip [IP::remote_addr]

 

 

 

switch $my_ip {

 

 

 

172.16.0.1 { snatpool SnatPool_1 }

 

172.16.0.33 { snatpool SnatPool_33 }

 

172.16.0.34 { snatpool SnatPool_34 }

 

172.16.0.36 { snatpool SnatPool_36 }

 

172.16.0.38 { snatpool SnatPool_PFR }

 

172.16.0.40 { snatpool SnatPool_Telesante }

 

172.16.0.41 { snatpool SnatPool_41 }

 

172.16.0.42 { snatpool SnatPool_42 }

 

172.16.0.46 { snatpool SnatPool_Canicule }

 

172.16.0.47 { snatpool Snat_Pool_47 }

 

172.16.0.59 { snatpool SnatPool_59 }

 

}

 

}

 

----------------------------------------------------------------

 

----------------------------------------------------------------

 

iRule_TCP_logging

 

----------------------------------------------------------------

 

 

 

when CLIENT_ACCEPTED {

 

 

 

set remote [IP::remote_addr]:[TCP::remote_port]

 

set vip [IP::local_addr]:[TCP::local_port]

 

 

 

log local0. "$remote to vip $vip"

 

 

 

}

 

----------------------------------------------------------------

 

----------------------------------------------------------------

 

iRule_VPN

 

----------------------------------------------------------------

 

when CLIENT_ACCEPTED {

 

 

set my_ip [IP::remote_addr]

 

 

 

switch $my_ip {

 

 

 

192.168.30.11 {

 

pool Pool_Routeur_Aster

 

log local0. "IP $my_ip routed on Aster"

 

}

 

 

192.168.30.10 {

 

  • Richard__Harlan's avatar
    Richard__Harlan
    Historic F5 Account
    I do not see anything off hand that would cause a VIP to be pinned. They look like a iRule that will convert to 10.x there are no comments for it to be tripped up on.