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!

Can someone give me a hand and help me figure out why Diversion works on all devices except my desktop computer? I've read the FAQ, and understand that DNS requests need to go thru the router for Diversion to work, but I can't figure out what I'm doing wrong. My router IP is 192.168.1.1. The desktop has a static IP of 192.168.1.6, which is confirmed in the router client list. I have set the desktop IP properties like so:
upload_2018-10-12_21-42-41.png
upload_2018-10-12_21-47-53.png


Everything seems to work, except for Diversion on the desktop. Can anyone point me in the right direction please? There must be another setting I'm missing.
 
i seem to have successfully installed "diversion standard" on my ac3100
can someone recommend a way i can test if it's doing anything?
i mean are there famous web sights with ads that won't display now?
i found this site for a different blocker, but i'm still not sure what's what;
https://pi-hole.net/pages-to-test-ad-blocking-performance/
i did enable logging during install, so i guess the log will show a line
for every time a dns lookup was blocked - is that what it all means?
about the log, does it roll over after a while, or do i need to wipe it
every few days/weeks/months or when my 32gb drive is nearly full.
sorry for the newbie questions, but i've never done a router based blocker,
all i've used till now was uBlock and/or some hosts file collection on my pc.

Oct 12 23:37:05 Diversion: updated Standard blocking file from 1 hosts files, 56193 domains are now blocked, from /opt/share/diversion/file/update-bf.div
Oct 12 23:37:06 rc_service: service 26591:notify_rc restart_dnsmasq
Oct 12 23:37:06 custom_script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf ) - max timeout = 120s
Oct 12 23:37:07 Diversion: restarted Dnsmasq to apply settings, from /jffs/scripts/dnsmasq.postconf
Oct 12 23:37:09 Diversion: created br0: pixelserv-tls 192.168.1.2, from /opt/etc/init.d/S80pixelserv-tls
Oct 12 23:37:09 pixelserv-tls[26778]: pixelserv-tls 2.1.2 (compiled: Sep 8 2018 20:33:38) options: 192.168.1.2
Oct 12 23:37:09 Entware (armv7sf-k2.6): Started pixelserv-tls (Diversion) from /root/diversion
Oct 12 23:37:09 pixelserv-tls[26778]: Listening on :192.168.1.2:443
Oct 12 23:37:09 pixelserv-tls[26778]: Listening on :192.168.1.2:80

update: after an hour surfing i can see this is working... it blocks the heck out of: aol.com
 
Last edited:
The desktop has a static IP of 192.168.1.6, which is confirmed in the router client list. I have set the desktop IP properties like so:

I would have your computer IPv4 set to "Obtain an IP address automatically" and "Obtain DNS server address automatically", and from router setup (LAN - DHCP Server - Manually Assigned IP) Enable Manual Assignment and set your desktop IP to 192.168.1.6. And IP Pool Starting Address for example 192.168.1.4. At least not 2 (= your pixelserv IP).
 
Last edited:
That is the question is it better than Putty?

Don't see myself switching just because its now part of the OS.
It is only meant as quick possibility without the need to install something in Windows, you can just use. Not everything is bad only because its part of MS or Windows.
Sure putty will be better for you or have more features.

Some wont like to install additional software or dont have the permission to run it on their machine used to config the router.

Why use the car and drive to your neighbour? You can just walk to him much faster and better for environment.
But for some reason it would be better to use the car, maybe because you want to bring him your very heavy washing machine.
 
No it did not. Except you killed the Diversion re-install with CTRL-C. Why? It was about to finish.

Run
Code:
fdisk -l
Find the USB device, usually /dev/sda1
Then remove it in the WebUI (this unmounts the device).
Then run <device> being the device identifier.
Code:
e2fsck -p /dev/<device>

Even after umounting, I receive an "/dev/sda1 is in use" error when running the command "e2fsck -p /dev/sda1". This is my fdisk -l output, if that helps:
Code:
Disk /dev/mtdblock0: 0 MB, 524288 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock0 doesn't contain a valid partition table

Disk /dev/mtdblock1: 1 MB, 1572864 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock1 doesn't contain a valid partition table

Disk /dev/mtdblock2: 65 MB, 65011712 bytes
255 heads, 63 sectors/track, 7 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock2 doesn't contain a valid partition table

Disk /dev/mtdblock3: 63 MB, 63316992 bytes
255 heads, 63 sectors/track, 7 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock3 doesn't contain a valid partition table

Disk /dev/mtdblock4: 65 MB, 65798144 bytes
255 heads, 63 sectors/track, 7 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock4 doesn't contain a valid partition table

