Forum Discussion
David_Raimist_1
Nimbostratus
Jul 07, 2006Looking for help with Incoming IP address within
We are utilizing a "one arm router" config and the remote IP address is coming from the LB. We are using "Insert XForwarded For" in the profile and F5 isapi filter to write the original/incoming IP address to our weblogs.
I now have a need to be able to identify the actual incoming IP address (not the LB IP) to control access to a classic ASP / MS SQL application. We want to control access to the application based on incoming IP address from an entire organization.
How would this be done from asp? Do we need to utilize iRules? Is there a tool set/api to utilize?
If you can point me in the right direction and/or provide some direction that would be greatly appreciated.
david
- hoolio
Cirrostratus
Hi David,class my_hosts_networks_class { network 10.0.0.0 mask 255.0.0.0 host 192.168.0.100 }
rule filter_clients_rule { when CLIENT_ACCEPTED { set debug to 1 to enable logging to /var/log/ltm. Set to 0 to disable logging. set debug 1 if { [matchclass [IP::remote_addr] equals $::my_hosts_networks_class] } { if { $debug } { log local0.info "Allowed client: [IP::remote_addr]" } pool http_pool } else { pool nonsecure_pool } } }
- David_Raimist_1
Nimbostratus
Thanks Aaron. I was able to find what I needed. I found the following code that allowed me access to the x_forwarded IP address. Here is what I found:
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