 |

 |
|
 |
| |
03-05-2009, 12:37 PM
|
#11
|
Country: 
|
Re: Trying to install MoBlock on Slackware 12.1
I came to the same conclusion, that I needed to enable netfilter support, so I'm planning on doing the following:
1. enable IPv6 module per http://www.linuxpackages.net/howto.p...tle=ipv6+HOWTO
2. run make menuconfig on /usr/bin/linuxXX, find Netfilters section, enable all as modules,
I'll let you know how it goes.
Thanks,
TW
|
|
|
| |
03-08-2009, 07:48 AM
|
#12
|
|
|
Re: Trying to install MoBlock on Slackware 12.1
Just saw that the pidfile is also messed up, if the automatic detection goes wrong, so use
Code:
NAME="moblock"
DAEMON="/usr/bin/$NAME"
DESC="MoBlock"
PIDFILE="/var/run/moblock.pid"
__________________
Code:
Please post your logfiles and output of commands wrapped in
[ CODE ] tags. You find them in the advanced editing mode: #
Maintainer of http://moblock-deb.sourceforge.net: MoBlock, mobloquer, blockcontrol and NFBlock Debian packages.
Author of blockcontrol, previously moblock-control.
|
|
|
| |
03-13-2009, 12:32 AM
|
#13
|
|
|
Re: Trying to install MoBlock on Slackware 12.1
I'm having the exact same problem as these guys but I'm not running Slackware. I'm installing on an Openfiler 2.3 installation. I've followed all the instructions about modifying the moblock.conf to explicitly set the NAME, DAEMON, and DESC fields. I've even tried the PID entry.
When I run 'moblock-control start' the log has this message:
Code:
2009-03-12 10:56:25 PM CDT Begin: moblock-control start
moblock is unknown. You need to install it to /usr/bin/moblock failed!
and make it executable. failed!
failed!
I'm running the latest stable released versions of netfilter, iptables, moblock, and moblock-control.
MoBlock-0.8
moblock-control-1.2
iptables-1.4.2
libnfnetlink-0.0.40
libnetfilter_queue-0.0.16
Here's some additional information about my system:
Code:
# ls -l /usr/bin/moblock
-rwxr-xr-x 1 root root 21488 Mar 12 21:32 /usr/bin/moblock
# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Feb 7 05:51 /bin/sh -> bash
If I use the start-up script provided with the moblock distrobution, it does successfully start up. I modified the script to use the blocklist that moblock-control downloaded, and to use the moblock in /usr/bin. Here's what it outputs:
Code:
MoBlock-0.8]# ./MoBlock-nfq.sh
iptables: Chain already exists
iptables: Chain already exists
iptables: Chain already exists
* Logging to ./moblock.log
* Ranges loaded: 246785
* Using .p2p file format
* Merged ranges: 0
* Skipped useless ranges: 0
Here's what 'moblock-control show_config' outputs:
Code:
# moblock-control show_config
moblock-control current settings:
BLOCKLIST_FORMAT="p"
LOG_TIMESTAMP="1"
LOG_SYSLOG="0"
LOG_IPTABLES=""
VERBOSITY="1"
MOBLOCK_INIT="1"
MOBLOCK_CRON="1"
WGET_OPTS="wget -q -t 5 -T 120 -w 5"
IPTABLES_TARGET="NFQUEUE"
NFQUEUE_NUMBER="92"
IPTABLES_SETTINGS="1"
IPTABLES_ACTIVATION="1"
REJECT="1"
REJECT_MARK="10"
REJECT_IN="DROP"
REJECT_OUT="REJECT"
REJECT_FW="DROP"
ACCEPT="1"
ACCEPT_MARK="20"
IPTABLES_TARGET_WHITELISTING="RETURN"
WHITE_LOCAL="1"
WHITE_TCP_IN=""
WHITE_UDP_IN=""
WHITE_TCP_OUT="http https"
WHITE_UDP_OUT=""
WHITE_TCP_FORWARD=""
WHITE_UDP_FORWARD=""
WHITE_IP_IN=""
WHITE_IP_OUT=""
WHITE_IP_FORWARD=""
IP_REMOVE=""
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
NAME="moblock"
DAEMON="/usr/bin/moblock"
DESC="MoBlock"
CONTROL_SCRIPT="/usr/bin/moblock-control"
CONF_DIR="/etc/moblock"
CONTROL_DEFAULT="/etc/default/moblock"
MASTER_BLOCKLIST_DIR="/var/lib/moblock"
BLOCKLISTS_DIR="/var/spool/moblock"
BLOCKLISTS_LIST="/etc/moblock/blocklists.list"
MD5SUM_FILE="/var/spool/moblock/MD5SUM"
ALLOW_IN="/etc/moblock/allow.p2p"
ALLOW_OUT="/etc/moblock/allow.p2p"
ALLOW_FW=""
IPTABLES_CUSTOM_INSERT="/etc/moblock/iptables-custom-insert.sh"
IPTABLES_CUSTOM_DELETE="/etc/moblock/iptables-custom-remove.sh"
LOG_DIR="/var/log"
DAEMON_LOG="/var/log/moblock.log"
CONTROL_LOG="/var/log/moblock-control.log"
STATFILE="/var/log/MoBlock.stats"
PIDFILE="/var/run/moblock.pid"
LSB="/lib/lsb/init-functions"
TESTHOST="iblocklist.com"
LSB_MODE="1"
The following blocklists are configured to be used:
http://list.iblocklist.com/?list=ijfqtofzixtwayqovmxn
http://list.iblocklist.com/?list=ecqbsykllnadihkdirsh
http://list.iblocklist.com/?list=jcjfaxgyyshvdbceroxf
http://list.iblocklist.com/?list=pfefqteoxlfzopecdtyw
http://list.iblocklist.com/?list=tbnuqfclfkemqivekikv
http://list.iblocklist.com/?list=ewqglwibdgjttwttrinl
http://list.iblocklist.com/?list=bt_proxy
http://list.iblocklist.com/?list=bt_dshield
Any assistance would be greatly appreciated because I'm completely out of ideas on how to get this working.
Thanks in advance.
Last edited by snike3 : 03-13-2009 at 12:42 AM.
|
|
|
| |
03-13-2009, 01:33 PM
|
#14
|
|
|
Re: Trying to install MoBlock on Slackware 12.1
Hmm, you've provided all necessary information, but I don't see what's going wrong.
Can you test it with blockcontrol (get it from the svn repository at moblock-deb.sf.net). There are many changes in it related to that problem.
__________________
Code:
Please post your logfiles and output of commands wrapped in
[ CODE ] tags. You find them in the advanced editing mode: #
Maintainer of http://moblock-deb.sourceforge.net: MoBlock, mobloquer, blockcontrol and NFBlock Debian packages.
Author of blockcontrol, previously moblock-control.
|
|
|
| |
03-15-2009, 02:59 AM
|
#15
|
|
|
Re: Trying to install MoBlock on Slackware 12.1
Well I got the latest blockcontrol off of svn. Great improvement with the install process. Unfortunately, it's looking like this has the same problem.
Here's exactly what my log shows (even shows the operations performed which is nice):
Code:
2009-03-15 01:47:07 AM CDT Begin: blockcontrol start
moblock is not running failed!
2009-03-15 01:48:46 AM CDT Begin: blockcontrol update
Updating blocklists ...
Updating TBG_Primary_Threats... . No update available.
Extracting TBG_Primary_Threats, detected gz...done.
Updating TBG_General_Corporate_Ranges... . No update available.
Extracting TBG_General_Corporate_Ranges, detected gz...done.
Updating TBG_Business_ISPs... . No update available.
Extracting TBG_Business_ISPs, detected gz...done.
Updating TBG_Search_Engines... . No update available.
Extracting TBG_Search_Engines, detected gz...done.
Updating TBG_Hijacked... . No update available.
Extracting TBG_Hijacked, detected gz...done.
Updating TBG_Bogon... . No update available.
Extracting TBG_Bogon, detected gz...done.
Updating Bluetack_proxy... . No update available.
Extracting Bluetack_proxy, detected gz...done.
Updating Bluetack_dshield... . No update available.
Extracting Bluetack_dshield, detected gz...done.
Blocklists updated.
moblock is not running failed!
2009-03-15 01:49:48 AM CDT Begin: blockcontrol reload
moblock is not running failed!
2009-03-15 01:50:52 AM CDT Begin: blockcontrol start
moblock is not running failed!
Everything appears to be set up correctly with the configuration file, here's the output of show_config:
Code:
blockcontrol current settings:
ACCEPT="1"
ACCEPT_MARK="20"
ALLOW_FW=""
ALLOW_IN="/etc/blockcontrol/allow.p2p"
ALLOW_OUT="/etc/blockcontrol/allow.p2p"
BLOCKLIST_FORMAT="p"
BLOCKLISTS_DIR="/var/spool/blockcontrol"
BLOCKLISTS_LIST="/etc/blockcontrol/blocklists.list"
CONTROL_CONF="/etc/blockcontrol/blockcontrol.conf"
CONTROL_LIB="/usr/lib/blockcontrol/blockcontrol.lib"
CONTROL_LOG="/var/log/blockcontrol.log"
CONTROL_NAME="blockcontrol"
CONTROL_SCRIPT="/usr/bin/blockcontrol"
CRON="1"
CRON_MAILTO="root"
DAEMON="/usr/bin/moblock"
DAEMON_LOG="/var/log/moblock.log"
DESC="MoBlock"
E_BADARGS="2"
E_BLOCKLIST="9"
E_CONFIG="6"
E_IPTABLES="8"
E_NETWORK_DOWN="171"
E_NOTROOT="4"
E_XBIN="5"
E_XCD="66"
E_XEXTERNAL="170"
E_XFILE="7"
INIT="1"
IP_REMOVE=""
IPTABLES_ACTIVATION="1"
IPTABLES_CUSTOM_DELETE="/etc/blockcontrol/iptables-custom-remove.sh"
IPTABLES_CUSTOM_INSERT="/etc/blockcontrol/iptables-custom-insert.sh"
IPTABLES_SETTINGS="1"
IPTABLES_TARGET="NFQUEUE"
IPTABLES_TARGET_WHITELISTING="RETURN"
LOG_IPTABLES=""
LOG_SYSLOG="0"
LOG_TIMESTAMP="1"
LSB="/lib/lsb/init-functions"
LSB_MODE="1"
MASTER_BLOCKLIST_DIR="/var/lib/blockcontrol"
MD5SUM_FILE="/var/spool/blockcontrol/MD5SUM"
NAME="moblock"
NFQUEUE_NUMBER="92"
PATH="/usr/bin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
PIDFILE="/var/run/moblock.pid"
REJECT="1"
REJECT_FW="DROP"
REJECT_IN="DROP"
REJECT_MARK="10"
REJECT_OUT="REJECT"
STATFILE="/var/log/MoBlock.stats"
STDIFS=" "
TESTHOST="iblocklist.com"
VERBOSITY="1"
WGET_OPTS="wget -q -t 5 -T 120 -w 5"
WHITE_IP_FORWARD=""
WHITE_IP_IN=""
WHITE_IP_OUT=""
WHITE_LOCAL="1"
WHITE_TCP_FORWARD=""
WHITE_TCP_IN=""
WHITE_TCP_OUT="http https"
WHITE_UDP_FORWARD=""
WHITE_UDP_IN=""
WHITE_UDP_OUT=""
The following blocklists are configured to be used:
http://list.iblocklist.com/?list=ijfqtofzixtwayqovmxn
http://list.iblocklist.com/?list=ecqbsykllnadihkdirsh
http://list.iblocklist.com/?list=jcjfaxgyyshvdbceroxf
http://list.iblocklist.com/?list=pfefqteoxlfzopecdtyw
http://list.iblocklist.com/?list=tbnuqfclfkemqivekikv
http://list.iblocklist.com/?list=ewqglwibdgjttwttrinl
http://list.iblocklist.com/?list=bt_proxy
http://list.iblocklist.com/?list=bt_dshield
There aren't any issues with running on a 64-bit OS are there?
|
|
|
| |
03-15-2009, 11:09 AM
|
#16
|
|
|
Re: Trying to install MoBlock on Slackware 12.1
Quote:
Originally Posted by snike3
There aren't any issues with running on a 64-bit OS are there?
|
No, I'm on Debian lenny amd64, and it just works. And I haven't heard of others having problems.
I'll have a closer look at it now.
Can you post your /lib/lsb/init-functions (if you have one). You may also temporarily remove it and try without (there are fallback options in blockcontrol).
I guess there are no new entries in /var/log/moblock.log!?
EDIT: I updated blockcontrol.lib. This version should be more verbose on what's going on.
__________________
Code:
Please post your logfiles and output of commands wrapped in
[ CODE ] tags. You find them in the advanced editing mode: #
Maintainer of http://moblock-deb.sourceforge.net: MoBlock, mobloquer, blockcontrol and NFBlock Debian packages.
Author of blockcontrol, previously moblock-control.
Last edited by jre : 03-15-2009 at 01:10 PM.
|
|
|
| |
03-22-2009, 12:16 PM
|
#17
|
|
|
Re: Trying to install MoBlock on Slackware 12.1
Alright, I removed the old version and then updated to the latest version of blockcontrol. It definitely did print out a different message. Here's what it spits out:
Code:
2009-03-22 10:46:08 AM CDT Begin: blockcontrol start
Problematic daemon status: 4
moblock is not running failed!
2009-03-22 10:46:16 AM CDT Begin: blockcontrol update
Updating blocklists ...
Updating TBG_Primary_Threats... . No update available.
Extracting TBG_Primary_Threats, detected gz... done.
Updating TBG_General_Corporate_Ranges... . No update available.
Extracting TBG_General_Corporate_Ranges, detected gz... done.
Updating TBG_Business_ISPs... . No update available.
Extracting TBG_Business_ISPs, detected gz... done.
Updating TBG_Search_Engines... . No update available.
Extracting TBG_Search_Engines, detected gz... done.
Updating TBG_Hijacked... . No update available.
Extracting TBG_Hijacked, detected gz... done.
Updating TBG_Bogon... . No update available.
Extracting TBG_Bogon, detected gz... done.
Updating Bluetack_proxy... . No update available.
Extracting Bluetack_proxy, detected gz... done.
Updating Bluetack_dshield... . No update available.
Extracting Bluetack_dshield, detected gz... done.
Blocklists updated.
Problematic daemon status: 4
moblock is not running failed!
I then tried removing the init-functions but the same thing happened. I've attached the init-functions file.
Last edited by snike3 : 03-22-2009 at 12:19 PM.
|
|
|
| |
03-22-2009, 12:40 PM
|
#18
|
|
|
Re: Trying to install MoBlock on Slackware 12.1
Ah, ok. With blockcontrol you don't need my init-functions any more.
There's a more actual version directly in blockcontrol.lib now. So please try to just remove the old init-functions.
If this doesn't work edit line 101 in your init-functions (the last of the pidofproc function):
instead of
Code:
return 4 # program or service is unknown
Please give me feedback!!
__________________
Code:
Please post your logfiles and output of commands wrapped in
[ CODE ] tags. You find them in the advanced editing mode: #
Maintainer of http://moblock-deb.sourceforge.net: MoBlock, mobloquer, blockcontrol and NFBlock Debian packages.
Author of blockcontrol, previously moblock-control.
|
|
|
| |
03-27-2009, 01:08 PM
|
#19
|
Country: 
|
Re: Trying to install MoBlock on Slackware 12.1
Quote:
Originally Posted by jre
Please give me feedback!!
|
It works - with both Moblock and nfblockd on Slackware 12.1
My doubt is, is it right to modify /lib/lsb/init-functions for just one program? There is no other workaround?
Thanks for the hard work!
nowone
|
|
|
| |
03-27-2009, 08:25 PM
|
#20
|
|
|
Re: Trying to install MoBlock on Slackware 12.1
I recommended this to snike3 (are you the same person?), because he is actually using init-functions by me. So basically he is not tempering with system files, but only with a part of his MoBlock installation.
As it seems, these (now outdated) init-functions were broken. They are based on the Debian init-functions, which just recently received an update for just this issue, too.
And again: with the new blockcontrol there is no need to install init-functions separately.
__________________
Code:
Please post your logfiles and output of commands wrapped in
[ CODE ] tags. You find them in the advanced editing mode: #
Maintainer of http://moblock-deb.sourceforge.net: MoBlock, mobloquer, blockcontrol and NFBlock Debian packages.
Author of blockcontrol, previously moblock-control.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:46 AM.
 |
|
 |
|
 |