We have configured a UDP virtual server where we have kept SNAT as NONE since as per our requirement client ip should be visible to server. But while responding server is replying directly to client via default gateway and not via F5. Which is causing the client to reject the response.
Please find the virtual server configuration below.
If your source address and the application server addresses are in same subnet (or the default gateway of your server have different routes for the source address), you should use the SNAT feature enabled.
You can use the X-forwarder feature enabled so that the application server can see the client address even if the SNAT is enabled.
If your pool members on the backend are linux, I have a solution which creates a “conditional bigip gateway” fully exposing the client IP address which is helpful when youre doing some sort of traffic for which you cannot inject headers via an iRule. You can see that here: