D-Link DFL-260E User Manual for DFL-260E - Page 406
Tip: HTML file changes need to be saved
View all D-Link DFL-260E manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 406 highlights
8.3. Customizing Authentication HTML Pages Chapter 8. User Authentication This example shows how to modify the contents of the URL forbidden HTML page. Web Interface 1. Go to: Objects > HTTP Banner files > Add > Auth Banner Files 2. Enter a name such as new_forbidden and press OK 3. The dialog for the new set of ALG banner files will appear 4. Click the Edit & Preview tab 5. Select FormLogin from the Page list 6. Now edit the HTML source that appears in the text box for the Forbidden URL page 7. Use Preview to check the layout if required 8. Press Save to save the changes 9. Click OK to exit editing 10. Go to: Objects > ALG and select the relevant HTML ALG 11. Select new_forbidden as the HTML Banner 12. Click OK 13. Go to: Configuration > Save & Activate to activate the new file Tip: HTML file changes need to be saved In the above example, more than one HTML file can be edited in a session but the Save button should be pressed to save any edits before beginning editing on another file. Uploading with SCP It is possible to upload new HTTP Banner files using SCP. The steps to do this are: 1. Since SCP cannot be used to download the original default HTML, the source code must be first copied from the WebUI and pasted into a local text file which is then edited using an appropriate editor. 2. A new Auth Banner Files object must exist which the edited file(s) is uploaded to. If the object is called ua_html, the CLI command to create this object is: gw-world:/> add HTTPAuthBanners ua_html This creates an object which contains a copy of all the Default user auth banner files. 3. The modified file is then uploaded using SCP. It is uploaded to the object type HTTPAuthBanner and the object ua_html with property name FormLogin. If the edited Formlogon local file is called my.html then using the Open SSH SCP client, the upload command would be: pscp my.html [email protected]:HTTPAuthBanners/ua_html/FormLogin The usage of SCP clients is explained further in Section 2.1.6, "Secure Copy". 4. Using the CLI, the relevant user authentication rule should now be set to use the ua_html. If the rule us called my_auth_rule, the command would be: 406