Package: arno-iptables-firewall
Version: 1.9.2.k-4
Severity: normal
Tags: upstream patch


/usr/sbin/arno-fwfilter uses an incorrect URL for location lookups, which 
results in 
no data being returned.

The script uses,

http://www.hostip.info/api/rough.html?ip=

but it should be,

http://api.hostip.info/get_html.php?ip=

according to information here,

http://www.hostip.info/use.html


-- System Information:
Debian Release: 6.0
  APT prefers squeeze-updates
  APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages arno-iptables-firewall depends on:
ii  debconf [debconf-2.0]     1.5.36.1       Debian configuration management sy
ii  gawk                      1:3.1.7.dfsg-5 GNU awk, a pattern scanning and pr
ii  iproute                   20100519-3     networking and traffic control too
ii  iptables                  1.4.8-3        administration tools for packet fi

Versions of packages arno-iptables-firewall recommends:
ii  dnsutils             1:9.7.2.dfsg.P3-1.1 Clients provided with BIND
ii  lynx                 2.8.8dev.5-1        Text-mode WWW Browser (transitiona

arno-iptables-firewall suggests no packages.

-- debconf information excluded
--- arno-fwfilter       2011-02-16 09:29:24.000000000 +0000
+++ arno-fwfilter       2011-02-16 09:36:19.000000000 +0000
@@ -426,7 +426,7 @@
 
             if (SHOW_LOCATION==1)
             {
-              syscall=sprintf("lynx -connect_timeout=1 -dump 
http://www.hostip.info/api/rough.html?ip=%s 2>/dev/null |grep -e \"Country:\" 
-e \"City:\" |while read line; do echo -n \" $line\"; done", 
substr(HOSTINFO,5,length(HOSTINFO)-4))
+              syscall=sprintf("lynx -connect_timeout=1 -dump 
http://api.hostip.info/get_html.php?ip=%s 2>/dev/null |grep -e \"Country:\" -e 
\"City:\" |while read line; do echo -n \" $line\"; done", 
substr(HOSTINFO,5,length(HOSTINFO)-4))
               system(syscall)
             }
 

Reply via email to