More info for newbui on adblocking

Hi,

I hope somebody can help me out to clarify the working or difference on the Adblock and DNS filtering within Nethsecurity

In the threadshield menu I see the fllowing options to block ads
image

But in the documentation on DNS filter β€” NethSecurity documentation
I see adblock which has the be enabled manually at the prompt

But what is the difference between these to ?
Please in simple english :innocent:

I could be wrong, but the threat shield from your screenshot is used to block ads by IP blocklists through banip, while adblock blocks DNS queries from a blocklist of domains. An additional option is to use DNS servers from a third-party provider (the docs mention flashstart).

I think you’ll get it more clearly and in detail from these docs:

1 Like

Thanks Marc

I’ve adblock enabled, but it is not using any active_sources.

 /etc/init.d/adblock status
::: adblock runtime information
  + adblock_status  : running
  + adblock_version : 4.1.5
  + blocked_domains : 0
  + active_sources  : -
  + dns_backend     : dnsmasq (-), /tmp/dnsmasq.d
  + run_utils       : download: /usr/bin/curl, sort: /usr/libexec/sort-coreutils, awk: /usr/bin/gawk
  + run_ifaces      : trigger: -, report: -
  + run_directories : base: /tmp, backup: /tmp/adblock-Backup, report: /tmp/adblock-Report, jail: /tmp
  + run_flags       : backup: βœ”, flush: ✘, force: βœ”, search: ✘, report: ✘, mail: ✘, jail: ✘
  + last_run        : -
  + system          : VMware, Inc. VMware Virtual Platform, NethSecurity 8-23.05.3-ns.1.0.1 r23809-234f1a2efa

The adblock.sources.gz is in the directory and contains some sites
How can i enable those sources ?

do you have luci-app-adblock installed as well?

I don’t think so. This is not mentioned in the Docu
How can i do this ?

β€” UPDATE

opkg install luci-app-adblock
Package luci-app-adblock (git-23.189.72983-3072876) installed in root is up to d                                               ate.

Is this command removing the sources ?

uci del adblock.global.adb_sources

Ok.

I think i’ve found something

I’ve added :
list adb_sources 'adaway'
to the config and now it enabled

 /etc/init.d/adblock status
::: adblock runtime information
  + adblock_status  : enabled
  + adblock_version : 4.1.5
  + blocked_domains : 4289
  + active_sources  : adaway
  + dns_backend     : dnsmasq (-), /tmp/dnsmasq.d
  + run_utils       : download: /usr/bin/curl, sort: /usr/libexec/sort-coreutils, awk: /usr/bin/gawk
  + run_ifaces      : trigger: -, report: -
  + run_directories : base: /tmp, backup: /tmp/adblock-Backup, report: /tmp/adblock-Report, jail: /tmp
  + run_flags       : backup: βœ”, flush: ✘, force: ✘, search: ✘, report: ✘, mail: ✘, jail: ✘
  + last_run        : restart, 0m 3s, 1008/689/752, 2024-06-15T14:02:16+02:00
  + system          : VMware, Inc. VMware Virtual Platform, NethSecurity 8-23.05.3-ns.1.0.1 r23809-234f1a2efa

According to the documentation, with luci-app-adblock installed most options shall be accessible from Luci web interface.

1 Like

Do you know how to enter the luci web interface ?
Or is there a section added in the Nethsecurity dashboard ?

---------- UPDATE ---------

found it

https://docs.nethsecurity.org/en/latest/remote_access.html

NethSecurity offers also LuCI, the original OpenWrt web interface, which provides a wide range of configuration options but is not officially supported. Luci is disabled by default. To enable it, execute: