Amule: Difference between revisions

From miki
Jump to navigation Jump to search
Line 22: Line 22:
* Post on openSUSE: http://forums.opensuse.org/applications/388841-iplist-peerguardian-linux-must-have-p2p.html
* Post on openSUSE: http://forums.opensuse.org/applications/388841-iplist-peerguardian-linux-must-have-p2p.html
==== Installation ====
==== Installation ====
* Download required netfilter packages from [http://www.netfilter.org/index.html Netfilter page]
** '''[http://www.netfilter.org/projects/libnfnetlink/downloads.html libnfnetlink]'''
** '''[http://www.netfilter.org/projects/libnetfilter_queue/downloads.html libnetfilter_queue]'''
<ul>
<ul>
<li>On Ubuntu:</li>
<li> Download iplist from [http://iplist.sourceforge.net/start.html IPList page].</li>
<ul>
<ul>
<li> Ubuntu repository. Add a file '''iplist.list''' in directory '''/etc/apt/sources.list.d'''):
<li>There is an apt repository. Add a file '''iplist.list''' in directory '''/etc/apt/sources.list.d'''):</li>
{{lp2|<source lang="text" enclose="prevalid">
<source lang="text">
deb http://ppa.launchpad.net/ssakar/ppa/ubuntu karmic main
deb http://ppa.launchpad.net/ssakar/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/ssakar/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/ssakar/ppa/ubuntu karmic main
</source>}}
</source>
Import the package key with:
<li>Import the package key and install the package:</li>
{{lp2|<source lang="bash" enclose="prevalid">
<source lang="bash">
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C6E3D905C8BCD56BB02E6E0B39456311108B243F
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C6E3D905C8BCD56BB02E6E0B39456311108B243F
sudo apt-get install iplist
</source>}}
</li>
</source>
<li>There is openSUSE prebuilt RPMs.<br/>
:'''[http://downloads.sourceforge.net/iplist/iplist-0.22-0.suse11.i586.rpm?modtime=1222985219&big_mirror=0 iplist-0.22-0.suse11.i586.rpm]'''
:[http://sourceforge.net/project/showfiles.php?group_id=198679 Other versions]
</li>
</ul>
</ul>
</ul>
<li>On other distributions:</li>
* First build ''libnfnetlink'':
<ul>
<li>Download required netfilter packages from [http://www.netfilter.org/index.html Netfilter page]</li>
* '''[http://www.netfilter.org/projects/libnfnetlink/downloads.html libnfnetlink]'''
* '''[http://www.netfilter.org/projects/libnetfilter_queue/downloads.html libnetfilter_queue]'''
<li>Download iplist from [http://iplist.sourceforge.net/start.html IPList page].</li>
* openSUSE prebuilt RPMs ([http://downloads.sourceforge.net/iplist/iplist-0.22-0.suse11.i586.rpm?modtime=1222985219&big_mirror=0 iplist-0.22-0.suse11.i586.rpm])
* [http://sourceforge.net/project/showfiles.php?group_id=198679 Other versions]
<li> First build ''libnfnetlink'':</li>
<source lang="bash">
<source lang="bash">
tar -xvfj libnfnetlink-0.0.39.tar.bz2
tar -xvfj libnfnetlink-0.0.39.tar.bz2
Line 52: Line 52:
sudo make install
sudo make install
</source>
</source>
* Then build ''libnetfilter_queue'':
<li>Then build ''libnetfilter_queue'':</li>
<source lang="bash">
<source lang="bash">
tar -xvfj libnetfilter_queue-0.0.16.tar.bz2
tar -xvfj libnetfilter_queue-0.0.16.tar.bz2
Line 60: Line 60:
sudo make install
sudo make install
</source>
</source>
* Finally, install ''iplist'', but ignore dependencies:
<li> Finally, install ''iplist'', but ignore dependencies:</li>
<source lang="bash">
<source lang="bash">
sudo rpm -ivh --nodeps iplist-0.22-0.suse11.i586.rpm
sudo rpm -ivh --nodeps iplist-0.22-0.suse11.i586.rpm
</source>
</source>
</ul>


==== Usage ====
==== Usage ====

Revision as of 22:12, 18 January 2011

Stability

  • Version 2.2.3-0.pm.4 (i586) + limit 30kB up/200kB down is stable

Firewall

  • !!! there is 3 ports to open: TCP 4911, UDP 4672, UDP 4914 (=standard TCP+3)
    • With default TCP 4662 (and UDP 4665), eD2k works well, but can't connect to Kad and/or aMule always says Firewalled.
    • → Changed to TCP 4911 / UDP 4914 (TCP+3).
    • Configured ADSL box to forward all ports 4500-4999 (TCP+UDP) to my machine.
  • Some reference pages:

Privacy

MoBlock

iplist

Installation

  • On Ubuntu:
    • There is an apt repository. Add a file iplist.list in directory /etc/apt/sources.list.d):
    • deb http://ppa.launchpad.net/ssakar/ppa/ubuntu karmic main
      deb-src http://ppa.launchpad.net/ssakar/ppa/ubuntu karmic main
      
    • Import the package key and install the package:
    • sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C6E3D905C8BCD56BB02E6E0B39456311108B243F
      sudo apt-get install iplist
      
  • On other distributions:
    • Download required netfilter packages from Netfilter page
    • Download iplist from IPList page.
    • First build libnfnetlink:
    • tar -xvfj libnfnetlink-0.0.39.tar.bz2
      cd libnfnetlink-0.0.39
      ./configure --prefix=/usr              # install libs in /usr/lib instead of /usr/local/lib
      make
      sudo make install
      
    • Then build libnetfilter_queue:
    • tar -xvfj libnetfilter_queue-0.0.16.tar.bz2
      cd libnetfilter_queue-0.0.16
      ./configure --prefix=/usr              # install libs in /usr/lib instead of /usr/local/lib
      make
      sudo make install
      
    • Finally, install iplist, but ignore dependencies:
    • sudo rpm -ivh --nodeps iplist-0.22-0.suse11.i586.rpm
      

    Usage

    • Type sudo DISPLAY=:0.0 /usr/sbin/ipblock -g to start the GUI. At first boot, it will creates the rc.d entry.
    • Type sudo /usr/sbin/ipblock -s& to start blocking.
    • Configuration file is at /etc/ipblock.conf. All lists URL is at /etc/ipblock.list.

    Troubleshoot

    • If like me, your dhcp server gives you an address in the range 172.19.xxx.yyy, all internet connections will be blocked by iplist. To prevent this, an easy (but heavy) workaround is simply to remove list bogon.gz.

    Netfilter