What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

but how i can check if it works ??? i see in the ui that 1 host file is blocked but no ads countet
Ads are couted twice daily, at 5:20 and 20:17 every day. To see the latest count enter ac in Diversion.
alsow can i set that some devices can show ads?? like my work pc for websites and my smartphone to see ads for getting gems in games
Works for Diversion too: https://www.ab-solution.info/faq-reader/how-to-exclude-a-client-from-ad-blocking.html
 
/opt/share/diversion/.conf/diversion.conf has this content:

START FILE, --- lines are not part of file
---------------------------------------------------
## DO NOT EDIT THIS FILE ##

# General settings #
NAME=Diversion
thisVERSION=4.0
thisM_VERSION=1
EDITION=
THEME=local
INSTALL_URL=https://diversion.ch/diversion
DIVERSION_STATUS=enabled
adblocking=on
logging=
editorColor=
editorPaginate=
shHistory=on

# Communication settings #

# Blocking file settings #
bfType=Standard
bfPlusHosts=
bfUpdateDay=Monday
bfUpdateDOW=Mon
bfUpdateHour=2
bfUpdateLastRun="Sep 10 14:22:23"
bfUpdatePrevRun=""
blockingIP="0.0.0.0"

# Entware settings #
entPath=""
entVersion=""

# Ad-blocking counters #
blockedDomains=60081
adsBlocked=0
adsWeek=0
adsNew=0
adsPrevCount=""
adsLastCount=""

# Messaging #

---------------------------------------------------
END FILE
Enter this in your terminal and post output:
Code:
echo $(/bin/mount | grep -E "ext2|ext3|ext4" | cut -d" " -f3)
 
admin@RT-N66U-12F0:/tmp/home/root# echo $(/bin/mount | grep -E "ext2|ext3|ext4"
| cut -d" " -f3)
/tmp/mnt/sda1
Looking good, now enter this:
Code:
ls /tmp/mnt/sda1/
 
admin@RT-N66U-12F0:/tmp/home/root# echo $(/bin/mount | grep -E "ext2|ext3|ext4"
| cut -d" " -f3)
/tmp/mnt/sda1
Also, the install log would be of interest to me. It too can be found in sf.
 
Also, the install log would be of interest to me. It too can be found in sf.


Select file to show [1-10 e=Exit] 2

____________________________________________________

/opt/share/diversion/log/Diversion-auto-update.log has this content:

START FILE, --- lines are not part of file
---------------------------------------------------
Diversion auto-update log Sat, 01 Aug 2015 01:00:24 +0100
____________________________________________________


[ i ] Getting Diversion files from
https://diversion.ch/diversion/4.0
[ ✔ ] functions.div integrated
[ ✔ ] install.div integrated
[ ✔ ] post-conf.div integrated
[ ✔ ] post-mount.div integrated
[ ✔ ] rotate-logs.div integrated
[ ✔ ] theme.div integrated
[ ✔ ] update-bf.div integrated
[ ✔ ] write-config.div integrated

[ i ] Checking /jffs/scripts entries
[ ✔ ] dnsmasq.postconf
[ ✔ ] post-mount
[ ✔ ] services-stop

[ i ] Initializing Diversion

[ ✔ ] Blocking file

[ i ] Checking cron jobs
[ ✔ ] Blocking file update

[ i ] Checking dnsmasq.conf entries
[ ✔ ] Additional hosts

[ ✔ ] Diversion v4.0.1 auto-update complete
 
The wildcard blacklist blocks every subdomain that ends with, for example, foo.com.
ads.foo.com, news.foo.com, blog.bar.foo.com are blocked if you add foo.com to the wc_blacklist.
However, barfoo.com is not blocked since it is its own domain.

Cool,
Say I have adservers that has names like this:

cdn1.smartadserver.com
diff.smartadserver.com
diff2.smartadserver.com
diff3.smartadserver.com
diff4.smartadserver.com
eqx.smartadserver.com
im2.smartadserver.com
itx4.smartadserver.com

So I put smartadserver.com in wc_blacklist and all subdomainhosts will be blocked (if I understand right).
If I need one of then unblocked, can I add that subhostname to the whitelist and it will not get blocked by the wc_blacklist?
 
Select file to show [1-10 e=Exit] 2

____________________________________________________

/opt/share/diversion/log/Diversion-auto-update.log has this content:

START FILE, --- lines are not part of file
---------------------------------------------------
Diversion auto-update log Sat, 01 Aug 2015 01:00:24 +0100
____________________________________________________


[ i ] Getting Diversion files from
https://diversion.ch/diversion/4.0
[ ✔ ] functions.div integrated
[ ✔ ] install.div integrated
[ ✔ ] post-conf.div integrated
[ ✔ ] post-mount.div integrated
[ ✔ ] rotate-logs.div integrated
[ ✔ ] theme.div integrated
[ ✔ ] update-bf.div integrated
[ ✔ ] write-config.div integrated

