Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old August 20th, 2007   #1
uljanow
Way Too Much Ubuntu
 
Join Date: Jul 2007
Beans: 282
Ubuntu 9.04 Jaunty Jackalope
HOWTO: Graphical IP Blocker

This article describes how to block lists with a graphical front-end called IPblock. No knowledge of networking, firewalls or command-line configuration are needed. Due to the way IPblock works it doesn't change the behavior of existing firewalls which makes it compatible [1] with other firewall applications like ufw, shorewall or fireHOL. This howto is intended for Beginners and was tested on Ubuntu Feisty, Gutsy, Hardy, Intrepid, Jaunty and Karmic (32-bit and 64-bit).

Installation
Add the iplist repository to your sources.list. Make sure to use the correct sources.list that corresponds to your current distribution:
  • Ubuntu 9.10 "Karmic Koala":
    Code:
    sudo wget http://iplist.sf.net/sources.list.d/karmic.list -O /etc/apt/sources.list.d/iplist.list
  • Ubuntu 9.04 "Jaunty Jackalope":
    Code:
    sudo wget http://iplist.sf.net/sources.list.d/jaunty.list -O /etc/apt/sources.list.d/iplist.list
  • Ubuntu 8.10 "Intrepid Ibex":
    Code:
    sudo wget http://iplist.sf.net/sources.list.d/intrepid.list -O /etc/apt/sources.list.d/iplist.list
  • Ubuntu 8.04 "Hardy Heron":
    Code:
    sudo wget http://iplist.sf.net/sources.list.d/hardy.list -O /etc/apt/sources.list.d/iplist.list
The key of the signed packages can be imported like this:
Code:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C6E3D905C8BCD56BB02E6E0B39456311108B243F
There is also another way to import the key. You could save the pub key to a file and import it through System->Administration->Software Sources->Authentication->Import Key-file.

After an update of the Software sources iplist can be installed with any package manager. E.g.:
Code:
sudo aptitude update
sudo aptitude install iplist
Note: If sun-java* is installed by gdebi it requires to open the terminal part of gdebi and accept sun's license agreement.
Packages for Feisty and Gutsy can be found in the 0.19 release.

After the installation IPblock can be found in Applications -> Internet -> IPblock.



Lists

The default choice for lists is similar to PeerGuardian.
  • level1.gz - Anti-P2P organizations and known government addresses
  • ads-trackers-and-bad-pr0n.gz - Advertising and data tracker servers
  • spyware.gz - Malicious spyware and adware servers
  • edu.gz - Educational institutions and universities
  • bogon.gz - Spoofed IP-addresses
These lists are maintained by www.bluetack.co.uk (list descriptions). Custom p2p or dat lists can easily be added. Note that lists can optionally be compressed with gzip.
The URL file /etc/ipblock.lists contains list descriptions.



Settings

All options can be configured in this and the network tab. Auto-updating lists is important and the default choice of 2 days is reasonable. Using out-of-date lists is not recommended.
To ignore outgoing network traffic like HTTP or EMAIL (pop3) use the ignored ports section. Note that http and dns (domain) is ignored by default. The connection-settings specify which type of connections should be filtered.



[1] NOTE: IPblock needs to be started after other firewall applications.

FAQ on iplist.sf.net

Last edited by uljanow; October 13th, 2009 at 01:34 AM.. Reason: added Karmic support
uljanow is offline   Reply With Quote
Old August 21st, 2007   #2
maynoth
A Carafe of Ubuntu
 
Join Date: Aug 2005
Beans: 56
Re: HOWTO: Graphical IP Blocker

awesome stuff thank you so much!!!!!

one less reason to use windows...
maynoth is offline   Reply With Quote
Old August 21st, 2007   #3
maynoth
A Carafe of Ubuntu
 
Join Date: Aug 2005
Beans: 56
Re: HOWTO: Graphical IP Blocker

just tried it out, can you have it set up to add url's from bluetack... instead of having to download the file manually?
maynoth is offline   Reply With Quote
Old August 21st, 2007   #4
uljanow
Way Too Much Ubuntu
 
Join Date: Jul 2007
Beans: 282
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Graphical IP Blocker

Quote:
Originally Posted by maynoth View Post
just tried it out, can you have it set up to add url's from bluetack... instead of having to download the file manually?
/usr/share/doc/iplist/README.lists already contains many additional lists from bluetack. To use those just add the basename in the list section.
e.g.
README.lists contains "http://www.bluetack.co.uk/config/spider.gz". So adding spider.gz in List tab -> Add and doing an update should work.
uljanow is offline   Reply With Quote
Old August 21st, 2007   #5
maynoth
A Carafe of Ubuntu
 
Join Date: Aug 2005
Beans: 56
Re: HOWTO: Graphical IP Blocker

oh wow... Just wow...

man you Absoflippinglutely rock!!!1


THANK YOU SO MUCH....
maynoth is offline   Reply With Quote
Old August 21st, 2007   #6
pelle.k
100% Pure Ubuntu
 
pelle.k's Avatar
 
Join Date: Nov 2005
Location: Scandinavia
Beans: 906
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Graphical IP Blocker

This is good news! I do run ipblock, but what i didn't know is that they nowadays include a GUI. I must say ipblock seems very promising.
I suggest you (uljanow) check out my moblock FAQ, and implement something like it... people are gonna want to know more.

Good luck!
__________________
Quote:
- "though It seems that I know that I know, what I would like to see Is the I that sees me, when I know that I know that I know" / Alan Watts
pelle.k is offline   Reply With Quote
Old August 21st, 2007   #7
berttt
First Cup of Ubuntu
 
Join Date: Aug 2007
Beans: 3
Re: HOWTO: Graphical IP Blocker

Thanks for the info, has anyone had problems with this yet? Having problems getting it to work.
berttt is offline   Reply With Quote
Old August 21st, 2007   #8
maynoth
A Carafe of Ubuntu
 
Join Date: Aug 2005
Beans: 56
Re: HOWTO: Graphical IP Blocker

worked great for me, the program launcher is in applications-->internet--->ipblock
maynoth is offline   Reply With Quote
Old August 23rd, 2007   #9
berttt
First Cup of Ubuntu
 
Join Date: Aug 2007
Beans: 3
Re: HOWTO: Graphical IP Blocker

I installed it using gdebi and everything went ok, i can update the lists but when i "enable" it locks up. It doesn't change from disabled and it blocks all connections to and from the internet. Not sure why
berttt is offline   Reply With Quote
Old August 23rd, 2007   #10
antharr
A Carafe of Ubuntu
 
antharr's Avatar
 
Join Date: Nov 2006
Beans: 105
Ubuntu 7.04 Feisty Fawn
Re: HOWTO: Graphical IP Blocker

I installed Ipblock and the installation went fine, however it will not start when I click on it. Anyone have any idea why it would do this?
antharr is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:39 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry