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!

Before I change the setting above from 20 to 25, I had 26MB of free RAM.

Now, after 15 minutes after changing it to 25, I have just under 71MB of free RAM.

I'm sure it will go down to my usual 29 to 26MB in a few hours (because, Linux), but it means that more RAM will be used for routing and other duties too. :)
Remember, unused RAM is wasted RAM. :D
 
It doesn't make any difference in memory having more hosts per line, it just decreases the file size.

Code:
$ tail /tmp/adblock.hosts
0.0.0.0 zzzyzs.net
:: zzzyzs.net
0.0.0.0 zzzzz.cauction.hop.clickbank.net
:: zzzzz.cauction.hop.clickbank.net
0.0.0.0 zzzzz.regmum.hop.clickbank.net
:: zzzzz.regmum.hop.clickbank.net
0.0.0.0 zzzzzqp.com
:: zzzzzqp.com
0.0.0.0 zzzzzzzz.su
:: zzzzzzzz.su

$ cat "/proc/$(ps | awk '$2=="nobody"&&$5=="dnsmasq"{print $1}')/status"
Name:   dnsmasq
State:  S (sleeping)
Tgid:   23617
Pid:    23617
PPid:   1
TracerPid:      0
Uid:    65534   65534   65534   65534
Gid:    65534   65534   65534   65534
FDSize: 32
Groups:
VmPeak:   124228 kB
VmSize:   124228 kB
VmLck:         0 kB
VmHWM:    123672 kB
VmRSS:    123672 kB
VmData:   123216 kB
VmStk:       136 kB
VmExe:       384 kB
VmLib:       464 kB
VmPTE:       126 kB
VmSwap:        0 kB
Threads:        1
SigQ:   0/4022
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000001000
SigCgt: 0000000000016a03
CapInh: 0000000000000000
CapPrm: 0000000000003400
CapEff: 0000000000003400
CapBnd: ffffffffffffffff
Cpus_allowed:   3
Cpus_allowed_list:      0-1
voluntary_ctxt_switches:        77
nonvoluntary_ctxt_switches:     1165

