I've just installed xtables-*, compiled the geoip database, but when I try to use an iptables command it always gives back the following error:
Command
iptables -I INPUT -p tcp --dport 80 -m geoip --src-cc 'DE' -j DROP
Error
Could not open /usr/share/xt_geoip/LE/DE.iv0: No such file or directory
iptables v1.4.8: Could not read geoip database`
The problem is, that the support scripts create the geoip database, but they all end as iv4
and iv6
, not iv0
. When I rename the DE.iv4
file to DE.iv0
, the error becomes:
iptables: No chain/target/match by that name.
How can I breathe life into the system?