Forum Discussion

Telise_Mays_208's avatar
Telise_Mays_208
Icon for Nimbostratus rankNimbostratus
May 11, 2017

Static Maintenance Page

I am trying to create a https VIP on the ltm that will always return a Static Maintenance Page using iFile. I don't want the VIP to have pool members. I just want the VIP's sole purpose to be responding the https request with the splash page that I have defined. The html page is created and accessible on the LTM. However, I am getting the following ssl error. Any ideas?

 

  • SSL read: error:00000000:lib(0):func(0):reason(0), errno 104
* Closing connection

2 Replies

  • Sounds like you're missing a clientssl profile or forgot to enable automap. See below a working example from my lab environment.

    Virtual Server:

    ltm virtual vs_html_static_page {
        destination 10.23.98.13:https
        ip-protocol tcp
        mask 255.255.255.255
        profiles {
            clientssl-insecure-compatible {
                context clientside
            }
            http { }
            tcp { }
        }
        rules {
            A_IRULE_STATIC_HTML_PAGE
        }
        source 0.0.0.0/0
        source-address-translation {
            type automap
        }
        translate-address enabled
        translate-port enabled
        vs-index 219
    }
    

    irule:

    ltm rule A_IRULE_STATIC_HTML_PAGE {
    when HTTP_REQUEST {
        set html [ifile get "/Common/static_html_page"]
        HTTP::respond 200 content $html
        unset html
    }
    }