Search This Blog

Thursday, March 3, 2011

Configuring moblock on ubuntu

 

$> blockcontrol reload
(reloading IP lists)

$> blockcontrol restart

$> blockcontrol stop | start | restart | reload

FILE: /etc/blockcontrol/blockcontrol.conf – configuring ports

WHITE_TCP_OUT="0:65000"
WHITE_UDP_OUT="0:65000"
WHITE_TCP_IN="0:65000"
WHITE_UDP_IN="0:65000"
WHITE_TCP_FORWARD="0:65000"
WHITE_UDP_FORWARD="0:65000"

/etc/blockcontrol/blocklists.list  - configuring blocking lists

/etc/blockcontrol/allow.p2p – ranges to allow

e.g.
company1 IP1:212.160.159.100-212.160.159.200
company1 IP2:83.238.245.0-83.238.245.254
company1 IP3:83.238.74.0-83.238.74.254
company1 IP4:80.52.240.0-80.52.240.254
company1:150.254.28.0-150.254.31.254

Check logs in:

/var/log/moblock.log
/var/log/blockcontrol.log

 

Installation:

$> gpg --keyserver keyserver.ubuntu.com --recv 9C0042C8
$> gpg --export --armor 9C0042C8 | sudo apt-key add -
$> gksu gedit /etc/apt/sources.list
For Ubuntu 10.10 add:
deb http://ppa.launchpad.net/jre-phoenix/ppa/ubuntu maverick main
deb-src http://ppa.launchpad.net/jre-phoenix/ppa/ubuntu maverick main
$> sudo aptitude update
$> sudo aptitude install moblock blockcontrol mobloquer

No comments:

Post a Comment

If you like this post, please leave a comment :)