can I block an unlimited number of web adresses with dd-wrt

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
xrtxrt
DD-WRT Novice


Joined: 26 Jan 2016
Posts: 2

PostPosted: Tue Jan 26, 2016 15:44    Post subject: can I block an unlimited number of web adresses with dd-wrt Reply with quote
I need to block an unlimited number of web addresses, (over a hundred as of date and counting). Is there a limit to how many I can block in DD-WRT ? I know I could use my computer's hosts file but there isn't such a thing on some of my other internet enabled devices.
I don't care if I must input every address one by one.
Sponsor
xrtxrt
DD-WRT Novice


Joined: 26 Jan 2016
Posts: 2

PostPosted: Thu Feb 11, 2016 1:36    Post subject: Reply with quote
Just a bump, just to say i'm still here.
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Thu Feb 11, 2016 2:34    Post subject: Reply with quote
with some well crafted iptable chains on a modern router with external storage you should have no issue blocking >10K IPs / CIDR ranges.

Without external storage free nvram space will be a bigger issue.

A 100 or so IPs is relatively minor.

see https://www.dd-wrt.com/wiki/index.php/Iptables_command

Another solution is to use dnsmasq address or host-record option to null route or redirect the host names.

you can also use privoxy and configure block lists
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6440
Location: UK, London, just across the river..

PostPosted: Thu Feb 11, 2016 13:12    Post subject: Reply with quote
i guess it's more useful to use AD blocking way, just replace the host file location to your desired host to dl the file Smile or edit it manually ...

https://www.dd-wrt.com/wiki/index.php/Ad_blocking

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Fri Feb 12, 2016 6:22    Post subject: Reply with quote
the ad blocking way is the dnsmasq host-record option. if you have a dual stack network ipv4/ipv6 and the hosts you are blocking have ipv6 connectivity then you need to null route for ipv6 as well otherwise the network devices will use the AAAA record returned by dnsmasq. This method also does not null route sub-domains.

the dnsmasq address method resolves both of those isues.
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6440
Location: UK, London, just across the river..

PostPosted: Fri Feb 12, 2016 8:50    Post subject: Reply with quote
yep as i dont have ISP ipv6 provider i don't use it at all, but in dnsmasq address method to put all the addresses in the box and then you get out of ram in case of low ram device Smile or im wrong
_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
bobs
DD-WRT User


Joined: 24 Jan 2016
Posts: 98

PostPosted: Fri Feb 12, 2016 15:31    Post subject: Reply with quote
You really need to use RegEx to keep your block list down.

Also, you COULD consider using a proxy on a Raspberry Pi or similar SoC board, all HTTP / HTTPS connections will then go via that filtering proxy. It can also be a caching proxy too to speed up surfing and keep your (if applicable) WAN quota low.

Going this proxy SoC would give you far more capability and power, and of course storage (limited to SD Card size).

One other thing to do, check FORCE DNS REDIRECT otherwise DNS blocks can be bypassed (Windows also manages to find it's own sneaky way around DNS for some odd reason even when it is not configured for other DNS's!). This way, even if a client is configured for other DNS (OpenDNS or GoogleDNS etc) they will always go via your DNSMasq. Also set it to Authorititive too. You really want to lock it down.

If you have problems on DD-WRT with DNSMasq you can offload it to a Raspberry Pi and configure the DNS in DD-WRT to look there. That is how I do my OpenVPN and other network tasks, using a small itty bitty SoC board.

These are basically Linux machines, with far more storage availability and ease of installing/programming than DD-WRT. You also get a desktop you can run from Windows (Xming X display server if need be, then run it headless as a little useful server)
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions 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 can attach files in this forum
You can download files in this forum