Re: General MoBlock thread

I can't get your latest to install (r-12). I'm building my own package mind, on a powerpc NAS. Previous one installs, but this goes through the questions (which makes it alot better by the way) and then gives dpkg error.
I've probably made a mistake in how to build it though, this is what I did:

Re: General MoBlock thread

"exit status 10" is not of moblock-control.
I can merely guess that this results from "dash" being the default shell on ubuntu, while on Debian it's still "bash". I had a similar problem just now here after I changed to dash.
You may try it again by changing in your moblock-0.9~rc2/debian/postinst the first line to

Code:

#!/bin/bash

and then rebuild the package.

The high CPU usage might result from MoBlock loading the blocklist and merging overlapping/duplicate ranges. I guess your NAS has low CPU power? IIRC on my Pentium 3, 800 MHz it took me about 30 secs to start up.
Anyway, there's a clone of MoBlock (NFBlockD ) which is less resource intensive, but for now I will do nothing about that.

Finally, nice to hear that you have (had) it running on a PowerPC NAS!!

Re: General MoBlock thread

I just installed Moblock-nfq on a fresh install of Hardy and am having a problem here. I was adding and removing custom blocklists to /etc/moblock/blocklists.list and when I ran sudo moblock-control reload I get the message '...fail!'

All moblock-control commands fail now (start, stop, update, etc)

What can I do here? I don't want to try uninstalling moblock via synaptic out of fear something will get messed up.

Re: General MoBlock thread

You mixed blocklists of different formats. Either use nipfilter.dat.gz or
level1.gz/ads-trackers-and-bad-pr0n.gz/spyware.gz/spider.gz.

If you want to use nipfilter.dat:
- set BLOCKLIST_FORMAT="d" in /etc/moblock/moblock.conf.
- Don't use the other lists
- Note that level1 is already part of nipfilter.dat. Please have a look at /usr/share/doc/moblock/README.blocklists.gz to learn more about these blocklists.

If you want to use the other lists (I suggest this solution):
- First of, install the "moblock" package instead of "moblock-nfq". In moblock-nfq there's a bug when using multiple lists (but this bug is not the reason for your current problems).
- Keep the setting BLOCKLIST_FORMAT="p" in /etc/moblock/moblock.conf
- Don't use nipfilter.dat at the same time.

Re: General MoBlock thread

I'm not sure if this is Moblock or Bluetack, but every time I update, the log says "no update available", for every list. This has been going on for like a week. I tried manually deleting the lists in /var/spool/moblock and re-downloading them, but the blocked IP ranges number stays the same.

Re: General MoBlock thread

Originally Posted by Dawa

I'm not sure if this is Moblock or Bluetack, but every time I update, the log says "no update available", for every list.

Please post your /etc/moblock/blocklists.list.
AFAIK the [n|p]ipfilter.dat list is updated only at a weekly basis. While the single lists (level1.gz et al.) are updated daily or even at a higher frequency. For the latter it's important to use "moblock" not "moblock-nfq" or "moblock-ipq".

Re: General MoBlock thread

Code:

# blocklists.list - lists the blocklists used by moblock-control
#
# Place one URL per line for every blocklist. Any line which starts with a
# (hash) is a comment and is ignored.
#
# All lists have to be in the same blocklist format. This format has to be
# specified in moblock.conf.
# The name of the blocklist has to be the same as the basename of the URL, i.e.
# php redirects are not possible.
#
# If the remote server doesn´t support timestamping start the line with
# "notimestamp". Don´t abuse this. This is only necessary if the remote
# server doesn´t provide timestamping (Error 400).
#
# For local blocklists start the line with "locallist".
#
# Have a look at /usr/share/doc/moblock/README.blocklists.gz for some
# available blocklists.
#
# Do a "moblock-control update" when you have edited this file.
#
www.bluetack.co.uk/config/ads-trackers-and-bad-pr0n.gz
www.bluetack.co.uk/config/bogon.gz
www.bluetack.co.uk/config/dshield.gz
www.bluetack.co.uk/config/edu.gz
www.bluetack.co.uk/config/fornonlancomputers.gz
www.bluetack.co.uk/config/hijacked.gz
www.bluetack.co.uk/config/iana-multicast.gz
www.bluetack.co.uk/config/iana-private.gz
www.bluetack.co.uk/config/iana-reserved.gz
www.bluetack.co.uk/config/level1.gz
www.bluetack.co.uk/config/level2.gz
www.bluetack.co.uk/config/level3.gz
www.bluetack.co.uk/config/Microsoft.gz
www.bluetack.co.uk/config/proxy.gz
www.bluetack.co.uk/config/rangetest.gz
www.bluetack.co.uk/config/spider.gz
www.bluetack.co.uk/config/spyware.gz
www.bluetack.co.uk/config/templist.gz
#
#locallist /etc/moblock/custom-blocklist.p2p