MoBlock

From ArchWiki
Revision as of 11:36, 12 February 2010 by EXine (Talk | contribs) (Created page with ''''MoBlock''' is a IP blocking daemon that uses iptables. MoBlock is also unofficial PeerGuardian Linux client that is very useful in filtering malicous peers on P2P networks. =…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

MoBlock is a IP blocking daemon that uses iptables. MoBlock is also unofficial PeerGuardian Linux client that is very useful in filtering malicous peers on P2P networks.

Installation

First you need [moblock http://aur.archlinux.org/packages.php?ID=5925] package from AUR. If you want GUI, install the [blockcontrol http://aur.archlinux.org/packages.php?ID=25466] (dependency for GUI) and [mobloquer http://aur.archlinux.org/packages.php?ID=14802] (moblock GUI written using Qt).

Setting up

Configuration

Open the /etc/moblock/config file with your favourite editor.

I recommend disabling filtering HTTP connections, so find WHITE_TCP_OUT="" and add http https to it. It will looks like: ] WHITE_TCP_OUT="http https"

In this file you can also customize what lists MoBlock will use for filtering, but is best to keep the defaults (MoBlock will filter about 99% bad connections, but will not be too paranoid).

If you are behind NAT, add this to config:

WHITE_IP_IN="192.168.0.0/24"
WHITE_IP_OUT="192.168.0.0/24"

That will whitelist everything from 192.168.0.0 to 192.168.255.255.

Now run moblock-update to update the lists.

Starting up

After configuration just run

# /etc/rc.d/moblock start

This is it! If you decide that moblock must run everytime you boot up, just add word moblock to your DAEMONS array in /etc/rc.conf