Code:
$ tail /tmp/adblock.hosts
0.0.0.0 zyski-z-innowacji.pl zysyeg.plesa.maxgrowth.ru zyt-scholarship.com zytpirwai.net zywekolory.pl zywno.pl zyworld.com zyxqstudio.com zyy8zblby6.neliver.com zyyxeotxxdzarij.usa.cc zyz-industry.cf zyzhjc.com zz-xx.tk zz.cpcempower.com zz.cqcounter.com zz.kjukenhi.in zz.zeroredirect1.com zz0580.com zz6vwhtwdigk4htm3spj.galton.pila.pl zz918pge4j.neliver.com zz9ntlqywb.neliver.com zz9pza.net zzajjyj.com zzanchi.com zzarzlfyun.neliver.com
:: zyski-z-innowacji.pl zysyeg.plesa.maxgrowth.ru zyt-scholarship.com zytpirwai.net zywekolory.pl zywno.pl zyworld.com zyxqstudio.com zyy8zblby6.neliver.com zyyxeotxxdzarij.usa.cc zyz-industry.cf zyzhjc.com zz-xx.tk zz.cpcempower.com zz.cqcounter.com zz.kjukenhi.in zz.zeroredirect1.com zz0580.com zz6vwhtwdigk4htm3spj.galton.pila.pl zz918pge4j.neliver.com zz9ntlqywb.neliver.com zz9pza.net zzajjyj.com zzanchi.com zzarzlfyun.neliver.com
0.0.0.0 zzb.bz zzb.kz zzbbmm.com zzbgjjc.com zzbhfw.com zzbkltrje.com zzbroya.com.ua zzcihevvdigesting.download zzcylm.net zzdatpatchily.review zzdkjtdtvw.neliver.com zzdnet.com zzdwys.com zzdy.gumohib.yi.org zzefs.com zzejxebbzoi.cn zzerkalo.ru zzf0pzzpmy.neliver.com zzfldy.top zzforcesecureq.site zzfpgzvew7.neliver.com zzfyky.com zzg90296.zapto.org zzgszjdv.com zzgzq.qufewec.yi.org
:: zzb.bz zzb.kz zzbbmm.com zzbgjjc.com zzbhfw.com zzbkltrje.com zzbroya.com.ua zzcihevvdigesting.download zzcylm.net zzdatpatchily.review zzdkjtdtvw.neliver.com zzdnet.com zzdwys.com zzdy.gumohib.yi.org zzefs.com zzejxebbzoi.cn zzerkalo.ru zzf0pzzpmy.neliver.com zzfldy.top zzforcesecureq.site zzfpgzvew7.neliver.com zzfyky.com zzg90296.zapto.org zzgszjdv.com zzgzq.qufewec.yi.org
0.0.0.0 zzhauk.com zzhc.vnet.cn zzhcibi3xl.neliver.com zzhhc.cn zzhomes.com zzhrcw.com zzhuajing.com zzhytzy.com zzilod6d87.neliver.com zzjhdxby.com zzjrzdzlgv1lzr8jyr-noreply-netflix.info zzkadra-kwbbelchatow.com.pl zzlrcw.com zzmx.fj.cn zzn3t2prfa.neliver.com zznleolntyj.com zznvfgzyny.neliver.com zzodpsxitd.neliver.com zzollinger.ch zzp5wldr7z.neliver.com zzpapahost.com zzpcriskalertus.club zzpe4ork.ashgabad.su zzpmaph.info zzptzdhugavot.review
:: zzhauk.com zzhc.vnet.cn zzhcibi3xl.neliver.com zzhhc.cn zzhomes.com zzhrcw.com zzhuajing.com zzhytzy.com zzilod6d87.neliver.com zzjhdxby.com zzjrzdzlgv1lzr8jyr-noreply-netflix.info zzkadra-kwbbelchatow.com.pl zzlrcw.com zzmx.fj.cn zzn3t2prfa.neliver.com zznleolntyj.com zznvfgzyny.neliver.com zzodpsxitd.neliver.com zzollinger.ch zzp5wldr7z.neliver.com zzpapahost.com zzpcriskalertus.club zzpe4ork.ashgabad.su zzpmaph.info zzptzdhugavot.review
0.0.0.0 zzqhsrg.ru zzqingying.com zzqrt.com zzrvy6jvfr.neliver.com zzscidoyvr.neliver.com zzseonlne.com zzshw.net zzsyw.com zztabwatoke.review zztnal.org zztonuvcrnolfdt.usa.cc zzts2008.com zztysp.com zzusapcriskalertd.club zzwx.ru zzxcgasdasdd.com zzxd7ali0k.neliver.com zzxxccllkkjj99.zapto.org zzxxjs.net zzxxyy.000webhostapp.com zzy9sbz9qe.neliver.com zzygdx.com zzyimiao.com zzyin.cn zzyirul7zj.neliver.com
:: zzqhsrg.ru zzqingying.com zzqrt.com zzrvy6jvfr.neliver.com zzscidoyvr.neliver.com zzseonlne.com zzshw.net zzsyw.com zztabwatoke.review zztnal.org zztonuvcrnolfdt.usa.cc zzts2008.com zztysp.com zzusapcriskalertd.club zzwx.ru zzxcgasdasdd.com zzxd7ali0k.neliver.com zzxxccllkkjj99.zapto.org zzxxjs.net zzxxyy.000webhostapp.com zzy9sbz9qe.neliver.com zzygdx.com zzyimiao.com zzyin.cn zzyirul7zj.neliver.com
0.0.0.0 zzypjyywn.fiepiux.maxgrowth.ru zzyuz3ant3.neliver.com zzyzjk.com zzz.clickbank.net zzz.nosu.yi.org zzz78.tk zzzbfvfglucoside.review zzzessay.com zzzha.com zzzkjwiive.neliver.com zzzl.org zzzort10xtest123.com zzzrtrcm2.com zzzxxxcc.no-ip.biz zzzyzs.net zzzzz.cauction.hop.clickbank.net zzzzz.regmum.hop.clickbank.net zzzzzqp.com zzzzzzzz.su
:: zzypjyywn.fiepiux.maxgrowth.ru zzyuz3ant3.neliver.com zzyzjk.com zzz.clickbank.net zzz.nosu.yi.org zzz78.tk zzzbfvfglucoside.review zzzessay.com zzzha.com zzzkjwiive.neliver.com zzzl.org zzzort10xtest123.com zzzrtrcm2.com zzzxxxcc.no-ip.biz zzzyzs.net zzzzz.cauction.hop.clickbank.net zzzzz.regmum.hop.clickbank.net zzzzzqp.com zzzzzzzz.su

$ cat "/proc/$(ps | awk '$2=="nobody"&&$5=="dnsmasq"{print $1}')/status"
Name:   dnsmasq
State:  S (sleeping)
Tgid:   26654
Pid:    26654
PPid:   1
TracerPid:      0
Uid:    65534   65534   65534   65534
Gid:    65534   65534   65534   65534
FDSize: 32
Groups:
VmPeak:   124236 kB
VmSize:   124236 kB
VmLck:         0 kB
VmHWM:    123680 kB
VmRSS:    123680 kB
VmData:   123224 kB
VmStk:       136 kB
VmExe:       384 kB
VmLib:       464 kB
VmPTE:       128 kB
VmSwap:        0 kB
Threads:        1
SigQ:   0/4022
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000001000
SigCgt: 0000000000016a03
CapInh: 0000000000000000
CapPrm: 0000000000003400
CapEff: 0000000000003400
CapBnd: ffffffffffffffff
Cpus_allowed:   3
Cpus_allowed_list:      0-1
voluntary_ctxt_switches:        32
nonvoluntary_ctxt_switches:     2034
Not using Diversion there, but addn-hosts=/tmp/adblock.hosts is in my dnsmasq config.


I don't think your test is comparable to what Diversion is doing with 1.055M blocked domains. :)
 
I don't think your test is comparable to what Diversion is doing with 1.055M blocked domains. :)
That was using a host file blocking 811469 domains, the exact same way diversion does.
Code:
pc_append "addn-hosts=${DIVERSION_DIR}/list/blacklist" $CONFIG
 
That was using a host file blocking 811469 domains, the exact same way diversion does.
Code:
pc_append "addn-hosts=${DIVERSION_DIR}/list/blacklist" $CONFIG

Sure doesn't look like 811,469 domains listed there. :)
 
It's a hidden menu entry. Enter b and then dpl (for domains per line) into Diversion and set it to 1.
Then run bu to update the blocking list.
You're welcome.

Tanks man :)

This is very usefull for us -that have use for the old standard in many otherways. Please keep it in newer versions.
 
@thelonelycoder Just out of curiosity, are you still working on Diversion's Web UI in your free time, or that project is shelved for now?
 
@thelonelycoder Just out of curiosity, are you still working on Diversion's Web UI in your free time, or that project is shelved for now?
Still waiting for it's time slot and my motivation to finish it.
 
Block:
0.0.0.0 i-invdn-com.akamaized.net

Might solve the problem

Thanks for suggestion but it doesn't work.
Blocking that line results in website not working properly.
Taking a look at the source code, I noticed this:
Code:
<!--Adblock Check-->

    jQuery(document).ready(checkAds());

    function checkAds(){

        function isIE() {
            var ua = window.navigator.userAgent;
            var trident = ua.indexOf('Trident/');
            var edge = ua.indexOf('Edge/');
            var msie = ua.indexOf('MSIE ');
            return Math.max(msie,edge,trident)>0;

        }

        var isIE = isIE();
        var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor) && !isIE;
        var isFireFox = /Firefox/.test(navigator.userAgent);
        var isSafari = /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor);
        var isOneOfThoseBrowsers = [isIE,isChrome,isFireFox,isSafari].indexOf(true)>-1;

        var b = 2;

        //var hasAdsenseBlock = !!$('#adsense').length;
        //var hasShadowDom = (!!$("html")[0].shadowRoot);
        //var headerIsShown = ($(".midHeader").height() > 0 && $(".midHeader").css('display') !== 'none');

                  
        if (window.google_ad_status == 1){

            var adbBlk = getCookie('adbBLk');
            if(isOneOfThoseBrowsers && adbBlk>0){
                ga('allSitesTracker.set', 'dimension22', '1_Blk_No');
                setCookie('adbBLk',1,-1000);
            } 
            
        }else{

            b = 1;
            $('#TopTextAd').css('display','flex');

            if(isOneOfThoseBrowsers) {
                setCookie('adbBLk',1,1000,'/');
                ga('allSitesTracker.set', 'dimension21', '1_Blk_Yes');
                
                                    ga('allSitesTracker.set', 'dimension24', '1_AdBlkPopup');
                            }
        }
        
        $.ajax({
            url: "/jp.php?b="+b+"&k=MGczM2RmMzkyNzxhMzQyNWVgNW5mYmJpMDZjaGYyZmpjbDNkMWVkYjI0aTw3NmRoZWM0YWE_ZWFhMGU7MjU3YjAvM3pkZjM-Mjg8dzM1MmJlMDVsZn9iNjBuYyJmNGYkYyUzJzFoZCIye2lmN2FkNw==&d=1&i=1558989880&e=1563325460&lip=dalweb42.forexpros.com&ti=1558989880",
            type: 'get',
            cache: false,
            type: 'GET',
            dataType: 'html',
            success: function (data) {
                  console.log('server jp b1 dalweb42.forexpros.com');
            }
        });
        
    }

    ga('allSitesTracker.set', 'dimension35', 'addGoogle');
                  ga('allSitesTracker.set', 'metric12', '1');
                
    ga('allSitesTracker.send', 'pageview');
    <!--End Adblock Check-->

How can this interfere with Diversion?
Thanks
 
For something that invasive about serving ads you'll probably need to block them via a browser extension, hosts alone won't be enough.
 
So I use PIA VPN which has its own DNS servers and uses them by default, each one being catered to whatever region VPN IP you connect to. I read that for speed and DNS leak prevention I should keep it as such. I use the most closest local VPN server provided by them (~30 Mi from me or so) but I was wondering if I should keep using PIA's provided DNS server or if I should just switch the option on their VPN client to use "the existing one" aka point to my routers diversion dns based adblocker?
 
Is there a way to get my diversion back?

nodiversion.jpg


This is what I see if I choose Diversion from AMTM or just type Diversion at the prompt.
 
Hi
New to the forum and I hope this is the right place for questions concerning Diversion.

I have tried searching the forum but seem to be out off luck. If this question has been posted and replayed to earlier pleas point me in the right direction.

I seem to be having problem running some sites while Diversion is active.
For example on some sites some JavaScript doesn't work.
The strange thing is that I don't see anything blocked in the log.
The sites work fine if I disable Diversion.

I'm having trouble with Facebook on the mobile. And I cant click the links on to the products on this site https://www.jula.se/

Could anyone shed some light on this issue?
Thanks in advance.

Im running
NETGEAR R7000 (384.9) with Xwrt-Vortex, Asuswrt-Merlin
Diversion 4.1.1
pixelserv-tls enable
block list medium
 
Hi
New to the forum and I hope this is the right place for questions concerning Diversion.

I have tried searching the forum but seem to be out off luck. If this question has been posted and replayed to earlier pleas point me in the right direction.

I seem to be having problem running some sites while Diversion is active.
For example on some sites some JavaScript doesn't work.
The strange thing is that I don't see anything blocked in the log.
The sites work fine if I disable Diversion.

I'm having trouble with Facebook on the mobile. And I cant click the links on to the products on this site https://www.jula.se/

Could anyone shed some light on this issue?
Thanks in advance.

Im running
NETGEAR R7000 (384.9) with Xwrt-Vortex, Asuswrt-Merlin
Diversion 4.1.1
pixelserv-tls enable
block list medium
You won't be able to get help in this forum since you are running an illegal fork.

https://www.snbforums.com/threads/a...d-forks-on-non-asus-devices-is-illegal.44636/

Asuswrt-Merlin contains numerous proprietary components that are only licensed for legal use on original Asus devices. These include (but are not limited to) components from Asus themselves, Broadcom, Trend Micro and Tuxera. Using any of these components on devices for which they haven't been licensed for is ILLEGAL.

The Asuswrt-Merlin developers will take no responsibility for license violation made by third party or end-users running that software on a non-approved Asus device. Any discussion on these forums about such illegal forks will be deleted.
 
You won't be able to get help in this forum since you are running an illegal fork.
Discussion about illegal forks is not permitted here but this is a pure Diversion issue.
So if someone has any ideas, please pipe in and let @David Hermansson know how to fix it.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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