Forum Discussion

John_Usser_4811's avatar
John_Usser_4811
Icon for Nimbostratus rankNimbostratus
Jul 26, 2005

Need iRule help

I need to write an iRule that will take incoming connections to a vip on my Big-IP, and SNAT the source addresses to a specific IP:port combination, and then send the connections with the SNAT'd source IP and port combination to a pool.

 

 

I have no experience with writing iRules so I would greatly appreciate any assistance with this. Thanks!

1 Reply

  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account

     

    You can change the source IP by just defining a SNAT and ensuring SNAT is enabled on the Virtual server, no iRule required...

     

     

    (you don't really want to change the source port, do you? tcp/ip requires that one of four values be unique: source host, source port, dest host, dest port, which means that each defined host ip:port will only accept a single connection from the same IP:port, which means you could be limiting yourself to 1 concurrent connection per pool member if you do...)

     

     

    hth

     

    /deb