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!

Status
Not open for further replies.
I'm rather new to Merlin, and not that much more experienced with Bash, so I doubt I'll get very far.

Is it the hosts file or the resolve file AB uses to block things? Happy to move this convo to PM or something if we're getting offtopic for this thread
This discussion very much belongs here, in public.
The blocking_file and blacklist.txt set the IP of the domain to either the pixelserv IP or 0.0.0.0 when dnsmasq is asked to resolve it. The null address is a direct blackhole while pixelserve actually responds.
 
I use AB solution and it works great (I use it with pixelserv-tls) I also use Cisco OpenDNS with dnscrypt for dnsmasq's upstream

I do not use any dns on the UI:
View attachment 9223

and I also make sure the clients on theLAN use router for dns:
iptables -t nat -A PREROUTING -i br0 -p udp --dport 53 -j DNAT --to-destination $(nvram get lan_ipaddr)

My dnscrypt service runs on 127.0.0.1:65053 and the ones that are not ads (not blocked by AB) are sent upstream SSL encrypted:
Code:
admin@RT-AC66R-D700:/jffs/scripts# cat /etc/dnsmasq.conf | grep server
server=127.0.0.1#65053
Re. dnscrypt, do I just do this? https://github.com/RMerl/asuswrt-merlin/wiki/Secure-DNS-queries-using-DNSCrypt
 
Hm, the below times out before the router has finished mounting the 4 partitions, and I was left without working DNS until I manually ran it. Should I increase the timeout?
Code:
RC='/opt/etc/init.d/rc.unslung'

i=30
until [ -x "$RC" ] ; do
  i=$(($i-1))
  if [ "$i" -lt 1 ] ; then
    logger "Could not start Entware"
    exit
  fi
  sleep 1
done
$RC start
 
try this: Just put this in a tmp script and run one time:
Code:
  # Resolve DNS name for NTP server
  >/jffs/configs/hosts.add
  ntp_name=$(nvram get ntp_server0)
  for ip in $(/opt/bin/hostip $ntp_name)
  do
    echo $ip $ntp_name >> /jffs/configs/hosts.add
  done

Then reboot your router
 
Will that need running again from time to time? Also I'm not sure what I've done wrong but dns crypt has completely broken my internet, can't even ping
 
Will that need running again from time to time
No, as long as the hosts.add file exists on your /jffs, you should be okay
dns crypt has completely broken my internet
dnscrypt needs accurate time from the timeservers to init the ssl connection. It cannot query the ntp server by hostname, as it itself is doing the dns resolving. The manual addition of the IP addresses of the ntp server will help dnscrypt to resolve that.

Edit: I need to hop off for today, talk to you later.
 
Ah i had to install hostip separately. Also fakehwclock doesn't seem to be saving as expected. Am i supposed to tell it to in service stop?
 
- How important is it to actually import the ca.crt certificates on each of my devices? Is there a guide for how to do it on linux? Or do I just double click and then import the certificate?

It's optional to import the CA cert. If you do, you only need to import the CA cert (not individual certs generated for ad domain). Here is a guide on how to do the import on various platforms.

- I have issues with websites using HSTS. This is an example of what happens when I try to access google docs:

Your connection is not private
Attackers might be trying to steal your information from docs.google.com (for example, passwords, messages, or credit cards).


NET::ERR_CERT_AUTHORITY_INVALID

Are you seeing the error on iOS? I'm aware of recent updates to iOS 10 that breaks self-signed CA cert. It seems a widespread issue, for example, discussed here. I haven't seen a fix yet unfortunately.

Latest MacOS/Windows still fine. Linux no problem. Android 6 okay (no chance to check 7 yet).
 
Are you seeing the error on iOS? I'm aware of recent updates to iOS 10 that breaks self-signed CA cert. It seems a widespread issue, for example, discussed here. I haven't seen a fix yet unfortunately.
Reloading the page always works on my iOS devices.
 
Hi, has anybody use dnscrypt with ab-solution? I used it a long time ago when I started using the ab-solution it was in diapers, now it has matured and its a great tool, but my question with dnscrypt is that if its as easy as following the wiki or there is anything I must consider before installing it?
Thanks
 
Look at this post, you might have a similar problem with your USB device.
As a first step, delete all files in /tmp/mnt/data/adblocking/addon/
You can do this in your SSH terminal with this command:
Code:
rm -f /tmp/mnt/data/adblocking/addon/*.add
Then start the AB UI and try to set the stats function and install ps.

Lonely, Thanks again for your previous help. I left my router for a day or two and came back to pixelserv-tls failing to start or restart? Any clues or should I just remove pixel and reinstall it? If I do attempt to reset it and reinstall I get this:

checking your system

testing firmware capability: LAN IP port 80
router listens only on LAN IP port 80, continuing

testing if 'ifconfig br0 up' works on your system
this might take a few seconds to complete...

this appears to be working, continuing

checking port 443 availability
port 443 is available, continuing

- Entware installed at /tmp/mnt/entware/entware
/tmp/mnt/data/ab-solution.sh: line 1: opkg: not found
/tmp/mnt/data/ab-solution.sh: line 1: opkg: not found
- package pixelserv-tls is not available
-------------------------------------------------

Based on the check above, pixelserv-tls
is not available for install with AB-Solution

I'm not sure why opkg is not available when it clearly was working fine the other day :(.
 
Lonely, Thanks again for your previous help. I left my router for a day or two and came back to pixelserv-tls failing to start or restart? Any clues or should I just remove pixel and reinstall it? If I do attempt to reset it and reinstall I get this:

checking your system

testing firmware capability: LAN IP port 80
router listens only on LAN IP port 80, continuing

testing if 'ifconfig br0 up' works on your system
this might take a few seconds to complete...

this appears to be working, continuing

checking port 443 availability
port 443 is available, continuing

- Entware installed at /tmp/mnt/entware/entware
/tmp/mnt/data/ab-solution.sh: line 1: opkg: not found
/tmp/mnt/data/ab-solution.sh: line 1: opkg: not found
- package pixelserv-tls is not available
-------------------------------------------------

Based on the check above, pixelserv-tls
is not available for install with AB-Solution

I'm not sure why opkg is not available when it clearly was working fine the other day :(.
Check the syslog for error messages regarding your usb device.
I'm about 99% sure that's where your problem is.
Reformat the device, reformat jffs, start from scratch.
 
Hi, has anybody use dnscrypt with ab-solution? I used it a long time ago when I started using the ab-solution it was in diapers, now it has matured and its a great tool, but my question with dnscrypt is that if its as easy as following the wiki or there is anything I must consider before installing it?
Thanks
I use dnscrypt alongside this with a hostslist named after you :p (don't know the history there) with no issues. Before you install dnscrypt, make sure you do this one time (it creates some local lookup of ntp server IPs so that router can init the correct time for dnscrypt to use to setup the connection. You may need to install hostip
 
Status
Not open for further replies.

Similar threads

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