Forum Discussion
sdagar_194989
Nimbostratus
Jul 29, 2015No HTTP to HTTPS redirection for VPN traffic on basis on client source address also add responed to url if URI not contain any word
Requirment :No HTTP to HTTPS redirection for VPN traffic on basis on client source address also add respond to url if URI not contain any word.
In our setup there are 2 VIP's configured with sam...
Kevin_Stewart
Employee
Jul 29, 2015Assuming you can uniquely identify the VPN clients by their lease pool source addresses, you could create an address-based datagroup that contains this subnet. The following iRule would be used in the HTTP VIP:
when HTTP_REQUEST {
if { [class match [IP::client_addr] equals my_vpn_datagroup] } {
if { [HTTP::uri] equals "/" } {
HTTP::redirect "http://client.test.net/xx/yy"
}
} else {
HTTP::redirect "https://client.test.net/xx/yy"
}
}
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