I have problem with F5 BigIp, i have created vip ip address (192.168.1.3) for two nodes (192.168.1.1 and 192.168.1.2)
any client ( example 10.1.1.1) access the virtual ip (192.168.1.3) will be shown at the servers as ip address of BigIp not the client address( 10.1.1.1), how can i let the BigIP show the ip address of host instead of ip address of self ip.
nodes are the physical machine (server) there are two nodes (phyiscal machine) in diagram 192.168.1.2 and 192.168.1.1, it is not gateway or bigip
i have configured the virtual server (192.168.1.3) SNAT Pool to “automap”, should i return to “none”, i am new to bigip can you please tell me more about snat what it do ?
is it oridnary NAT ?
Big thanksssssssssssssssssss even if u r not expert :)
SNAT is literally Source-NAT. Basically its telling the VS to act as a proxy… So the backend (Poolmembers) see the IP connection coming from one of the BigIP’s addresses (Automap will use the floating self-ip of the interface that routes to the poolmembers).
To have the client IP preserved, disable SNAT, enable NAT (The F5 then NAT’s the proxied connection back to the address and port of the client). The poolmembers then need to use the F5 (SelfIP) as the default gateway back to the client.
About 5 items below the SNAT option when configuring the Virtual Server. There’s separate options for ‘Address Translation’ and ‘Port Translation’. Select both. Then make sure the default gateway back to the client IP is via the F5 floating self-ip address that directly connects to the poolmembers. (I suspect that’s already done, unless you were running the poolmembers in a kind of n-path configuration)
I think it’s more likely that the only thing wrong is your poolmembers are routing back direct to the client via a separate router, since it looks like you’re running the F5 single armed (Sorry, can’t see your picture, so no network diagram to verify)…
As Nitass and Hamish have suggested, if you have the default gateway on 192.168.1.1 and 192.168.1.2 set to the LTM self IP on the 192.168.1.0/24 subnet, you can set SNAT on the virtual server to none and the servers will see the original client IP address. As Hamish said, make sure to leave (destination) address and (destination) port translation enable on the virtual server properties.