Forum Discussion
Brian_Martinez_
Nimbostratus
Nov 13, 2006Persistence from single IP address
We currently have an SSL VPN product in use to provide external access to internal applications. The most recent application will be hosted on several web servers in a web server farm. The issue is ...
JRahm
Admin
Nov 14, 2006You could try something like this:
when CLIENT_ACCEPTED {
set src_IP [IP::client_addr]
if { [session lookup uie $src_IP] equals "" } {
session add uie $src_IP [TCP::remote_port] 1800
log local0. "added client port [session lookup uie $src_IP] for client ip $src_IP "
} else {
log local0. "existing client port [session lookup uie $src_IP] for client ip $src_IP"
}
}The 1800 is time in seconds you want to keep the persistence record in the session table. The logging statements are for debugging/testing purposes, you can yank them after your testing is complete, or just comment them out.
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