Modules >> Firewall

Pages: 1
knewbie_one_kenewbie
newbie


Reged: 01/25/05
Posts: 32
Loc: Paris
MoBlock or Peerguardian on cc4.2 Community
      #103266 - 12/20/07 09:40 PM

Hi all,

I am looking at MoBlock or Peerguardian for my server, and was wondering if anyone installed it on a 4.2 ?

Here is what I found on the subject already :
2002 reference on this forum
Some people having installed it on cc3.2
MoBlock discussed as a simple rpms packet


I checked using "iptables -L -nv" and cc4.2 do have iptables, and it is populated already, so "all I have to do"(tm) is install the rpm from here :
MoBlock rpms

or get the fedora core compiled here :
FC rpm

So, anyone tried this MoBlock and can tell me if it is a good idea ?
(Buddha's answer to the first post let me hope for this alternatives I found )

I'm also a taker for any install tips, there seem to be a dependency to libnfnetlink-devel and libnetfilter_queue-devel in the latest how-to I found, and they don't appear in a "apt-get search.|grep libnet*" ...

Cheers,
Knewbie

Edited by knewbie_one_kenewbie (12/20/07 09:41 PM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
maxximum
journeyman


Reged: 09/01/07
Posts: 79
Re: MoBlock or Peerguardian on cc4.2 Community [Re: knewbie_one_kenewbie]
      #103332 - 12/24/07 07:59 AM

"libnetfilter_queue" has been previously known as "libnfnetlink_queue".
Package for RHEL4 is avalaible on DAG website :
http://dag.wieers.com/rpm/packages/libnfnetlink/

I've installed these two packages :
1/ libnfnetlink-0.0.25-1.el4.rf.i386.rpm
2/ libnfnetlink-devel-0.0.25-1.el4.rf.i386.rpm

I've also installed libnet-1.1.2.1-2.2.el4.rf.rpm :
http://dag.wieers.com/rpm/packages/libnet/

(I can't find any libnet-devel ...)

Then I tried to build rpm from "moblock-0.8-2.fc7.src.rpm" ... but "libnetfilter_queue-devel" is required during rpmbuild

Any idea how to build moblock on CC 4.2 ?


Post Extras: Print Post   Remind Me!   Notify Moderator  
knewbie_one_kenewbie
newbie


Reged: 01/25/05
Posts: 32
Loc: Paris
Re: MoBlock or Peerguardian on cc4.2 Community [Re: maxximum]
      #103356 - 12/26/07 07:16 PM

I advanced some and I think I have a bad news...

I tried compiling but had the demand for libnetfilter_queue

I found all the files on http://fr.rpmfind.net/linux/rpm2html/search.php? and on DAG's server you linked to :

libnetfilter_queue-0.0.13-3.fc7.i386.rpm libnfnetlink-0.0.25-1.el4.rf.i386.rpm
libnet-1.1.2.1-2.2.el4.rf.i386.rpm libnetfilter_queue-devel-0.0.13-3.fc7.i386.rpm libnfnetlink-devel-0.0.25-1.el4.rf.i386.rpm

The problem comes when installing :

[root@### DOWN]# rpm -i *.rpm
attention: libnet-1.1.2.1-2.2.el4.rf.i386.rpm: signature V3 DSA: NOKEY, key ID 6b8d79e6
attention: libnetfilter_queue-0.0.13-3.fc7.i386.rpm: signature V3 DSA: NOKEY, key ID 1ac70ce6
erreur: Dépendances requises:
libc.so.6(GLIBC_2.4) est nécessaire pour libnetfilter_queue-0.0.13-3.fc7.i386
rtld(GNU_HASH) est nécessaire pour libnetfilter_queue-0.0.13-3.fc7.i386

the dependency for glibc 2.4 comes with libnetfilter_queue and -devel

rtld is ... a part of GLIBC.

needed is glibc v2.4, CC4.2 has an earlier version. "apt-cache show glibc" gives :

Package: glibc
Section: System Environment/Libraries
Installed Size: 14474
Maintainer: CentOS
Version: 2.3.4-2.36
Pre-Depends: basesystem, libgcc, /usr/sbin/glibc_post_upgrade.i686, /sbin/ldconfig, rpmlib(PartialHardlinkSets) (<= 4.0.4-1), rpmlib(PayloadFilesHavePrefix) (<= 4.0-1), rpmlib(CompressedFileNames) (<= 3.0.4-1)
Depends: glibc-common (= 2.3.4-2.36)

Sooo...
I'm not totally sure : is it a good idea to upgrade to glibc 2.4 on my own ?

I think there is a more "up to date" repository for CC 4.2 (saw it in one of the posts or, more possibly, in the documentation...).Not sure we can install glibc 2.4 from it.
+ Will the server die horribly if I do ?
Should I, as a true geek, make a vm of my actual cc install, launch under vmware and test by myself !
(I don't even know if it IS possible )

Also I read that older kernel could use the libipq library instead. Still possible (and is it simpler) with cc 4.2 ?

Anyone can give us some advice ?

EDIT :
found the advanced repository. it is described here :
clarkconnect.com/docs/Howtos_-_Installing_PHP_5_and_MySQL_5_on_ClarkConnect_4.x

and it provides glibc 2.3...

Edited by knewbie_one_kenewbie (12/26/07 07:23 PM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
knewbie_one_kenewbie
newbie


Reged: 01/25/05
Posts: 32
Loc: Paris
Maybe another way than MoBlock... [Re: knewbie_one_kenewbie]
      #103379 - 12/27/07 03:43 PM

Found this :

http://www.dessent.net/linblock/

Seems it is "the older way" to get Peergardian-like linux filter.
From the doc of MoBlock it say that MoBlock is just a maintaned solution, but that linblock still works, but isn't maintaned anymore...

gonna try tonight...
If anyone already tried ...


Post Extras: Print Post   Remind Me!   Notify Moderator  
knewbie_one_kenewbie
newbie


Reged: 01/25/05
Posts: 32
Loc: Paris
Advancing with Linblock [Re: knewbie_one_kenewbie]
      #103384 - 12/27/07 05:16 PM

ok, so far the most terrible I had to do was install additionnal perl modules through CPAN.

the doc is well made, and the procedure clearly explained (can take some time to compile...and allowed me to install additional modules needed by torrentflux-b4rt I didn't know how to install )

Now every requirement checks, but one...
the bluetrack list coded in the script is not directly accessible anymore

Anyone knows where to get a good blocklist ? get as in wget...

The antip2p.txt I found is a bit of a "everything in it", including towns, companies, etc...
Do I really want to block "City and County of Denver" and "CITRIX SYSTEMS" ...(and I might need to get access to citrix's webpage....)

Schock discovery, in the lists I found from countrymen there are ... all the ISP ranges in my country, among other things. Including my own IP range, which could cause a problem, I think... but means much fewer risks as far as local enforcement are concerned.

Please advise


Post Extras: Print Post   Remind Me!   Notify Moderator  
knewbie_one_kenewbie
newbie


Reged: 01/25/05
Posts: 32
Loc: Paris
SOLVED [Re: knewbie_one_kenewbie]
      #103469 - 12/30/07 01:57 PM

Using MoBlock right now.

Had a post where I asked help modifying linblock.pl "disappear", no reason given...maybe because I posted linblock code ?

Anyhow, after getting linblock to work it took AGES to run.
I stopped it at 400 minutes walltime...(my rig is a Dual PIII 1GHz + 2 Gb Ram) and it seemed far from done.
It used one full cpu all this time. So I killed it </manic laughter>

Anyhow I found how to have moblock compile and run on CC4.2
almost no cpu use, background "daemon".

pm me if interested. I'll do a how to if many are interested.

Regards,
Knewbie


Post Extras: Print Post   Remind Me!   Notify Moderator  
Steveoman
journeyman


Reged: 05/23/05
Posts: 92
Loc: Texas
Re: SOLVED [Re: knewbie_one_kenewbie]
      #104118 - 01/21/08 12:01 AM

I would love a walkthrough.

Post Extras: Print Post   Remind Me!   Notify Moderator  
knewbie_one_kenewbie
newbie


Reged: 01/25/05
Posts: 32
Loc: Paris
Walkthough [Re: Steveoman]
      #104121 - 01/21/08 03:44 AM

It's quite simple...(tm) 8p
The real difficulty here is that this is explained nowhere, you have to read the comments in the Makefile to understand.

first install iptables-dev or iptables-devel (I think it is the latter one)

sudo apt-get install iptables-devel

open the moblock makefile, comment (add # at the beginning of the lines) the lines mentionning ipnetqueue, uncomment the lines using libipq.

Make.

move the script generate to /usr/bin, make it executable, lauch after having read the doc to download the ip list...

I hope I didn't forget anything 8)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Steveoman
journeyman


Reged: 05/23/05
Posts: 92
Loc: Texas
Re: Walkthough [Re: knewbie_one_kenewbie]
      #104127 - 01/21/08 10:41 AM

Do I need to install any of the libnet* stuff, or does the commenting you mentioned take care of that?

Sorry, this is the first time I've had to resolve dependencies and compile and install something on Linux.


Post Extras: Print Post   Remind Me!   Notify Moderator  
knewbie_one_kenewbie
newbie


Reged: 01/25/05
Posts: 32
Loc: Paris
Re: Walkthough [Re: Steveoman]
      #104193 - 01/23/08 05:39 AM

no problem 8)

I don't think you will need to install any of the libnet* stuff, as the script won't be using it al all. iptables-devel should be enough (tm).


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 14 anonymous users are browsing this forum.

Moderator:  pointclark 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 4329

Rate this topic

Jump to

Contact Us ClearFoundation

Powered by UBB.threads™ 6.5.5