The file format of the "white" resources' URLs: [Документация VAS Experts]

This is an old revision of the document!


The "white resources" list is created in two steps: first, a text file with the list of resources is created. Second, this file is converted into internal dictionary's format by the special utility.

The file format of the "white" resources' URLs:

Each line contains one URL (no http:// prefix). For example:

1magehut.com/users.php?act=gallery&gal=81&page=4
3dmx.net

To convert into the internal format1):

cat my_url_list.txt|url2dic my_url_list.dic

The file format of the "white" names in SSL certificates:

Each line contains one имя. For example:

*.facebook.com
www.vasexperts.ru

To convert into the internal format2):

cat my_cn_list.txt|url2dic my_cn_list.dic

The file format of the "white" ip addresses:

Each line contains one ip <space> port's number (443):

78.47.115.34 443
95.211.6.92 443

To convert into the internal format:

cat my_ip_list.txt|ip2bin my_ip_list.bin

To place the lists into DPI configuration directory:

mv my_url_list.dic /var/lib/dpi/whlist.bin
mv my_cn_list.dic /var/lib/dpi/whlistcn.bin
mv my_ip_list.bin  /var/lib/dpi/whlistip.bin