Forum Discussion
Ian_Smith
Sep 15, 2006Ret. Employee
IP::source_addr?
I'm unclear as to which IP command should be used to grab the source address of the IP packet (and conversely, which one should be used to grab the destination address).
What it appears to b...
Colin_Walker_12
Sep 18, 2006Historic F5 Account
First of all, there is plenty of ambiguity. Just because you can't see it, doesn't mean it's not there, period.
In most load balancing scenarios, since the Virtual Server is using a public IP address and the internal servers are not, the packet gets re-written at the BIG-IP, and gets a new destination address.
Then take into account the fact that the BIG-IP is a bi-directional proxy, and you've got two possible directions of traffic to account for. Since all you stated was that you wanted the source and destination addresses of "the packet", this could mean a packet in any possible context.
Now which destination are you looking for? The public address of the incoming Virtual Server? The private address of the internal server? The public address of the client your server is responding to? The "destination" could easily be interpreted as at least these different things. How would one command be able to return the value you're looking for regardless of context? Kind of ambiguous, don't you think?
Second, if you don't like the answers you're getting from the people here who are, as citizen_elah pointed out, taking their own free time to try and help answer your questions, then I'd suggest checking into the provided documentation.
You can read about each of these commands in the iRules Wiki:
IP::client_addr - Click here
IP::local_addr - Click here
IP::remote_addr - Click here
If you need clarification beyond what is provided there I would recommend you reference the data you received during your testing of these commands in the scenarios you're interested in, and then ask a more specific question if you're still unclear.
Colin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
