Skeptical.me
Very Senior Member
https://diversion.ch/ last 2 lines...
Thank you very much ...
https://diversion.ch/ last 2 lines...
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:
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.That is the question is it better than Putty?
Don't see myself switching just because its now part of the OS.
No it did not. Except you killed the Diversion re-install with CTRL-C. Why? It was about to finish.
Run
Find the USB device, usually /dev/sda1Code:fdisk -l
Then remove it in the WebUI (this unmounts the device).
Then run <device> being the device identifier.
Code:e2fsck -p /dev/<device>
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
pixelserv-tls v2.1.2 is the currently available version in Entware.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.
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.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
I can't help you here. Seems you have a FAT partition on that device along with a ext* partition.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.
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.custom_script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf ) - max timeout = 120s
posting the content of /jffs/scripts/dnsmasq.postconf
@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?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?
# 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.@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
That is not supported atm. Diversion Pro will have such capabilities.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).
Pro will not be available for some time.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
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
0.0.0.0 domain.com
https://pastebin.com/raw/ZfThWJTM
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!