Forum Discussion

ppltam_183867's avatar
Dec 22, 2016

iRule to Route network traffic to different Virtual Servers based on destination.

Hi Devcentral,

 

We are using an F5 BIG-IP APM (version 12.1.1) to act as our VPN Gateway to allow VPN Edge Client running Apple IOS device to access our internet resources or Internet withing the VPN Tunnel.

 

My question is can we use iRule or other APM functinalilty to route the VPN tunnel traffic to different Virtual Servers based on the traffic destination ? For example if the VPN tunnel traffic destination is for 10.x.x.x, then route the traffic to a Virtual Server called 10_VS. If the VPN tunnel traffic destination is 172.x.x.x then route the network traffic to another Virtual Server called 172_VS.

 

Can it be done using a simple iRule and thank you for your advice in advance ?

 

Regards Patrick

 

1 Reply

  • Yes, it can easily be done to route traffic to another virtual server on the same platform using the virtual command. Check the destination using IP::server_addr and i'd be inclined to use a datagroup of type ip containing the network ranges and the destination virtual server name. Worth considering what you'll do with traffic that doesn't match as well.