Disk /dev/mtdblock5: 1 MB, 1310720 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock5 doesn't contain a valid partition table

Disk /dev/sda: 1024 MB, 1024966656 bytes
32 heads, 63 sectors/track, 993 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1         992      999813+  6 FAT16

Again, thanks for helping in getting to the bottom of this, really appreciate it.
 
Just notice this when I reinstalled Diversion. Diversion installs pixel serv 2.1.2 by default... is there any problems with the 2.2.0 pixel server and diversion?
Just wondering... if no, then perhaps diversion should install 2.2.0 by default.
pixelserv-tls v2.1.2 is the currently available version in Entware.
The Entware maintainers have to merge the latest version v2.2.0 first before it becomes available.
However, you can install the beta version v2.2.0 with amtm if you like. It is the same version as will be merged into Entware.
 
@jdavis You have sf enabled but the blocking file type is not correctly set or configured (blocking file none+).
I cannot reproduce how it got set that way but I can see where the none comes from.

To correct that and prevent it in the future, I have uploaded a Diversion hot-fix. It is best you run 1233 in the Diversion UI. This re-downloads all Diversion files and will present you with the correction it made.
 
i seem to have successfully installed "diversion standard" on my ac3100
can someone recommend a way i can test if it's doing anything?
i mean are there famous web sights with ads that won't display now?
i found this site for a different blocker, but i'm still not sure what's what;
https://pi-hole.net/pages-to-test-ad-blocking-performance/
i did enable logging during install, so i guess the log will show a line
for every time a dns lookup was blocked - is that what it all means?
about the log, does it roll over after a while, or do i need to wipe it
every few days/weeks/months or when my 32gb drive is nearly full.
sorry for the newbie questions, but i've never done a router based blocker,
all i've used till now was uBlock and/or some hosts file collection on my pc.

Oct 12 23:37:05 Diversion: updated Standard blocking file from 1 hosts files, 56193 domains are now blocked, from /opt/share/diversion/file/update-bf.div
Oct 12 23:37:06 rc_service: service 26591:notify_rc restart_dnsmasq
Oct 12 23:37:06 custom_script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf ) - max timeout = 120s
Oct 12 23:37:07 Diversion: restarted Dnsmasq to apply settings, from /jffs/scripts/dnsmasq.postconf
Oct 12 23:37:09 Diversion: created br0: pixelserv-tls 192.168.1.2, from /opt/etc/init.d/S80pixelserv-tls
Oct 12 23:37:09 pixelserv-tls[26778]: pixelserv-tls 2.1.2 (compiled: Sep 8 2018 20:33:38) options: 192.168.1.2
Oct 12 23:37:09 Entware (armv7sf-k2.6): Started pixelserv-tls (Diversion) from /root/diversion
Oct 12 23:37:09 pixelserv-tls[26778]: Listening on :192.168.1.2:443
Oct 12 23:37:09 pixelserv-tls[26778]: Listening on :192.168.1.2:80

update: after an hour surfing i can see this is working... it blocks the heck out of: aol.com
When logging l is enabled, Dnsmasq will write to the dnsmasq.log file. To see what's being blocked use f to follow the log file. In f, option 1-3 will show all blocked domains in red.

Your posted log is from the router syslog and will not show what's blocked and is not related to the dnsmasq.log.
 
Even after umounting, I receive an "/dev/sda1 is in use" error when running the command "e2fsck -p /dev/sda1". This is my fdisk -l output, if that helps:
Code:
Disk /dev/mtdblock0: 0 MB, 524288 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock0 doesn't contain a valid partition table

Disk /dev/mtdblock1: 1 MB, 1572864 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock1 doesn't contain a valid partition table

Disk /dev/mtdblock2: 65 MB, 65011712 bytes
255 heads, 63 sectors/track, 7 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock2 doesn't contain a valid partition table

Disk /dev/mtdblock3: 63 MB, 63316992 bytes
255 heads, 63 sectors/track, 7 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock3 doesn't contain a valid partition table

Disk /dev/mtdblock4: 65 MB, 65798144 bytes
255 heads, 63 sectors/track, 7 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock4 doesn't contain a valid partition table

Disk /dev/mtdblock5: 1 MB, 1310720 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock5 doesn't contain a valid partition table

Disk /dev/sda: 1024 MB, 1024966656 bytes
32 heads, 63 sectors/track, 993 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1         992      999813+  6 FAT16

