Go Back   Phoenix Labs > Projects > PeerGuardian Linux
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes

 
Old 10-05-2008, 01:03 AM   #1
temp123

Member
Join Date: Feb 2008
Posts: 4
Red face Trying to install MoBlock on Slackware 12.1

I'm new to slackware, so i'm not entirely sure how to do everything right now. But, I was wondering how to install MoBlock on Slackware, as well as MoBloquer. I've searched slackbuilds.org, and there is no package for MoBlock, so I tried CD'ing to the MoBlock directory I extracted and ran

Code:
make
But I get all this output

Code:
bill@Home:~/Desktop/MoBlock-0.8$ make
gcc -Wall -O2 -march=i586 -mtune=i686 -fomit-frame-pointer -ffast-math -D_GNU_SOURCE -DNFQUEUE -L/usr/include/libipq   -c -o MoBlock.o MoBlock.c
MoBlock.c:46:52: error: libnetfilter_queue/libnetfilter_queue.h: No such file or directory
MoBlock.c:377: warning: 'struct nfq_data' declared inside parameter list
MoBlock.c:377: warning: its scope is only this definition or declaration, which is probably not what you want
MoBlock.c:377: warning: 'struct nfgenmsg' declared inside parameter list
MoBlock.c:377: warning: 'struct nfq_q_handle' declared inside parameter list
MoBlock.c: In function 'nfqueue_cb':
MoBlock.c:384: warning: implicit declaration of function 'nfq_get_msg_packet_hdr'
MoBlock.c:384: warning: assignment makes pointer from integer without a cast
MoBlock.c:386: error: dereferencing pointer to incomplete type
MoBlock.c:387: warning: implicit declaration of function 'nfq_get_payload'
MoBlock.c:389: error: dereferencing pointer to incomplete type
MoBlock.c:392: warning: implicit declaration of function 'nfq_set_verdict'
MoBlock.c: In function 'netlink_loop':
MoBlock.c:497: warning: implicit declaration of function 'nfq_open'
MoBlock.c:497: warning: assignment makes pointer from integer without a cast
MoBlock.c:503: warning: implicit declaration of function 'nfq_unbind_pf'
MoBlock.c:508: warning: implicit declaration of function 'nfq_bind_pf'
MoBlock.c:514: warning: implicit declaration of function 'nfq_create_queue'
MoBlock.c:514: warning: assignment makes pointer from integer without a cast
MoBlock.c:520: warning: implicit declaration of function 'nfq_set_mode'
MoBlock.c:520: error: 'NFQNL_COPY_PACKET' undeclared (first use in this function)
MoBlock.c:520: error: (Each undeclared identifier is reported only once
MoBlock.c:520: error: for each function it appears in.)
MoBlock.c:525: warning: implicit declaration of function 'nfq_nfnlh'
MoBlock.c:525: warning: assignment makes pointer from integer without a cast
MoBlock.c:526: warning: implicit declaration of function 'nfnl_fd'
MoBlock.c:529: warning: implicit declaration of function 'nfq_handle_packet'
MoBlock.c:533: warning: implicit declaration of function 'nfq_destroy_queue'
MoBlock.c:534: warning: implicit declaration of function 'nfq_close'
make: *** [MoBlock.o] Error 1
Thanks in advanced!
temp123 is offline   Reply With Quote

 
Old 10-05-2008, 08:36 AM   #2
jre

Senior Member
Join Date: Sep 2005
Posts: 588
Default Re: Trying to install MoBlock on Slackware 12.1

Have you installed libnfnetlink and libnetfilter-queue? MoBlock depends on these libraries.
Make sure that you also have installed the development files of these libraries (but AFAIK on slackware dev files are always included with the libraries, so there's probably nothing to do).

If you manage to compile moblock (version 0.9 from CVS is recommended!) and go on with mobloquer: Remember to alos install "moblock-control", since mobloquer depends on this.

Greets
jre
__________________
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.
jre is offline   Reply With Quote

 
Old 01-19-2009, 05:31 AM   #3
Israel
 
Israel's Avatar

Member
Join Date: Dec 2005
Posts: 75
Default Re: Trying to install MoBlock on Slackware 12.1

I just installed libnfnetlink and libnetfilter-queue on Backtrack 3 (Which uses Slackware 12.1 packages) and MoBlock kept giving this error.

Quote:
bt MoBlock-0.8 # ./moblock: error while loading shared libraries: libnetfilter_queue.so.1: cannot open shared object file: No such file or directory

[1]+ Done ./MoBlock-nfq.sh

bt MoBlock-0.8 # ./MoBlock-ipq.sh
./moblock: error while loading shared libraries: libnetfilter_queue.so.1: cannot open shared object file: No such file or directory
bt MoBlock-0.8 # ./moblock
./moblock: error while loading shared libraries: libnetfilter_queue.so.1: cannot open shared object file: No such file or directory
bt MoBlock-0.8 #
The ReadMe file says there is a 'static' version of moblock for Slackware that does not depend on libnfnetlink and libnetfilter-queue but I can't find it. Nor could I find an active link to download MoBlock 0.9 from.

Last edited by Israel : 01-19-2009 at 05:54 AM.
Israel is offline   Reply With Quote

 
Old 01-19-2009, 12:01 PM   #4
jre

Senior Member
Join Date: Sep 2005
Posts: 588
Default Re: Trying to install MoBlock on Slackware 12.1

All versions (including static): http://developer.berlios.de/project/...?group_id=2509

The o.9 is still in development, you can get it here: http://cvs.berlios.de/cgi-bin/viewvc.cgi/moblock/ (with a normal webbrowser or with cvs).
I strongly recommend to use 0.9: bugs are fixed in there and it has the marking feature.

Sorry, I don't know how to get it running on slackware.
__________________
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.
jre is offline   Reply With Quote

 
Old 01-20-2009, 04:02 AM   #5
Israel
 
Israel's Avatar

Member
Join Date: Dec 2005
Posts: 75
Default Re: Trying to install MoBlock on Slackware 12.1

Ok, I think I'm almost there. Apparently whether its Moblock 0.8 or 0.9 the make file doesn't write any files to the directories they're needed like in Debian or other distos. I've got most everything set up now but I'm hung on this last part. I swear if I get done I'm going to write a tutorial or script or something on this.

Here's my current error shown from moblock-control test:
Code:
bt moblock-control-1.2 # moblock-control test
Creating missing /etc/default/./moblock-control: line 104: /etc/default/: Is a directory
./moblock-control: line 105: /etc/default/: Is a directory
./moblock-control: line 106: /etc/default/: Is a directory
./moblock-control: line 107: /etc/default/: Is a directory
./moblock-control: line 108: /etc/default/: Is a directory
./moblock-control: line 109: /etc/default/: Is a directory
./moblock-control: line 110: /etc/default/: Is a directory
./moblock-control: line 111: /etc/default/: Is a directory
./moblock-control: line 112: /etc/default/: Is a directory
.
Testing MoBlock:
moblock is unknown. You need to install it to /sbin/moblock failed!
and make it executable. failed!
 failed!
This doesn't make sense to me because I copied the MoBlock executable to that location. Checked its permissions and made sure its executable, and I still get this?

Last edited by Israel : 01-20-2009 at 04:08 AM.
Israel is offline   Reply With Quote

 
Old 02-14-2009, 01:16 AM   #6
kirkaptain

Junior Member
Join Date: Feb 2009
Posts: 1
Default Re: Trying to install MoBlock on Slackware 12.1

I'm trying to install moblock-control on Slackware 12.2 and am getting the same error:
Code:
bash-3.1# moblock-control test
Testing MoBlock:
moblock is unknown. You need to install it to /usr/bin/moblock failed!
and make it executable. failed!
 failed!
bash-3.1# ls -l /usr/bin/moblock
-rwxr-xr-x 1 root root 21224 2009-02-13 21:02 /usr/bin/moblock
bash-3.1#
I'm stumped. Anyone have any ideas? Israel, if you get make progress, please keep us apprised of the situation.


Quote:
Originally Posted by Israel View Post
Code:
bt moblock-control-1.2 # moblock-control test
Creating missing /etc/default/./moblock-control: line 104: /etc/default/: Is a directory
./moblock-control: line 105: /etc/default/: Is a directory
./moblock-control: line 106: /etc/default/: Is a directory
./moblock-control: line 107: /etc/default/: Is a directory
./moblock-control: line 108: /etc/default/: Is a directory
./moblock-control: line 109: /etc/default/: Is a directory
./moblock-control: line 110: /etc/default/: Is a directory
./moblock-control: line 111: /etc/default/: Is a directory
./moblock-control: line 112: /etc/default/: Is a directory
.
Testing MoBlock:
moblock is unknown. You need to install it to /sbin/moblock failed!
and make it executable. failed!
 failed!
This doesn't make sense to me because I copied the MoBlock executable to that location. Checked its permissions and made sure its executable, and I still get this?
kirkaptain is offline   Reply With Quote

 
Old 02-15-2009, 10:08 AM   #7
jre

Senior Member
Join Date: Sep 2005
Posts: 588
Default Re: Trying to install MoBlock on Slackware 12.1

I think the automatic detection of the installed moblock daemon fails. I don't know why. Please post your "ls -l /bin/sh"

You can try to set it manually. Insert this at the beginning of /etc/moblock/moblock.conf:
Code:
NAME="moblock"
DAEMON="/usr/bin/$NAME"
DESC="MoBlock"
Also make sure that you don't have other entries for these variables in /etc/moblock/moblock.conf and /etc/default/moblock.

When you have edited your files please post "sudo moblock-control show_config"
__________________
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.
jre is offline   Reply With Quote

 
Old 03-03-2009, 05:39 PM   #8
Torquewrench

Member
Join Date: Mar 2009
Country: United States
Posts: 22
Default Re: Trying to install MoBlock on Slackware 12.1

I'm installing onto Slack 12.2 also. Please do write a tutorial. Here are the steps I'm planning to take:

install libnfnetlink from Slackbuilds.org http://slackbuilds.org/repository/12.../libnfnetlink/
install libnetfilter-queue http://slackbuilds.org/repository/12...tfilter_queue/
install p7zip from Slackbuilds.org http://slackbuilds.org/repository/12.2/system/p7zip/
install moblock 0.9 http://cvs.berlios.de/cgi-bin/viewvc.cgi/moblock/
install moblock-control http://sourceforge.net/project/showf...roup_id=162910 per instructions in README
insert the following into th start of /etc/moblock/moblock.conf
NAME="moblock"
DAEMON="/usr/bin/$NAME"
DESC="MoBlock"
add /etc/init.d/moblock to rc.local startup script
Torquewrench is offline   Reply With Quote

 
Old 03-04-2009, 12:21 PM   #9
Torquewrench

Member
Join Date: Mar 2009
Country: United States
Posts: 22
Default Re: Trying to install MoBlock on Slackware 12.1

Got through installing moblock-control then when I try to run moblock-control status I get the following:

Code:
moroot@tower:~# moblock-control status
Current IPv4 iptables rules (this may take a while):

FATAL: Module ip_tables not found.
iptables v1.4.2: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

Current IPv6 iptables rules (this may take a while):

FATAL: Module ip6_tables not found.
ip6tables v1.4.2: can't initialize ip6tables table `filter': Address family not supported by protocol
Perhaps ip6tables or your kernel needs to be upgraded.

Please check if the above printed iptables rules are correct!

moblock is unknown. You need to install it to /usr/bin/moblock failed!
and make it executable. failed!
I checked and /etc/moblock/moblock.conf contains:

Code:
        NAME="moblock"
        DAEMON="/usr/bin/$NAME"
        DESC="MoBlock"
What do I need to do to get things working?

Thanks,

TW

Quote:
Originally Posted by Torquewrench View Post
I'm installing onto Slack 12.2 also. Please do write a tutorial. Here are the steps I'm planning to take:

install libnfnetlink from Slackbuilds.org http://slackbuilds.org/repository/12.../libnfnetlink/
install libnetfilter-queue http://slackbuilds.org/repository/12...tfilter_queue/
install p7zip from Slackbuilds.org http://slackbuilds.org/repository/12.2/system/p7zip/
install moblock 0.9 http://cvs.berlios.de/cgi-bin/viewvc.cgi/moblock/
install moblock-control http://sourceforge.net/project/showf...roup_id=162910 per instructions in README
insert the following into th start of /etc/moblock/moblock.conf
NAME="moblock"
DAEMON="/usr/bin/$NAME"
DESC="MoBlock"
add /etc/init.d/moblock to rc.local startup script
Torquewrench is offline   Reply With Quote

 
Old 03-05-2009, 12:34 PM   #10
jre

Senior Member
Join Date: Sep 2005
Posts: 588
Default Re: Trying to install MoBlock on Slackware 12.1

You should get the same error if you simply type the commands "iptables -L -nv" and "ip6tables -L -nv" as root. Please check that.
So this has nothing to do with your actual moblock-control installation.

I guess your kernel lacks some netfilter support. So either look for another kernel or recompile your kernel after reconfiguring it. If unsure you may post your kernel config here. Look for a "config-..." file in your /boot directory. At least under Debian it is there.

iptables 1.4.2 is installed here, too, so this is not a problem.

BTW, p7zip is quite optional. I don't know if currently any blocklists are provided this way...
__________________
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.
jre is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:25 AM.


  

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© Phoenix Labs Staff