Skip to content

Custom db

Persistent domain and IP lists defined in the router configuration.

router:
 database:
   - tag: local-rules
     type: custom
     path: data/custom.redb
     list:
       - name: direct
         rules:
           - 'domain:example.org'
           - 'keyword: needle:@ads'
           - 'regexp: ^service[0-9]+\.example$'
           - 'full:host.test'
           - 'ip:192.168.8.1/24'
           - 'ip:192.0.2.10'
           - 'ip:2001:db8::/64'
           - 'ip:2001:db8:1::1'

Fields

tag

  • Type: string
  • Required: yes

path

  • Type: path
  • Required: no
  • Default: data/custom.redb

list

cache-size

  • Type: usize
  • Required: no
  • Default: 128 * 1024

redb page-cache budget in bytes. Defaults to 128 KiB. Zero disables caching.