Created
July 17, 2019 21:38
-
-
Save joel74/7d38a0d7e59e1ff470ff74a9436393db to your computer and use it in GitHub Desktop.
Sample iRule creation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#_sys_APM_ExchangeSupport_helper iRule | |
$String1 = @" | |
# Copyright 2003-2006, 2012-2013, 2016. F5 Networks, Inc. See End User License Agreement ("EULA") | |
# for license terms. Notwithstanding anything to the contrary in the EULA, | |
# Licensee may copy and modify this software product for its internal business | |
# purposes. Further, Licensee may upload, publish and distribute the modified | |
# version of the software product on devcentral.f5.com. | |
# | |
# The purpose of this iRule is for help the main virtual for the timing of the HTTP request retry | |
# during the SSO process for OutlookAnywhere protocol request which has a Content-Length value of 1GB. | |
when HTTP_REQUEST { | |
# Waiting for the first chunk of data. | |
HTTP::collect 1 | |
} | |
when HTTP_REQUEST_DATA { | |
# Respond 401 and close the connection once we received the data. | |
HTTP::respond 401 WWW-Authenticate NTLM Connection close | |
} | |
definition-signature qJiKrxH5xpBJr4VoBOszXDm+lvsjXtXlGXxiExuAyMkGwnIml1ED3xohHaNWu4/2/AAwX44zX2g3sr1cFx6yQeWIZVrkllxTSSqDqB9BYiLSO1kIn15vzpnj+bqzNTkvcl9fdu6yBT3Bz5X3EfCNLByKa059NQU2l/1StKK0e/KA0cCSAOzB4sh+BVI2VPPgL2R3XqoOrdgHHEE1PnBwC9WRk5Y5XFdaowpd2rfDoYBZM2C+MIxeryxMYLinXHfHbGaug4go8VX67eskI6XxWbm2fjXTBjTjMyxt7OpA6dc6S8IA3FJawUasvexJvHrdPyul2BMGRDqa+p6ZhOLzNw== | |
"@ | |
Set-iRule -F5Session $f5_session -Name testiRule -iRuleContent $String1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment