That worked. Thank you!
Also, it doesn't seem to start automatically when I boot even though the autostart box is checked. I changed line 133 in /usr/sbin/ipblock to sleep 2, but it hasn't helped.
Hi,
I'm trying to use ipblock, but encounter a java problem when starting it. As I am rather new to Ubuntu I would like to know how to solve this issue:
The highlighted part of the path is missing in my installationHTML Code::~/Desktop$ sudo ipblock -g Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/[B]xawt/libmawt.so[/B] at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1666) at java.lang.Runtime.load0(Runtime.java:787) at java.lang.System.load(System.java:1022) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1767) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1684) at java.lang.Runtime.loadLibrary0(Runtime.java:840) at java.lang.System.loadLibrary(System.java:1047) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.loadLibraries(Toolkit.java:1610) at java.awt.Toolkit.<clinit>(Toolkit.java:1632) at java.awt.Component.<clinit>(Component.java:568)
This is the jdk version I use:
What must I do to get the correct version?HTML Code:java -version java version "1.6.0" OpenJDK Runtime Environment (build 1.6.0-b09) OpenJDK Client VM (build 1.6.0-b09, mixed mode, sharing)
I installed ipblock via gdebi, no error messages or missing packages reported during installation.
Thanks a lot,
Berolina
The OpenJDK doesn't include most GUI libs yet due to licensing issues. You could try sun-java6-jre instead (Updating the default settings can be done with "sudo update-alternatives --config java").
I get an error when trying to install:
sudo apt-get install libnetfilter-queue1
the error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libnetfilter-queue1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/7986B of archives.
After this operation, 69.6kB of additional disk space will be used.
(Reading database ... 145641 files and directories currently installed.)
Unpacking libnetfilter-queue1 (from .../libnetfilter-queue1_0.0.13-1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libnetfilter-queue1_0.0.13-1_amd64.deb (--unpack):
trying to overwrite `/usr/lib/libnetfilter_queue_libipq.so.1.0.0', which is also in package libnetfilter-queue
Errors were encountered while processing:
/var/cache/apt/archives/libnetfilter-queue1_0.0.13-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I deleted /usr/lib/libnetfilter_queue_libipq.so.1.0.0, but that don't works. I hope that wasn't an important lib
I am on an amd64 and running ubuntu hardy heron
Someone has a solution?
Try to remove libnetfilter-queue* first.
Code:sudo apt-get --purge remove libnetfilter-queue libnetfilter-queue1 sudo gdebi /path/to/iplist*.deb
thank you very much!, it worked!
WOW! This is it guys, this is the new Peerguardian for Linux. For the last 2 days I had problems trying to get Moblock working with Mint Elyssa
(I stil have Moblock running with mint Daryna) but with no luck.
This worked straight out of the box. Great work.
For future reference:
Ipblock started to block my own machines after a few minutes (192.0.0.0)
Put this number in a new "allow" list and Bob's your uncle.
If you get an error message combo window like "error: could not find Trojan.gz list and Java error", there's absolutely nothing wrong with Java, it just cannot load that particular list. Remove this list from preferred lists and reload.
Again, great work.
Maybe you could put the following into your "HowTo"
for Linux noobs like myself:
When making your own "allow" list make sure you do a "sudo chmod 777 /var/cache/iplist/" beforehand. Copy the allow.p2p list, rename it to e.g. allowme.p2p, place it in the same /var/cache/iplist/ directory. Open your new allowme.p2p and delete the Ip #'s in there and replace them with the ones you want to whitelist.
Next you "sudo gedit /etc/ipblock.conf" and look for the line with ALLOW_LIST="allow.p2p"
Add the newly created allowme.p2p after allow.p2p and save. It looks like this: ALLOW_LIST="allow.p2p allowme.p2p"
Thanks,
Ed
Bookmarks