iptables with geoip does not work

Bug #732560 reported by Arjan
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xtables-addons (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Ubuntu 10.10 64 bits

basically what i want to do is:
# iptables -A FORWARD -m geoip --src-cc A1,A2 -j DROP

but i run into 2 issues with this:
1) the tools are missing for downloading and converting (geoip_csv_iv0.pl) the databases, and
  the link (http://jengelh.hopto.org/files/geoip/) named
 in the docu doesn't work, basically the tools are nasty to find.
2) when i managed 1) it still doesn't work, and i get a:
  # iptables -A FORWARD -m geoip --src-cc A1,A2 -j DROP
  iptables: No chain/target/match by that name.

what i expect:
1) tools are included with xtables-addons (geoip_download.sh and geoip_csv_iv0.pl) or
  docu point to a link which contains those tools
2) this should just work perhaps after insmodding an ipt_geoip (and having
   the database files)

about 2):
I think there is no kernel (match) support:
#cat /proc/net/ip_tables_matches
state
multiport
udplite
udp
tcp
icmp

where geoip is missing
in /lib/modules is no ipt_geoip, or something which looks like it.

At the xtables support page ubuntu is listed in red (like many other
distro's):
http://xtables-addons.sourceforge.net/distro-support.php

Of course i can start the custom kernel/patching etc etc, but this is not
what i seek (for long term).
Please consider of fixing this.

Regards,

Arjan Filius
<email address hidden>

affects: ubuntu → xtables-addons (Ubuntu)
Revision history for this message
smithson (trevor-o) wrote :

agreed, after copying US.iv4 to US.iv0 I also get:

  iptables: No chain/target/match by that name.

Would love to see this fixed

George Gill (ggilliii10)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xtables-addons (Ubuntu):
status: New → Confirmed
Revision history for this message
Oibaf (oibaf) wrote :

Hi, since Ubuntu 10.10 geoip has been reworked a lot. The official documentation is now at: https://inai.de/projects/xtables-addons/geoip.php

The tools are now also included:
/usr/bin/xt_geoip_query
/usr/libexec/xtables-addons/xt_geoip_build
/usr/libexec/xtables-addons/xt_geoip_build_maxmind
/usr/libexec/xtables-addons/xt_geoip_dl
/usr/libexec/xtables-addons/xt_geoip_dl_maxmind

and each one has its own man page.

Let us know if this is fixed with a newer Ubuntu.

Changed in xtables-addons (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for xtables-addons (Ubuntu) because there has been no activity for 60 days.]

Changed in xtables-addons (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.