en:dpi:dpi_bestpractice:dpi_bestpractice_school_white_list [Документация VAS Experts]

This is an old revision of the document!


5 Domains Whitelist for School

Example of creating "Domains whitelist for school" service
The list initially presented by:
ООО "Technologii Svyazi", Mickhailovka
Vetunev Sergey Nikolaevich
System Administrator
nightlord34@yandex.ru

In order to make additions to the list please provide the domain list to be excluded/included to the technical support
Domain whitelist for school updated: 28.11.2017

yum -y install wget

mkdir /home/school; cd /home/school

# remove old lists 
rm -f *.txt

# download lists, one for HTTP and another for HTTPS(SNI)
wget www.vasexperts.ru/upload/school/white_school.txt

# convert it
cat white_school.txt | url2dic white_school.bin

# create profile
# Note that in order to update the lists, the following command is enough to be repeated with a different list file name
fdpi_ctrl load profile --service 5  --profile.name school_white --profile.json '{ "url_list" : "/home/school/white_school.bin" , "sni_list" : "/home/school/white_school.bin", "redirect" : "www.vasexperts.ru/upload/school/school_block.php" }'

# assign the list for the subscriber
fdpi_ctrl load --service 5 --profile_name school_white --login user02
or
fdpi_ctrl load --service 5 --profile_name school_white --ip 192.168.0.11
# see the fdpi_ctrl description in more detail