Forum Discussion

sysadmin_2015_2's avatar
sysadmin_2015_2
Icon for Nimbostratus rankNimbostratus
Oct 03, 2017

iRule - Routing all traffic

Hello,

 

We would like to create an iRule that routes all traffic that comes in on a virtual server listening on 3306 and redirect it to a cname record of an AWS RDS instance "test.rds.amazonaws.com:3306". Can someone please provide an example of how we might be able to do this?

 

Thank you for the help!

 

2 Replies

  • Hi Guy,

     

    if you are using big-ip version 12 or later, you don't need an iRule.

     

    1. Set DNS in your F5

     

    2. Create FQDN(test.rds.amazonaws.com) Nodes

     

    3. Create a pool containing the Nodes you created above and set the port 3306

     

    4. Create a virtual server with snat autonat, and add the pool.

     

    That is it. More info is here.