Lists loading EcoNAT Documentation / URL Filtering functionality (DPI) / Lists loading
- Manual loading lists of sites for URL filtering
- Automatically download lists on schedule
- Updating sites base
Manual loading lists of sites for URL filtering
Manual loading is possible for lists with numbers from 1 to 16 (the list with the number 0 is reserved for the Russian Roskomnadzor registry). To manually upload the lists, use the dpiload <list number> <URL> command, where the address is entered in the http://<server address>/<file name>.<file extension> format (see more in "URL Filtering functionality (DPI)" paragraph).
The basic authentication for the target server and FTP-server is supported for uploading the lists. Syntax of loading commands using the authentication
dpiload <list number> http://<username>:<password>@<server address>/<filename>
dpiload <list number> ftp://<username>:<password>@<server address>/<filename>.
For example, if in order to upload black_list.txt list from the 1.1.1.1 http-server corresponding to the list 1 in the system is required to enter the http-server with the username name with the password password, then use the following command:
MyEcoNAT:1:system.dpi# dpiload 1
http://username:password@1.1.1.1/black_list.txt
To perform similar actions on the FTP server, then use the following command:
MyEcoNAT:2:system.dpi# dpiload 1
ftp://username:password@1.1.1.1/black_list.txt
When entering the dpiload 0 command you are initiating the registry update from the Roskomnadzor server. If the download_url parameter is specified in the dpilist0 list settings, and the Roskomnadzor site is not directly accessible to EcoNAT, the download will be performed from the specified in the download_url parameter address.
Example:
MyEcoNAT:2:system.dpi# dpiload 0
list0 will be updated soon
MyEcoNAT:3:system.dpi# dpiload 0 http://username:password@1.1.1.1/dump.xml
http://username:password@1.1.1.1/dump.xml to dump.xml: saved
MyEcoNAT:4:system.dpi# dpiload 0 ftp://username:password@1.1.1.1/dump.xml
ftp://username:password@1.1.1.1/dump.xml to dump.xml: saved
At first we recommend that you upload the list with the dpiload command, then enable the list in the system dpi dpilist<number> configuration space and configure other parameters.
To view the dpilists and URL filtering files, use the dpilist command (see the "List management commands" section).
Automatically download lists on schedule
To automatically upload a list on the schedule you must enable the list, and the update_schedule parameter value must be different from never.
Updating sites base
All loaded and enabled lists are merged inside EcoNAT into a single URL database. With automatic lists loading the database update occurs immediately. In the case of manual lists loading you have to force start the process of updating the database using dpirun command.