Logo

EcoRouter

EcoNAT

EcoQOE

EcoBypass

English

  • Release Notes_EN
  • CAIR EcoNAT Documentation / URL Filtering functionality (DPI) / CAIR

    The EcoNAT system supports the Center for Analyzing Internet Resources database (CAIR). A license is required to connect the database.
    The list of connected licenses is available with the  show license command.

    EcoNAT:4:system.dpi# show license
    CGNAT: Ok
    BRAS: Ok
    DPI: Ok
    RADIUS: Ok
    CAIR: Ok

    When this license is installed, the cair element appears in the system dpi branch of the configuration tree. This element is a modified version of the DPI list, with the following available options:

    EcoNAT:7:system.dpi.cair# ls
    base_url "http://md5.base.cdn.cair.ru/last.txt"
    uplevel_domains_url "http://md5.base.cdn.cair.ru/uplevel_domains.txt"
    update_schedule never

    Where:

    base_url - CAIR base address,

    uplevel_domains_url - address of the top-level domain database ,

    update_schedule - automatic update schedule .

    To manually download the CAIR database, use the dpiload cair command.
    To download the top-level domain database, use the dpiload uplevel command.
    For correct operation of the filter, you must periodically update both databases.
    In the above-mentioned databases, information about sites is stored in the form <md5 hash hostname> <category numbers in hexadecimal form via a colon>. The database contains only domains, i.e. "www.example.com", but not "www.example.com/theme/1".

    Example:

    # head cair.txt -1
    823211830251a3d40804125cdf1a1b13 2

    All domains listed in the CAIR list are blocked in a manner similar to the principle of blocking records of the domain-mask type. For example, if there is an entry in the CAIR database of the form "example.com", then http and https resource requests will be filtered: "www.example.com", "help.example.com", "123.example.com" etc.

    To include categories in the action of one of the DPI lists, the parameter cair_categories is used in which categories are also indicated in hexadecimal form via a colon.

    Example.

    EcoNAT:5:system.dpi.dpilist1# ls
    enable
    bittorrent off
    whitelist_mode off
    log_matches off
    log_pictures off
    exceptions off
    behaviour ignore
    redirect_use_interval off
    redirect_url "http://blocked.operator.ru"
    color_direction both
    color_tos_byte 32
    download_url ""
    update_schedule never
    cair_categories "1:2:20:30:35:36:37:38:39:3c:3e:3f:41:44:49:4e:4f:54:5c:5d:5e:63"
    no_ip ( )
    ip ( 0.0.0.0/0 )

    The list of categories and the corresponding numbers are presented in the table below.

    Decimal

    number

    Hex

    number

    Categorie
    11Alcohol
    22Erotica, pornography
    33Advertising
    44Authorities, government
    55Auto
    66Cinema, online video
    77Construction and repair
    88Consumables
    99Cooking
    10ACountry house
    11BCourses, training
    12CElectronics and Electrical Engineering
    13DIndustrial equipment
    14EFamily
    15FFashion & Style
    1610Finance
    1711art
    1812Computers, hardware
    1913Health
    2014Hobby
    2115Humor
    2216Interior
    2317Internet access Websites of companies providing Internet access services.
    2418Legal services
    2519Literature, e-books
    261Amass media
    271BEngineering
    281CMetallurgy
    291Dmobile connection
    301EMusic
    311FCommunity organizations
    3220Computer games
    3321Pets
    3422A photo
    3523Poster
    3624The property
    3725Religion
    3826School
    3927The science
    4028Sport
    4129Theaters
    422ATransport
    432BTourism
    442CUniversities
    452DJobs & Jobs
    462EWebsite development
    472FChats
    4830Dating websites
    4931Troops and weapons
    5032Forums and blogs
    5133Free Email Server
    5234Free hosting
    5335Illegal assistance to schoolchildren and students
    5436Killings, violence, corpses
    5537Online casino
    5638Social networks
    5739Terrorism, extremism
    583ATrade
    593BUnderwear, swimwear
    603CEnsuring anonymity, crawling content filters
    613DMessaging services
    623EFile exchange networks and sites
    633FTobacco
    6440Search engines
    6541Drugs
    6642Abuse of media freedom
    6844Malicious programs
    6945Improper advertising
    7046Restricted Information
    7147Banners and advertising programs
    7248Driving and cars (negative)
    7349Leisure and entertainment (negative)
    744AHealth and medicine (negative)
    754BCorporate sites
    774DSending SMS using Internet resources
    784EBulletin Board
    794FIndecent and rude humor
    8151Image Search Systems
    8252Software
    8353Information trash
    8454Banner servers
    8555White list
    8656Safe for children sites
    8757Short Link Services
    8858Spam
    8959Infringement of copyright and related rights
    905AUnified Register of Roskomnadzor Sites containing information, the distribution of which is prohibited in the Russian Federation (http://eais.rkn.gov.ru).
    915BScammers
    925CFederal list of extremist materials
    935DChild porn
    945EMagic, witchcraft, occultism, theurgy
    955FCounters, analytics, metrics, statistics
    9660Women's sites and magazines
    9761Men's websites and magazines
    9862Earnings on the Internet Sites declared for earnings on the Internet, trade in binary options and other
    10064Forgery of documents
    10165Service sites (api, scripts, js)
    10266Other services
    10367Directories, catalogs
    14591The registry of secure educational sites. Click here for more info

    For viewing the information about the CAIRs categories for the specifyed sites one may use show cairrecords <URL> command.       

    Example

    EcoNAT:12:system.dpi.dpilist1# show cairrecords example1.com
    domain example1.com is present in CAIR categorie(s) 30:2f:38
    EcoNAT:13:system.dpi.dpilist1# show cairrecords example2.com
    domain example2.com is present in CAIR categorie(s) 37:5a
    EcoNAT:14:system.dpi.dpilist1# show cairrecords example3.com
    domain example3.com is not present in CAIR categories