[ i ] Checking /jffs/scripts entries
[ ✔ ] dnsmasq.postconf
[ ✔ ] post-mount
[ ✔ ] services-stop

[ i ] Initializing Diversion

[ ✔ ] Blocking file

[ i ] Checking cron jobs
[ ✔ ] Blocking file update

[ i ] Checking dnsmasq.conf entries
[ ✔ ] Additional hosts

[ ✔ ] Diversion v4.0.1 auto-update complete
OK, try updating, trough Diversion d, select update.
 
So I put smartadserver.com in wc_blacklist and all subdomainhosts will be blocked (if I understand right).
Thats correct.
If I need one of then unblocked, can I add that subhostname to the whitelist and it will not get blocked by the wc_blacklist?
No, the wildcard blacklist overrules all the other files. These Dnsmasq directives are directly added to /etc/dnsmasq.conf.
 
OK, try updating, trough Diversion d, select update.

Edit:
"diversion" enter
"d" enter
then can see "update" options. Here's the log:



Enter your selection [1-6 e=Exit] 3
____________________________________________________

[ i ] No updates found for Diversion

Do you want to force update? [1=Yes 2=No] 1

[ i ] Getting latest diversion file
[ ✔ ] diversion integrated

[ i ] Running function update
[ i ] Getting latest installer file
[ ✔ ] install.div integrated

