Forum Discussion
pwallace_110041
Jan 30, 2015Nimbostratus
iRule that drops only vpn connections
The following iRule sends only RST to clients that connect via vpn but all other users get 301 redirect then the connection close.
Running BIG-IP 10.2.3 Build 123.110 Engineering Hotfix HF1 ...
Michael_Jenkins
Jan 31, 2015Cirrostratus
If you change your iRule and remove the
noserver
from the responds, does it make a difference?
when HTTP_REQUEST {
if { [HTTP::method] eq "GET" or [HTTP::uri] starts_with "/cx/facebook/" } {
set url "https://[getfield [HTTP::host] ":" 1][HTTP::uri]"
HTTP::respond 301 "Location" "$url" "Connection" "close"
} else {
HTTP::respond 405 content { you must use ssl to access this resource } "Connection" "close"
}
}
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