Hello, I am going to have another go at running unbound without diversion on my RT-AX88U.
I understand dnsmasq disable, but please advise what is the meaning/usage of two other dnsmasq options that are availble there: interfaces and nointerfaces
When
'dnsmasq disable' is issued,
unbound_manager will attempt to migrate any
'interface=' directives currently defined in
'dnsmasq.conf'
e.g. I use several custom
VLANs (created using
VLANSwitch.sh), so they are added to
'/opt/share/unbound/configs/unbound.conf.localhosts'
Code:
# Replicate dnsmasq 'interface=' directives
server:
#interface: 10.88.101.1 # br1
#interface: 10.88.102.1 # br2
#interface: 10.88.103.1 # br3
#interface: 10.88.104.1 # br4
#interface: 10.88.105.1 # br5
#interface: 10.88.241.1 # wl0.1
#interface: 10.88.242.1 # wl0.2
#interface: 10.88.243.1 # wl0.3
#interface: 10.88.51.1 # wl1.1
#interface: 10.88.52.1 # wl1.2
#interface: 10.88.53.1 # wl1.3
interface: 10.88.20.1 # vlan20
interface: 10.88.30.1 # vlan30
interface: 10.88.50.1 # vlan50
interface: 10.88.40.1 # vlan40
interface: 10.88.200.1 # vlan200
#interface: 10.88.144.1 # vlan144
#interface: 10.88.123.1 # vlan123
#interface: 10.88.80.1 # vlan80
Unfortunately,
unbound will not start if any of the defined interfaces do not (
yet)
physically exist, hence the option to use the
'nointerfaces'
NOTE:
unbound_manager v3.17, now instructs
unbound to ignore any (
as yet) undefined interfaces by using the following in
'unbound.conf'
Code:
ip-freebind: yes # Allow interfaces DOWN during say reboot.
so
unbound will always start even if the interfaces do not
physically exist.
How do I import white list from diversion, I can see ad = Analyse Diversion White/Block lists ([ file_name [type=adblock] ]) but I do not understand the outcome of this action and meaning of file_name and type
The
'ad' command will display something like this
Code:
e = Exit Script [?]
A:Option ==> ad
Analyzing, please be patient.....may take 30 seconds
Analysed Diversion file: 'blockinglist' Type=pixelserv, (Adblock Domains=165379) would add 1999 entries
Analysed Diversion file: 'blacklist' Type=pixelserv, (Adblock Domains=165379) would add 2 entries
Analysed Diversion file: 'whitelist' Type=URL, (Adblock URLs=19) would add 70 entries
or
Code:
e = Exit Script [?]
A:Option ==> ad type=adblock
Analyzing, please be patient.....may take 30 seconds
Analysed Diversion file: 'blockinglist' Type=adblock, (Adblock Domains=165379) would add 1997 entries
Analysed Diversion file: 'blacklist' Type=adblock, (Adblock Domains=165379) would add 1 entries
Analysed Diversion file: 'whitelist' Type=URL, (Adblock URLs=19) would add 70 entries
and three files are created
Code:
/opt/tmp/unbound-whitelist.add
/opt/tmp/unbound-blockinglist.add
/opt/tmp/unbound-blacklist.add
So the resulting files may be used (
manually copy'n'paste) to either replicate the entries for
unbound to use
pixelserv (default), or more likely to include the entries in the
Adblock files (
type=adblock)
I don't use
Diversion, so not sure if the conversion was/is still
actually valid.
The optional
filename is to allow analysing files other than the
default Diversion files, such as a backup/archive etc.