Using iRule to persist outbound connection to the same node

Hi Folks,

I’m a newcomer on iRule and need some help on writing iRules. The question is the client initiates a connection to a VIP and then logon a server, the server will then make a outbound connection to the same VIP and then need to persist to the same server again. I think only iRules could do it but is there anybodies could help on it.

Many thx

One thing to keep in mind. There are issues involved with server initiated connections that connect to themselves.

When the server initiates a connection with the VIP, it will recieve this connection, bit it will look like it is coming from itself. Unfortunately, since the server initiated the connection to the VIP, it will not have an existing connection and will drop the packets.

Theoretically you could enable SNAT and it *should* work. (I haven’t tested).

Why do you need this?

Cheers,

-Brian

thanks guy, it is the behaviour of the app servers. However the servers are one of the pool member in Big/IP, I don’t think SNAT should work because Big/IP will do the Load balance again and couldn’t persist to the same server. Please help and correct me if I’m wrong

thanks a lot

Hi guys, thanks a lot and the problem has been solved by writing an iRules:D

I am making the assumption that if an appserver ever initiates a connection to the VIP, it will always be loadbalanced back to itself, regardless of the trigger.

Is this an incorrect assumption?

-Brian