Forum Discussion
BrandenL
Jun 08, 2022Nimbostratus
iRule redirect causing Connection Reset
Hello. We have a straightforward iRule that will produce a maintenance page if the iRule is added to the Virtual Server. This has worked fine for years - until we updated to 15.1.5.1 (from 15.1.5.0)...
djtms
Jun 10, 2022Nimbostratus
I use full this Template and it work great (with the rule allowing access from VPN)
when HTTP_REQUEST {
if { not ( ([IP::addr [IP::client_addr] equals 192.168.1.10]) or ([IP::addr [IP::client_addr] equals 172.10.10.100])) } {
HTTP::respond 500 content {
<!DOCTYPE html>
<html>
<head>
<title>Error Page</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- Libs CSS -->
<link type="text/css" media="all" href="//cdn.domain.com/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Template CSS -->
<link type="text/css" media="all" href="//cdn.domain.com/assets/css/style.css" rel="stylesheet">
<!-- Responsive CSS -->
<!-- Favicons -->
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans&subset=latin-ext,latin" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container">
<div class="col-xs-12 col-sm-7 col-lg-7">
<!-- Info -->
<div class="info">
<h2>INFO</h2>
<p>INFO2 <br />THANKS<br /><br /> Company.<br />
</p>
</div>
<!-- end Info -->
</div>
<div class="col-xs-12 col-sm-5 col-lg-5 text-center">
<!-- Img_gif -->
<div class="img_gif">
<img src="//url.com/assets/img/500.gif" alt="500">
</div>
<!-- end Img gif -->
</div>
</div>
<!-- end container -->
</body>
</html>
} Cache-Control No-Cache Pragma No-Cache
}
}
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