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!

The routers Syslog will have entries pertaining to pixelserv-tls and the error. Post the relevant lines.
If you find none, restart pixelserv-tls in ep then look again.

syslog does only say that pixelserv is started. there's no error.
And after restart situation is the same.

I also have another issue:
to install Diversion, I used an empty USB disk formatted ext4
then I enabled custom scripts on router GUI.
then installed Diversion and added the mounted partition to /jffs/config/fstab
But today, I switched off the router and back on. No DNS query was working on my PC.
The partition is mounted. but "diversion" command does not work.
Also, if I try to re-install Diversion, "curl" command does not work, saying:
Code:
admin@RT-AC88U-DF80:/tmp/home/root# curl -Os https://diversion.ch/install && sh install
curl: can't load library 'libc.so.6'

I think, I am missing some step in installation. But what is that ?
if I had not seen the partition mounted, I would say that fstab file is not correct or not working. But that's not the case...
 
I think, I am missing some step in installation. But what is that ?
if I had not seen the partition mounted, I would say that fstab file is not correct or not working. But that's not the case...
Nowhere in the installation instruction does it say to add the device to fstab. Delete that entry and reboot the router. Diversion has its own start scripts that includes detecting the device and starting Entware.
 
ok. but does that explain why I had that problem after a restart of router ?
and, what if I had already required mounting the partition for other reasons ?
I mean why does Diversion installation assume that it is the only software requiring mounted linux partition ?
 
now if I remove the USB disk, "curl" works , but since there's no appropriate partition, it does not install.
if I put the disk on, "curl" does not work:
"curl: can't load library 'libc.so.6'"

so , how can I restore ?
 
ok. but does that explain why I had that problem after a restart of router ?
and, what if I had already required mounting the partition for other reasons ?
I mean why does Diversion installation assume that it is the only software requiring mounted linux partition ?
Diversion does not assume anything but works with established standards. It's been that way for years.
What Diversion does different from AB-Solution is the way it hangs in Entware, with a customized /jffs/scripts/post-mount.div.
The device itself gets mounted by the firmware, I have no influence there.

I have no idea what your fstab should change nor its effects. That's for you to figure out. I do not use fstab.
 
ok. I deleted the fstab but still I can not install diversion now.
because "curl" does not work , giving error:
"curl: can't load library 'libc.so.6'"

how can I overcome this ?
 
ok. I deleted the fstab but still I can not install diversion now.
because "curl" does not work , giving error:
"curl: can't load library 'libc.so.6'"

how can I overcome this ?
If you (safely) remove the drive and run the Diversion install command, does it work then?
If so, post content of your /jffs/scripts/post-mount and init-start files.
 
