Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
networkingkool
New Contributor

SSLVPN portal appearance Error

Hi forum, My Login page of SSL VPN Portal appearance is not correct. I has checked SSL VPN message, and copied another htm source code from a Fortigate 110C, but the portal still appeared incorrectly. My Fortigate is 200B, OS is v4.0,build0637,120817 (MR3 Patch 9) Except that appearance error, everything else works well.
=========>
=========>
5 REPLIES 5
Dave_Hall
Honored Contributor

I would have said post the html code here (in a <code><code> block) but not sure how the site' s forum posting code will parse it. From the screen shot, it looks as if one or two lines of code was copied twice, maybe you have %%SSL_LOGIN%% embedded twice. Unless you are familiar with html/JavaScript coding, I be wearily about copying/using html code from another model. Having used text comparison tools for convert/migrating config settings from one model to another, I have noticed that some of the default code in those those inline replacemsg sections do change from firmware to firmware and model to model. (I am guessing this is done to fix html errors, close exploits, and provide better browser support.) If you have a copy of the default config used on the 200B, I would say just use the replacemsg sslvpn " sslvpn-login" section from that.

NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C

NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C
networkingkool
New Contributor

Thanks for reply,
<html>
   <head>
     <meta http-equiv=" Content-Type"  content=" text/html; charset=UTF-8" >
     <title>
       Secure SSL-VPN Portal
     </title>
     <meta http-equiv=" Pragma"  content=" no-cache" >
     <meta http-equiv=" cache-control"  content=" no-cache" >
     <meta http-equiv=" cache-control"  content=" must-revalidate" >
     <link href=" /sslvpn/css/login.css"  rel=" stylesheet"  type=" text/css" >
     <script type=" text/javascript" >
       if (top && top.location != window.location) top.location = top.location;
       if (window.opener && window.opener.top) {
         window.opener.top.location = window.opener.top.location;
         self.close();
       }
     </script>
   </head>
   <body class=" main" >
     <center>
       <table width=" 100%"  height=" 100%"  align=" center"  class=" container"  valign=" middle"  cellpadding=" 0"  cellspacing=" 0" >
         <tr valign=middle>
           <td>
             <form action=" %%SSL_ACT%%"  method=" %%SSL_METHOD%%"  name=" f"  autocomplete=" off" >
               <table class=" list"  cellpadding=10 cellspacing=0 align=center width=400 height=180>
                 <tr class=" dark" >
                   <td colspan=2>
                     <b>
                       Please Login
                     </b>
                   </td>
                 </tr>
                 %%SSL_LOGIN%%
                 <tr>
                   <td>
                   </td>
                   <td id=login>
                     <input type=button name=login_button id=login_button value=" Login"  onClick=" try_login()"  border=0>
                   </td>
                   
                 </tr>
               </table>
               %%SSL_HIDDEN%%
             </td>
           </tr>
         </table>
       </form>
     </center>
   </body>
   <script>
     document.forms[0].username.focus();
   </script>
 </html>
This is my default code on 200B. As I mentioned in first post, My SSLVPN portal is not correct then I copied code from my old fortigate 110C. In 110C SSL VPN portal appearance is OK, but in 200B is still not OK. Nothing changes.
=========>
=========>
Dave_Hall
Honored Contributor

The code with " Please Login" and " <input type=button name=login_button id=login_button value=" Login" onClick=" try_login()" border=0>" is not needed as the code in %%SSL_LOGIN%% suppose to display/prompt the user for that info. The code in our 200B config section for " replacemsg sslvpn " sslvpn-login" looks like this:
<html>
 <head>
 <meta http-equiv=\" Content-Type\"  content=\" text/html; charset=UTF-8\" >
 <title>login</title>
 <meta http-equiv=\" Pragma\"  content=\" no-cache\" >
 <meta http-equiv=\" cache-control\"  content=\" no-cache\" >
 <meta http-equiv=\" cache-control\"  content=\" must-revalidate\" >
 <link href=\" /sslvpn/css/login.css\"  rel=\" stylesheet\"  type=\" text/css\" >
 <script type=\" text/javascript\" >if (top && top.location != window.location) top.location = top.location;if (window.opener && window.opener.top) { window.opener.top.location = window.opener.top.location; self.close(); }</script>
 </head>
 <body class=\" main\" >
 <center>
 <table width=\" 100%\"  height=\" 100%\"  align=\" center\"  class=\" container\"  valign=\" middle\"  cellpadding=\" 0\"  cellspacing=\" 0\" >
 <tr valign=middle>
 <td>
 <form action=\" %%SSL_ACT%%\"  method=\" %%SSL_METHOD%%\"  name=\" f\"  autocomplete=\" off\" >
 <table class=\" list\"  cellpadding=10 cellspacing=0 align=center width=400 height=180>%%SSL_LOGIN%%</table>%%SSL_HIDDEN%%</td>
 </tr>
 </table>
 </form>
 </center>
 </body>
 <script>document.forms[0].username.focus();</script>
 </html>

NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C

NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C
rwpatterson
Valued Contributor III

Have you tried a different browser? You' re using IE. Did you try compatibility mode?

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
networkingkool

ORIGINAL: Dave Hall The code with " Please Login" and " <input type=button name=login_button id=login_button value=" Login" onClick=" try_login()" border=0>" is not needed as the code in %%SSL_LOGIN%% suppose to display/prompt the user for that info. The code in our 200B config section for " replacemsg sslvpn " sslvpn-login" looks like this:
<html>
 <head>
 <meta http-equiv=\" Content-Type\"  content=\" text/html; charset=UTF-8\" >
 <title>login</title>
 <meta http-equiv=\" Pragma\"  content=\" no-cache\" >
 <meta http-equiv=\" cache-control\"  content=\" no-cache\" >
 <meta http-equiv=\" cache-control\"  content=\" must-revalidate\" >
 <link href=\" /sslvpn/css/login.css\"  rel=\" stylesheet\"  type=\" text/css\" >
 <script type=\" text/javascript\" >if (top && top.location != window.location) top.location = top.location;if (window.opener && window.opener.top) { window.opener.top.location = window.opener.top.location; self.close(); }</script>
 </head>
 <body class=\" main\" >
 <center>
 <table width=\" 100%\"  height=\" 100%\"  align=\" center\"  class=\" container\"  valign=\" middle\"  cellpadding=\" 0\"  cellspacing=\" 0\" >
 <tr valign=middle>
 <td>
 <form action=\" %%SSL_ACT%%\"  method=\" %%SSL_METHOD%%\"  name=\" f\"  autocomplete=\" off\" >
 <table class=\" list\"  cellpadding=10 cellspacing=0 align=center width=400 height=180>%%SSL_LOGIN%%</table>%%SSL_HIDDEN%%</td>
 </tr>
 </table>
 </form>
 </center>
 </body>
 <script>document.forms[0].username.focus();</script>
 </html>
Thanks to Dave, I have copied your code, it works, but no color on it. However to me it ' s Ok. Simpleness is always efficiency. To my old fault, I try to use Chrome, Firefox, IE but with the same appearance.
=========>
=========>
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors