Forum Discussion
Pav_70755
Apr 20, 2011Nimbostratus
I-rule to re-direct page back to source IP address?!
We have a site that is hosted through our F5 and it has a page which returns the users IP address so the source ip of the user accessing the site but the IP that is being returned is the floating IP of the Big IP.
Is there specific setting in the virtual server set up or does something need to specified in an i-rule for it to route back to the source IP and not the floating IP?
any help much appreciated!
Thanks
Pav
- The_BhattmanNimbostratusAs Hoolio mentioned this was to see if the application might have been looking at other HTTP headers where it could be pulling the information. However, it is looking more and more like the application is indeed looking at the packet information.
- Pav_70755NimbostratusHave added the : and still no joy im afraid
- The_BhattmanNimbostratusHi Pav,
- Pav_70755NimbostratusI think I originally set that by default and after removing the SNAT Poole to automap it worked :-)
- Pav_70755Nimbostratusmy second question is can the X-Forwarded for be used to return the external IP address for the site?
- Michael_YatesNimbostratusI don't believe that it can.
- Colin_Walker_12Historic F5 AccountWell, technically, with an iRule couldn't you write whatever you want into a header named...whatever you want? (X-forwarded-for included)
when HTTP_REQUEST { HTTP::header insert X-Forwarded-For [IP::local_addr] }
- Michael_YatesNimbostratusI agree with Colin, you might be able to do something like that, but even using the [IP::local_addr], just returns the IP Address of the Virtual Server that the iRule is running on and the other systems might not know what to do with it.
- Colin_Walker_12Historic F5 Account^ Yep, what he said. You CAN do pretty much anything you want in iRules. Just make sure you really want to do it first. ;)
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