yes ; if I remove the drive, curl command works. but then it can not install Diversion (obviously because there's no drive to install)
Code:
admin@RT-AC88U-DF80:/tmp/home/root# cat /jffs/scripts/post-mount
#!/bin/sh
if [ "$1" = "/tmp/mnt/sda1" ] ; then
  ln -nsf $1/entware /tmp/opt
fi

I don't have an init-start script.
 
yes ; if I remove the drive, curl command works. but then it can not install Diversion (obviously because there's no drive to install)
Code:
admin@RT-AC88U-DF80:/tmp/home/root# cat /jffs/scripts/post-mount
#!/bin/sh
if [ "$1" = "/tmp/mnt/sda1" ] ; then
  ln -nsf $1/entware /tmp/opt
fi

I don't have an init-start script.
If that's all you have in your post-mount file, remove the file and reboot the router with your device plugged in.
Then run the Diversion install command again and all should be well on the Diversion front.
DO NOT add this incompatible Entware mount command back to /jffs/scripts/post-mount.
Diversion has a much better way to do that.

Diversion checks for such entries and removes them unceremoniously if found. This means it was added after Diversion was installed.
Diversion already installs Entware by default, no need to run a separate Entware install script after.
 
Diversion 4.0.5 is now available

What's new in Diversion v4.0.5
- Better sleep routine for Dnsmasq when initializing Diversion
- sf Cosmetic correction of double forward slash // in file paths
- Typo and minor code corrections
- Improved swap file management
- Changes due to renaming of Skynet "wifemode" to "fastswitch"
- Changed to https for someonewhocares.org hosts file (only applies if re-selecting blocking file)
- Added info text for SSL flag in c email settings when not configured
- Eliminated glitch where certain domain names are incorrectly read.
This mainly affects the whitelisted domains.
Manually updating the blocking file in b is advised after this update.
 
If that's all you have in your post-mount file, remove the file and reboot the router with your device plugged in.
Then run the Diversion install command again and all should be well on the Diversion front.
DO NOT add this incompatible Entware mount command back to /jffs/scripts/post-mount.
Diversion has a much better way to do that.

Diversion checks for such entries and removes them unceremoniously if found. This means it was added after Diversion was installed.
Diversion already installs Entware by default, no need to run a separate Entware install script after.
after the reboot (post mount file removed), it does not install:
Code:
admin@RT-AC88U-DF80:/tmp/home/root# curl -Os https://diversion.ch/install && sh install
curl: can't load library 'libc.so.6'
admin@RT-AC88U-DF80:/tmp/home/root#


admin@RT-AC88U-DF80:/tmp/home/root# find / -name libc.so*
/lib/libc.so.0
/tmp/opt/lib/libc.so
/tmp/opt/lib/libc.so.0
admin@RT-AC88U-DF80:/tmp/home/root#

if I install entware with "entware-setup.sh" , I get libc.so.6 but still it is not in path.
what should I do now ?

seems I have an incompatible "ldconfig". I don't know where it came from. How can I fix it ?

Code:
admin@RT-AC88U-DF80:/tmp/home/root# curl
curl: can't load library 'libc.so.6'
admin@RT-AC88U-DF80:/tmp/home/root# ldconfig
/opt/sbin/ldconfig: line 1: syntax error: unexpected "("
admin@RT-AC88U-DF80:/tmp/home/root# which ldconfig
/opt/sbin/ldconfig
admin@RT-AC88U-DF80:/tmp/home/root#
 
Last edited:
Firmware updates do not affect Diversion. Even restoring or initializing should not wipe out the required /jffs/scripts files content.
If you do run into problems and can't start the Diversion UI, just run the install command from the website.
Whenever you think something is not properly running and you can start the UI, just run d Re-Install or (force) Update.
Great, very helpful. Thank you.
 
after the reboot (post mount file removed), it does not install:
Code:
admin@RT-AC88U-DF80:/tmp/home/root# curl -Os https://diversion.ch/install && sh install
curl: can't load library 'libc.so.6'
admin@RT-AC88U-DF80:/tmp/home/root#


admin@RT-AC88U-DF80:/tmp/home/root# find / -name libc.so*
/lib/libc.so.0
/tmp/opt/lib/libc.so
/tmp/opt/lib/libc.so.0
admin@RT-AC88U-DF80:/tmp/home/root#

if I install entware with "entware-setup.sh" , I get libc.so.6 but still it is not in path.
what should I do now ?

seems I have an incompatible "ldconfig". I don't know where it came from. How can I fix it ?

Code:
admin@RT-AC88U-DF80:/tmp/home/root# curl
curl: can't load library 'libc.so.6'
admin@RT-AC88U-DF80:/tmp/home/root# ldconfig
/opt/sbin/ldconfig: line 1: syntax error: unexpected "("
admin@RT-AC88U-DF80:/tmp/home/root# which ldconfig
/opt/sbin/ldconfig
admin@RT-AC88U-DF80:/tmp/home/root#
There is still an /opt/ partition mounted for some reason. Also, ldconfig is not part of Asuswrt-Merlin. Go figure.
 
Hi,

I've done everything you have instructed, including adding the ADNS.sh, Adverts are blocked with the addition of DHCP-Option DNS 1.1.1.1 to the OpenVPN Client's configuration. Accept DNS Configuration = Disabled with Policy Routing (Strict). However, as you've pointed out the DNS leaks.


There are two issues I have with this: 1. Doesn't having your DNS leak defeat the purpose of a VPN? Also, Netflix does not work, see here:


uGferb8.jpg
Having DNS Leak is the downside if you want to use Diversion to block ads when using a VPN configured with using Policy Rules. When you connect to a VPN you have some anonymity. But once you logon or connect to a service like gmail or Netflix over a VPN, you are no longer anonymous.

The Netflix error message is because Netflix blocks known VPN servers. Same with Amazon Prime, Hulu and BBC. Nothing to do with DNS leaking.

https://x3mtek.com/why-i-use-torguard-as-my-vpn-provider/

If you want to configure Netflix to bypass the VPN, you can use these scripts. https://www.snbforums.com/threads/selective-routing-for-netflix.42661/
 
Last edited:
There is still an /opt/ partition mounted for some reason. Also, ldconfig is not part of Asuswrt-Merlin. Go figure.


There is still an /opt/ partition mounted for some reason. Also, ldconfig is not part of Asuswrt-Merlin. Go figure.

I don't understand. Should I have /opt unmounted for Diversion to install ?

I have these files under /opt and /tmp/opt :

Code:
/opt:

dr-xr-xr-x  177 admin    root             0 Jan  1  1970 proc
drwxr-xr-x   11 admin    root             0 Jan  1  1970 sys
drwxr-xr-x    6 admin    root           159 Oct 21 21:23 rom
drwxr-xr-x    2 admin    root          2690 Oct 21 21:23 sbin
drwxr-xr-x    2 admin    root           787 Oct 21 21:23 bin
drwxrwxr-x   15 admin    root          7896 Oct 21 21:23 www
lrwxrwxrwx    1 admin    root             7 Oct 21 21:23 var -> tmp/var
drwxr-xr-x    2 admin    root             3 Oct 21 21:23 sysroot
lrwxrwxrwx    1 admin    root            13 Oct 21 21:23 root -> tmp/home/root
lrwxrwxrwx    1 admin    root             7 Oct 21 21:23 opt -> tmp/opt
lrwxrwxrwx    1 admin    root             7 Oct 21 21:23 mnt -> tmp/mnt
drwxr-xr-x    2 admin    root             3 Oct 21 21:23 mmc
lrwxrwxrwx    1 admin    root             9 Oct 21 21:23 media -> tmp/media
lrwxrwxrwx    1 admin    root             8 Oct 21 21:23 home -> tmp/home
lrwxrwxrwx    1 admin    root             7 Oct 21 21:23 etc -> tmp/etc
drwxr-xr-x    2 admin    root             3 Oct 21 21:23 cifs2
drwxr-xr-x    2 admin    root             3 Oct 21 21:23 cifs1
drwxr-xr-x   17 admin    root           320 Oct 21 21:23 ..
drwxr-xr-x   17 admin    root           320 Oct 21 21:23 .
drwxr-xr-x   11 admin    root           180 Oct 21 21:23 usr
drwxr-xr-x    3 admin    root           454 Oct 21 21:23 lib
drwxr-xr-x    5 admin    root          1880 Nov 20 09:17 dev
drwxr-xr-x   12 admin    root             0 Nov 20 17:55 jffs
drwxrwxrwx   23 admin    root          1400 Nov 20 17:55 tmp

/tmp/opt:

lrwxrwxrwx    1 admin    root            30 Nov 20 09:17 doc -> /tmp/mnt/sda2/asusware.arm/doc
lrwxrwxrwx    1 admin    root            38 Nov 20 09:17 .asusrouter -> /tmp/mnt/sda2/asusware.arm/.asusrouter
lrwxrwxrwx    1 admin    root            30 Nov 20 09:17 usr -> /tmp/mnt/sda2/asusware.arm/usr
lrwxrwxrwx    1 admin    root            30 Nov 20 09:17 tmp -> /tmp/mnt/sda2/asusware.arm/tmp
lrwxrwxrwx    1 admin    root            32 Nov 20 09:17 share -> /tmp/mnt/sda2/asusware.arm/share
lrwxrwxrwx    1 admin    root            31 Nov 20 09:17 sbin -> /tmp/mnt/sda2/asusware.arm/sbin
lrwxrwxrwx    1 admin    root            34 Nov 20 09:17 include -> /tmp/mnt/sda2/asusware.arm/include
lrwxrwxrwx    1 admin    root            30 Nov 20 09:17 etc -> /tmp/mnt/sda2/asusware.arm/etc
drwxrwxrwx    2 admin    root           620 Nov 20 09:17 bin
drwxrwxrwx    2 admin    root          2660 Nov 20 09:17 lib
-rwxrwxrwx    1 admin    root          1393 Nov 20 09:17 S80pixelserv-tls.1
-rwxrwxrwx    1 admin    root         38998 Nov 20 09:17 S50downloadmaster.1
-rwxrwxrwx    1 admin    root          8353 Nov 20 09:17 S50asuslighttpd.1
drwxrwxrwx    4 admin    root           300 Nov 20 09:17 .
drwxrwxrwx   23 admin    root          1400 Nov 20 17:55 ..

I had just installed downloader from router GUI. Is that the reason ?
will it be ok to install if I delete that and remove /opt ? (or is that /tmp/opt)
 
I've just uninstalled downloadmaster from GUI.
But isn't that weird ? It means I can't have Diversion and Downloadmaster installed at the same time. Am I wrong ?
 
I've just uninstalled downloadmaster from GUI.
But isn't that weird ? It means I can't have Diversion and Downloadmaster installed at the same time. Am I wrong ?
It's not weird, just a physical impossibility.
Entware and Asus' Downloadmaster both use /opt/ to hang in their file system. Only one can be installed.
You must have installed Downloadmaster after installing Diversion, or else Diversion would have notified you of the fact.
 
I don't understand this. We can install many apps on the same directory.
We can run several apps from the GUI and they will all install on the same place on USB disk.
Why can't Diversion live with them ?

It's just like installing several Windows apps under "Program Files"
I really don't understand your logic...
 
I don't understand this. We can install many apps on the same directory.
We can run several apps from the GUI and they will all install on the same place on USB disk.
Why can't Diversion live with them ?

It's just like installing several Windows apps under "Program Files"
I really don't understand your logic...

It's not Diversion you should blame here but Entware, Diversion is simply using Entware to run. And in any case it's not a big deal you can install Transmission from Entware as a Download Master alternative.
 
no. if I install Downloadmaster and then Entware (without Diversion), I can use both Entware and Downloadmaster.
It is Diversion which does not install when Downloadmaster is installed.
maybe the problem is not at Diversion or Entware. It is the install script to blame...
 

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