Forum Discussion
meena_60183
Nimbostratus
Dec 05, 2008iRule to modify the client IP to Virtual Server IP
Hi All,
I quickly need some help in coming up with an iRule to convert the client IP address to a virtual server address so that the server sees the source as VS.
for example client is 10.1.1.1 making a connection to BigIP VS address of 10.2.2.2.
If I do a automap for SNAT, server sees the source IP as one of the floating IP.
If I do not do any snat, the server sees the source IP as the client IP.
I want the server to see the source IP as 10.2.2.2 for all connections.
It normally takes a while for me to write an iRule but I need some quick help.
Meena
- hoolio
Cirrostratus
Hi Meena, - meena_60183
Nimbostratus
I tried that and it is not working. Basically, I created a snat pool that contained the VS address. I modified VS by selecting the snat pool I created. - hoolio
Cirrostratus
If the destination host doesn't have an interface on the 10.2.2.0 (/24?) network it will use its routing table to respond to 10.2.2.2. That would probably mean it responds through its default gateway, the router. Does the router have a route back to the BIG-IP for 10.2.2.2? Changing the server's default gateway to the BIG-IP might work. - meena_60183
Nimbostratus
I am trying to load-balance print server connections between 2 windows print servers. - hoolio
Cirrostratus
Are you trying to have the server respond back directly to the client? If so, it should work if without the SNAT. You'd want the server to get a connection from the BIG-IP with the client's IP as the source (no SNAT) and the destination IP being the VIP (destination address translation disabled). You'd define the VIP address on the server's loopback interface so that the server would reply back directly to the client using the VIP address. In the BIG-IP world, this is called nPath routing: - meena_60183
Nimbostratus
when you say "destination address translation diabled", do you mean uncheck the "address translation" and "port translation" on the VS? - meena_60183
Nimbostratus
sorry , I did not see the link. The document has all the info I needed. - meena_60183
Nimbostratus
Finally, the problem is resolved.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects