Ad blocking on WRT1900ACv2

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Author Message
andrewvideo
DD-WRT Novice


Joined: 21 Jun 2019
Posts: 6

PostPosted: Fri Jun 21, 2019 22:23    Post subject: Ad blocking on WRT1900ACv2 Reply with quote
I am looking for help to block ads on my WRT1900ACv2

my WRT1900ACv2 not blocking any ads.

I tried using this guide https://wiki.dd-wrt.com/wiki/index.php/Ad_blocking

Firmware: DD-WRT v3.0-r37305 std (10/10/1Cool
WRT1900ACv2

Also tried a full reset.

Can some tell me what I am doing worng or this guide work with my router.

Thank you for your help
Sponsor
Eyerex
DD-WRT User


Joined: 11 Feb 2016
Posts: 198
Location: South London

PostPosted: Sat Jun 22, 2019 9:26    Post subject: Reply with quote
I tried setting up when i first got my WRT1900 but in the end i bought a Raspberry Pi to run PiHole
_________________
| Netgear Nighthawk X4S R7800 | Linksys WRT1900ACS V1 | Huawei Echolife HG612 3B |
andrewvideo
DD-WRT Novice


Joined: 21 Jun 2019
Posts: 6

PostPosted: Sat Jun 22, 2019 11:22    Post subject: Reply with quote
I don't realy want to use the pi hole. Plus the router is good engoh to the job. I know the pi hole is realy good. just means I need to go out buy one and plus more cables. I like my set up to be clean.

Aslo I not sure 3m ethernet cable (POE) - cat6 can take the power of the router and the pi same time. I would plug the pi in the router USB port.
andrewvideo
DD-WRT Novice


Joined: 21 Jun 2019
Posts: 6

PostPosted: Sun Jun 23, 2019 11:11    Post subject: Reply with quote
Do my router have JFFS Support? I cant seem to get it to work.

Tried this no luck

The steps to enable JFFS through the router web page are very specific. To avoid having to reset and reprogram your router, it's smart to make a backup here of your settings. If you follow these steps exactly, it should not lock up.

On the router web page click on Administration.
Scroll down until you see JFFS2 Support section.
Click Enable JFFS.
Click Save.
Wait couple seconds, then click Apply.
Wait again. Go back to the Enable JFFS section, and enable Clean JFFS.
Do not click "Save". Click Apply instead.

The router formats the available space.

Wait till you get the web-GUI back, then disable "Clean JFFS" again.
Click "Save".
Reboot the router,

Also tried

Code:
nvram set jffs_mounted=1
nvram set enable_jffs2=1
nvram set sys_enable_jffs2=1
nvram set clean_jffs2=1
nvram set sys_clean_jffs2=1
nvram commit
reboot
andrewvideo
DD-WRT Novice


Joined: 21 Jun 2019
Posts: 6

PostPosted: Sun Jun 23, 2019 14:44    Post subject: Reply with quote
I downgraged the firmwire and got eveything working

Thank you for your help and time.
andrewvideo
DD-WRT Novice


Joined: 21 Jun 2019
Posts: 6

PostPosted: Sun Jun 23, 2019 14:52    Post subject: Reply with quote
I trun off the router and now the ads are not been blocked. Is something I Missing? Cheers
Zyxx
DD-WRT Guru


Joined: 28 Dec 2018
Posts: 733

PostPosted: Sun Jun 23, 2019 17:31    Post subject: Reply with quote
Here the excerpt responsible for "ad blocking" on my Wifi router:
Code:

sleep 20
# get hosts file with unix EOL
wget -qO- http://www.mvps.org/winhelp2002/hosts.txt|grep "^0.0.0.0" >> /tmp/hosts
# re-read hosts file
killall -HUP dnsmasq

Copied years ago from this forum, somewhere... Kudos to the author Smile

It just works, ads are nearly gone. Finaly able to surf with tablet and mobile.
Since my router restarts at 5'o clock in the morning, the list is refreshed once a day.

Of course the solution is not perfect, but lightweight.

1) Get the file as terminalwindow
2) grep every line beginning with 0.0.0.0 into tmp/hosts
3) restart dnsmasq (issued cause "hangup")
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum