Forum Discussion
ChristianD_1412
Nimbostratus
Nov 22, 2012Collect client IP header to write to payload
Hello all.
We have a request to restrict user account access based on the IP from which they come. While this could usually be addressed at the network layer, or even a somewhat simple iRule, i...
Kevin_Stewart
Employee
Nov 22, 2012[IP::client_addr] is accessible in the CLIENT_ACCEPTED event, so you have the client's source on first TCP connection. Are you talking about injecting the IP information into the TCP packet? If so, does the application have a way of retrieving this information?
The TCP::options command allows you to read/write into the options block of a TCP header.
https://devcentral.f5.com/wiki/iRules.TCP__option.ashx
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