Hmm, hard to say what happens.
When moblock is running there must be
- a pid (/var/run/moblock.pid)
- the process itself (check "ps aux|grep moblock" which should show a line similar to this (do you get this?):
Code:
root 7644 1.9 2.8 64120 58008 ? S 21:12 0:08 /usr/bin/moblock -t -p /var/lib/moblock/guarding.p2p -q 92 -r 10 -a 20 /var/log/moblock.log
- the iptables rules (see post #1 in this thread to see how they look like)
No running daemon:
It seems as if MoBlock gets started and the iptables rules inserted, but then the daemon (2) crashes. --> If only the rules exist, but the process is not there to handle the traffic, then all traffic that should be filtered by MoBlock gets completely dropped. (So per default all traffic, except the whitelisted traffic for websurfing, is dropped.)
Please check /var/log/moblock.log if there are any hints (messages about skipping or merging ranges are unimportant).
Running daemon:
Alternatively it might be, that your lsb init-functions are broken/buggy and falsely report that the daemon does not run (but I doubt that, because other intrepid users don't have this problem). In that case you might replace the pidofproc function in your /lib/lsb/init-functions with this code (version 3.2-20, there are small differences in a few lines which might be the culprit).
Code:
pidofproc () {
local pidfile line i pids= status specified pid
pidfile=
specified=
OPTIND=1
while getopts p: opt ; do
case "$opt" in
p) pidfile="$OPTARG"; specified=1;;
esac
done
shift $(($OPTIND - 1))
base=${1##*/}
if [ ! "$specified" ]; then
pidfile="/var/run/$base.pid"
fi
if [ -n "${pidfile:-}" -a -e "$pidfile" ]; then
read pid < "$pidfile"
if [ -n "${pid:-}" ]; then
if $(kill -0 "${pid:-}" 2> /dev/null); then
echo "$pid"
return 0
elif ps "${pid:-}" >/dev/null 2>&1; then
echo "$pid"
return 0 # program is running, but not owned by this user
else
return 1 # program is dead and /var/run pid file exists
fi
fi
fi
if [ -x /bin/pidof -a ! "$specified" ]; then
status="0"
/bin/pidof -o %PPID -x $1 || status="$?"
if [ "$status" = 1 ]; then
return 3 # program is not running
fi
return 0
fi
return 4 # program or service is unknown
}
Final note: You do not have to and should not delete your blocklists!
Bookmarks