Again, thanks for helping in getting to the bottom of this, really appreciate it.
I can't help you here. Seems you have a FAT partition on that device along with a ext* partition.
As your device has errors, it might be best to format that device as a proper Linux file system.

Unless someone else can pipe in with a better way and save you from formatting and reinstalling.
Maybe @ColinTaylor can help this user?
 
custom_script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf ) - max timeout = 120s
Also, I notice this line. Would you mind posting the content of /jffs/scripts/dnsmasq.postconf? You can use sf in Diversion to show the file.
 
I can't help you here. Seems you have a FAT partition on that device along with a ext* partition.
As your device has errors, it might be best to format that device as a proper Linux file system.

Unless someone else can pipe in with a better way and save you from formatting and reinstalling.
Maybe @ColinTaylor can help this user?
@SMS786 I'm not really up to speed with what your problem is, but your output shows a device at /dev/sda that is only 1GB in size. Is that correct, it sounds rather small?

Assuming the above size is correct... the device has a single partition (/dev/sda1) which has a partition type of FAT16. That sounds wrong because I assume @thelonelycoder's software formats it as ext2? That might explain why when you did a disk check on amtm it failed, because it was doing a FAT check on something that's formatted as ext2.

You could try changing the partition type from FAT16 to Linux (ext2/3/4) and seeing if you can then repair it.

Code:
# fdisk /dev/sda

The number of cylinders for this disk is set to 1948.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 83

Command (m for help): p

Disk /dev/sda: 16.0 GB, 16025387008 bytes
255 heads, 63 sectors/track, 1948 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1        1948    15647278+ 83 Linux

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table
fdisk: WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy

# reboot
 
This all looks like it will be a great addition to my router and I'm looking forward to installing it when I get home this weekend. One question I have is if it would be possible to add my own custom blacklist that can pull from a pastebin url? The benefit here would be that I could have multiple routers that could have a blacklist managed from a central list (like pastebin).
 
@SMS786 I'm not really up to speed with what your problem is, but your output shows a device at /dev/sda that is only 1GB in size. Is that correct, it sounds rather small?

Assuming the above size is correct... the device has a single partition (/dev/sda1) which has a partition type of FAT16. That sounds wrong because I assume @thelonelycoder's software formats it as ext2? That might explain why when you did a disk check on amtm it failed, because it was doing a FAT check on something that's formatted as ext2.

You could try changing the partition type from FAT16 to Linux (ext2/3/4) and seeing if you can then repair it.

Code:
# fdisk /dev/sda

The number of cylinders for this disk is set to 1948.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 83

Command (m for help): p

Disk /dev/sda: 16.0 GB, 16025387008 bytes
255 heads, 63 sectors/track, 1948 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1        1948    15647278+ 83 Linux

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table
fdisk: WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy

# reboot
Thanks, this should do it.
Diversion does no formatting.
 
This all looks like it will be a great addition to my router and I'm looking forward to installing it when I get home this weekend. One question I have is if it would be possible to add my own custom blacklist that can pull from a pastebin url? The benefit here would be that I could have multiple routers that could have a blacklist managed from a central list (like pastebin).
That is not supported atm. Diversion Pro will have such capabilities.

But you can add the raw link of your pastebin to the blocking file type you selected.
 
Can you point me in the direction of how I would add a link to the blocking file? Tell us more about Diversion Pro. What else will it offer that Diversion doesn't?
 
Can you point me in the direction of how I would add a link to the blocking file? Tell us more about Diversion Pro. What else will it offer that Diversion doesn't?
Pro will not be available for some time.

To add a hosts list, enter b and select 1 change composition. Then customize hosts list.
A hosts list must have this format or else it will not be included. The blocking IP must be either 127.0.0.1 or 0.0.0.0, one per line:
0.0.0.0 domain.com
 
Pro will not be available for some time.

To add a hosts list, enter b and select 1 change composition. Then customize hosts list.
A hosts list must have this format or else it will not be included. The blocking IP must be either 127.0.0.1 or 0.0.0.0, one per line:
0.0.0.0 domain.com

So, for example I could simply add the following as an entry to the customize hosts list?

Code:
0.0.0.0 https://pastebin.com/ZfThWJTM
 
So, for example I could simply add the following as an entry to the customize hosts list?

Code:
0.0.0.0 https://pastebin.com/ZfThWJTM

No. The hosts file must be in the format:
Code:
0.0.0.0 domain.com
as mentioned above.

The url for the custom hosts list entry should be (folowing your example):
Code:
https://pastebin.com/raw/ZfThWJTM
Notice that the link points to the raw contents of your pastebin.
 

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