[ i ] Getting Diversion files from
https://diversion.ch/diversion/4.0
[ ✔ ] functions.div integrated
[ ✔ ] post-conf.div integrated
[ ✔ ] post-mount.div integrated
[: bad number
[ ✔ ] rotate-logs.div integrated
[: bad number
[ ✔ ] theme.div integrated
[ ✔ ] update-bf.div integrated
[ ✔ ] write-config.div integrated
[: bad number

[ i ] Checking /jffs/scripts entries
[ ✔ ] dnsmasq.postconf
[ ✔ ] post-mount
[ ✔ ] services-stop

[ i ] Initializing Diversion

[ ✔ ] Blocking file
[: bad number

[ i ] Checking cron jobs
[ ✔ ] Blocking file update

[ i ] Checking dnsmasq.conf entries
[ ✔ ] Additional hosts

[ ✔ ] Diversion v4.0.1 update complete
[: bad number
Diversion 4.0.1 by thelonelycoder

RT-N66U (mips) FW-380.70 @ 192.168.1.1

(ad-blocking and logging off, stats not available)
____________________________________________________

d Diversion enabled
c communication DivUn stats backup FWun

a ad-blocking to IP 0.0.0.0
l logging /opt/var/log/dnsmasq.log

[: bad number
[: bad number

b blocking file Standard Mon @ 2:00
el edit lists

f follow dnsmasq.log

e exit Diversion more options o
____________________________________________________

[ Done ] Diversion v4.0.1 update.
The update log can be viewed in sf

What do you want to do?
 
I don't see an update option:

admin@RT-N66U-12F0:/tmp/home/root# diversion d
____ _ _
| _ \(_)_ _____ _ __ ___(_) ___ _ __
| | | | \ \ / / _ \ '__/ __| |/ _ \| '_ \
| |_| | |\ V / __/ | \__ \ | (_) | | | |
|____/|_| \_/ \___|_| |___/_|\___/|_| |_|

Welcome, this is Diversion 4.0.1

Usage: diversion [option]
Example: 'diversion disable'
Example: 'diversion' (no option) opens full SSH UI

a or adblocking disables/enables ad-blocking
ash_history sorts and removes duplicates in your shell history when enabled
ac or count_ads counts newly blocked ads

disable disables all Diversion services
enable enables active Diversion services

f or follow tails (follows) the Dnsmasq log file
fs fast switches between blocking files
h or help opens this help menu
l or logging disables/enables logging

restart restarts all active Diversion services
In the Diversion UI, enter d, select 3. Update Diversion
 
Edit:
"diversion" enter
"d" enter
then can see "update" options. Here's the log:



Enter your selection [1-6 e=Exit] 3
____________________________________________________

[ i ] No updates found for Diversion

Do you want to force update? [1=Yes 2=No] 1

[ i ] Getting latest diversion file
[ ✔ ] diversion integrated

[ i ] Running function update
[ i ] Getting latest installer file
[ ✔ ] install.div integrated

[ i ] Getting Diversion files from
https://diversion.ch/diversion/4.0
[ ✔ ] functions.div integrated
[ ✔ ] post-conf.div integrated
[ ✔ ] post-mount.div integrated
[: bad number
[ ✔ ] rotate-logs.div integrated
[: bad number
[ ✔ ] theme.div integrated
[ ✔ ] update-bf.div integrated
[ ✔ ] write-config.div integrated
[: bad number

[ i ] Checking /jffs/scripts entries
[ ✔ ] dnsmasq.postconf
[ ✔ ] post-mount
[ ✔ ] services-stop

[ i ] Initializing Diversion

[ ✔ ] Blocking file
[: bad number

[ i ] Checking cron jobs
[ ✔ ] Blocking file update

[ i ] Checking dnsmasq.conf entries
[ ✔ ] Additional hosts

[ ✔ ] Diversion v4.0.1 update complete
[: bad number
Diversion 4.0.1 by thelonelycoder

RT-N66U (mips) FW-380.70 @ 192.168.1.1

(ad-blocking and logging off, stats not available)
____________________________________________________

d Diversion enabled
c communication DivUn stats backup FWun

a ad-blocking to IP 0.0.0.0
l logging /opt/var/log/dnsmasq.log

[: bad number
[: bad number

b blocking file Standard Mon @ 2:00
el edit lists

f follow dnsmasq.log

e exit Diversion more options o
____________________________________________________

[ Done ] Diversion v4.0.1 update.
The update log can be viewed in sf

What do you want to do?
In the Diversion UI, enter d, select 6. Uninstall Diversion. Select 1. Uninstall Diversion and Entware
Then try again to install Diversion.
The problem is that your device /tmp/mnt/sda1 was not properly registered during the install.
Make sure you enter the proper value when the Diversion installer asks you where to install Entware to.
 
In the Diversion UI, enter d, select 6. Uninstall Diversion. Select 1. Uninstall Diversion and Entware
Then try again to install Diversion.
The problem is that your device /tmp/mnt/sda1 was not properly registered during the install.
Make sure you enter the proper value when the Diversion installer asks you where to install Entware to.

upload_2018-9-10_16-31-52.png


upload_2018-9-10_16-32-10.png
 
In the Diversion UI, enter d, select 6. Uninstall Diversion. Select 1. Uninstall Diversion and Entware
Then try again to install Diversion.
The problem is that your device /tmp/mnt/sda1 was not properly registered during the install.
Make sure you enter the proper value when the Diversion installer asks you where to install Entware to.
Seems to be working after reinstall, how can I check? :D
 
Seems to be working after reinstall, how can I check? :D
Looks much better.
Diversion blocks ads, that should be noticable right away.
You can follow the logfile, either through the UI by entering f or use the command-line option:
diversion f
 
Looks much better.
Diversion blocks ads, that should be noticable right away.
You can follow the logfile, either through the UI by entering f or use the command-line option:
diversion f

Yeah, ad-riddled websites recommended on the pi-hole website seem to be running ad-free on both Edge (clean) and Chrome (after removing uBlock Origin).
Any other awesome mods to try out with my RTN66U? Thanks! Have a Raspberry Pi saved up for something else now :D
 
Yeah, ad-riddled websites recommended on the pi-hole website seem to be running ad-free on both Edge (clean) and Chrome (after removing uBlock Origin).
Any other awesome mods to try out with my RTN66U? Thanks! Have a Raspberry Pi saved up for something else now :D
Skynet is not an option due to the old kernel your router runs on.
Enjoy your clean websites, that in itself is a blessing.
 
Was using pi-hole before and had various issues. Changed to Diversion + SkyNet on my AC68U and everything just works. Looking forward to looking at things a little closer now... Thank you lonely coder!

Two questions though:

I notice that when I connect to my router via VPN server from an external location, the Diversion ad-blocking is not active. It's only active from within the LAN.

Not sure if that's got something to do with sharing port 443 between Diversion and VPN server on the router.

I have the custom configration line 'local [ddns-name used on router]' setup on the 443 VPN server. Obviously I replace [ddns-name used on router] with my own personal ddns name! Is this the correct approach for sharing the port? I would use another port but it's the only one that works to get through for most firewalls.

Also is there an ETA for the Diversion GUI? Any time soon?

Cheers and thanks again! :)

Will.
 
My problem is that I have 4 asus routers in diffrent locations over the country.
I dont allow SSH thru WAN as it will be unsafe.

So when I need to change any of these lists: whitelist/blacklist/hostslist/plus-hostslist/wc_blacklist/customlist

At my office then I need to physically SSH to do it, I also need to do it on the router at home and on my summer house and so on. its not that efficiant as you see.

I need an option under el (edit list) "custom diversion hostlists address/Set sync with custom list server " for the whitelist/blacklist/hostslist/plus-hostslist/wc_blacklist/customlist so it will synk to my other routers automatically - when I do changes on list in my server at: http://hostfile.unaux.com/whitelist
Will be ok if it only update/sync once per day.


The "blockinglist" is generated by host file source and updated automatically from Diversions default host file source. I would like to have an option to specify a custom host file server source under the installation of Diversion -becouse I dont want to use the "steven host file" or the "yoyo file" by default. I want it to use http://hostfile.unaux.com/hosts <- from my own server and I want of course diversion to check for updates on that address. I know that you have so that I can specify a custom source of host file but then I need to enable the +list future that get like 4 other host files sources extra -that I also dont want to use. You probably know by now what I meen. Would be grejt if we get an option "[1]Use default host source [2]Add your own host address:" after we choose "install diversion Lite or Standard"

Will this be possible to do?
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top