D-Link DFL-260E User Manual for DFL-260E - Page 335
Tip: Saving changes, Uploading with SCP
View all D-Link DFL-260E manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 335 highlights
6.3.4. Dynamic Web Content Filtering Chapter 6. Security Mechanisms 1. Go to: Objects > HTTP Banner files > Add > ALG 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 URLForbidden 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: User Authentication > User Authentication Rules 11. Select the relevant HTML ALG and click the Agent Options tab 12. Set the HTTP Banners option to be new_forbidden 13. Click OK 14. Go to: Configuration > Save & Activate to activate the new file 15. Press Save and then click OK The new file will be uploaded to NetDefendOS Tip: Saving changes In the above example, more than one HTML file can be edited in a session but the Save button should be pressed to save all edits before beginning to edit 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 ALG Banner Files object must exist which the edited file(s) is uploaded to. If the object is called mytxt, the CLI command to create this object is: gw-world:/> add HTTPALGBanners mytxt This creates an object which contains a copy of all the Default content filtering banner files. 3. The modified file is then uploaded using SCP. It is uploaded to the object type HTTPALGBanner and the object mytxt with the property name URLForbidden. If the edited URLForbidden local file is called my.html then using the Open SSH SCP client, the upload command would be: scp myhtml [email protected]:HTTPAuthBanners/mytxt/URLForbidden The usage of SCP clients is explained further in Section 2.1.6, "Secure Copy". 4. Using the CLI, the relevant HTTP ALG should now be set to use the mytxt banner files. If the ALG us called my_http_alg, the command would be: 335