View previous topic :: View next topic |
Author |
Message |
laman n00b
Joined: 30 Dec 2003 Posts: 5
|
Posted: Tue Jan 25, 2005 8:27 pm Post subject: Awstats and GeoIP |
|
|
I'm using awstats now for about two years now.
I love it. But i was wondering why there were unresolved ip-adresses in my list. So i was looking for a solution and I found GeoIP.
But I tried almost everything and it still does not work!!!
Does anyone has a solution for this problem.
Thanx
Robert |
|
Back to top |
|
|
laman n00b
Joined: 30 Dec 2003 Posts: 5
|
Posted: Fri Jan 28, 2005 10:31 am Post subject: |
|
|
Ok I solved it. After a lot of research I found a post with the solution for me.
Here it comes.
1. Install AWStats
2. Download Geo-IPfree-0.2.tar.gz from the Comprehensive Perl Archive Network (CPAN).
3. Un tar/gzip that. Out of the tar's lib directory, throw the entire "Geo" directory into your AWStats plugins directory.
4. Uncomment the line that activates the GeoIPFree plugin in your AWStats config. I.e. take the "#" out of '#LoadPlugin="geoipfree"'
5. Run an AWStats update. Remember you won't get instant results - only lines that you process from here on out will be located. You will, however, get errors instantly, so you should try an update right away even if you dont have anything to process.
Thanks to the discussion forums on Sourceforge.net
I hope this works for everybody (for me it was fine )
Greetz
Robert |
|
Back to top |
|
|
_GeG_ n00b
Joined: 28 Jun 2004 Posts: 36
|
Posted: Sat Jan 29, 2005 10:43 pm Post subject: |
|
|
try
Code: | emerge awstats
emerge geoip
emerge Geo_IP |
and add this to your awstats.*.conf file:
Code: | LoadPlugin="geoip GEOIP_STANDARD" |
it "only" cost me half a day to find it out. Those gentoo people have really good ideas, but they really don't check their ebuilds, and they don't document anything.
Did you know that there is a geoip USE flag? I expected that awstats would honor it. No way. _________________ Don't like your neighbor? --> https://tips.fbi.gov/ |
|
Back to top |
|
|
[dmnd] n00b
Joined: 02 Nov 2003 Posts: 48 Location: Netherlands
|
Posted: Sun Jan 30, 2005 11:06 am Post subject: |
|
|
_GeG_ wrote: | try
Code: | emerge awstats
emerge geoip
emerge Geo_IP |
and add this to your awstats.*.conf file:
Code: | LoadPlugin="geoip GEOIP_STANDARD" |
it "only" cost me half a day to find it out. Those gentoo people have really good ideas, but they really don't check their ebuilds, and they don't document anything.
Did you know that there is a geoip USE flag? I expected that awstats would honor it. No way. |
I always use emerge -pv <ebuild> to see what use flags are checked for. _________________ cold as ice... |
|
Back to top |
|
|
_GeG_ n00b
Joined: 28 Jun 2004 Posts: 36
|
Posted: Sun Jan 30, 2005 11:35 am Post subject: |
|
|
Quote: | I always use emerge -pv <ebuild> to see what use flags are checked for. | Yes, me too. But I haven't found a single ebuild that uses the geoip flag, so I wonder why it exists _________________ Don't like your neighbor? --> https://tips.fbi.gov/ |
|
Back to top |
|
|
Salemixu n00b
Joined: 01 Jul 2004 Posts: 72 Location: Spain
|
Posted: Tue Feb 15, 2005 12:14 am Post subject: |
|
|
Hi!
I tried both versions of the GeoIP installation and any of them has resolved any country
It determines that there are ip's from the lan and resolves its name because is in /etc/hosts
Should i wait more than 5 minutes in order to get the country?
Any solution to it? |
|
Back to top |
|
|
j-m Retired Dev
Joined: 31 Oct 2004 Posts: 975
|
Posted: Tue Feb 15, 2005 10:28 am Post subject: |
|
|
[dmnd] wrote: | _GeG_ wrote: | try
Code: |
emerge geoip
emerge Geo_IP |
and add this to your awstats.*.conf file:
Code: | LoadPlugin="geoip GEOIP_STANDARD" |
it "only" cost me half a day to find it out. Those gentoo people have really good ideas, but they really don't check their ebuilds, and they don't document anything.
Did you know that there is a geoip USE flag? I expected that awstats would honor it. No way. |
I always use emerge -pv <ebuild> to see what use flags are checked for. |
There is no geoip flag.
Code: |
emerge -pv awstats
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] net-www/awstats-6.3-r2 -vhosts 0 kB
|
And the command should be:
This is the package:
Code: |
dev-perl/Geo-IP
Latest version available: 1.21
Latest version installed: 1.21
Size of downloaded files: 11 kB
Homepage: http://www.cpan.org/modules/by-authors/id/T/TJ/TJMATHER/Geo-IP-1.21.readme
Description: Look up country by IP Address
License: || ( Artistic GPL-2 )
|
No other configuration needed expect for the one line in AWStats config. And no - it won´t "resolve" private IP addresses from LAN, and I don´t really see how on earth it should do such thing. |
|
Back to top |
|
|
Salemixu n00b
Joined: 01 Jul 2004 Posts: 72 Location: Spain
|
Posted: Tue Feb 15, 2005 11:42 am Post subject: |
|
|
I think it resolves private ip's because i have that ip resolved on /etc/hosts
But the external ip's from internet are still unresolved
Any way to try if the problem is of geoip or from my computer? |
|
Back to top |
|
|
_GeG_ n00b
Joined: 28 Jun 2004 Posts: 36
|
|
Back to top |
|
|
Bob P Advocate
Joined: 20 Oct 2004 Posts: 3355 Location: Jackass! Development Labs
|
|
Back to top |
|
|
_GeG_ n00b
Joined: 28 Jun 2004 Posts: 36
|
Posted: Wed Apr 27, 2005 11:28 am Post subject: |
|
|
yes, geoip flag use is coming
webalizer-2.01.10-r8 (still masked) seems also to have geoip flag support. _________________ Don't like your neighbor? --> https://tips.fbi.gov/ |
|
Back to top |
|
|
phlowww n00b
Joined: 23 Feb 2005 Posts: 7 Location: Currently: Hangzhou, China
|
Posted: Wed Apr 27, 2005 12:21 pm Post subject: |
|
|
nicotine, a soulseek p2p client already supports geoip, which is nice to see where the people you're downloading are located. _________________ HP Compaq nx7000
Kernel 2.6.11-gentoo
Linux User #225879 |
|
Back to top |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Tue Jan 10, 2006 12:07 am Post subject: |
|
|
laman wrote: | Ok I solved it. After a lot of research I found a post with the solution for me.
Here it comes.
1. Install AWStats
2. Download Geo-IPfree-0.2.tar.gz from the Comprehensive Perl Archive Network (CPAN).
3. Un tar/gzip that. Out of the tar's lib directory, throw the entire "Geo" directory into your AWStats plugins directory.
4. Uncomment the line that activates the GeoIPFree plugin in your AWStats config. I.e. take the "#" out of '#LoadPlugin="geoipfree"'
5. Run an AWStats update. Remember you won't get instant results - only lines that you process from here on out will be located. You will, however, get errors instantly, so you should try an update right away even if you dont have anything to process.
Thanks to the discussion forums on Sourceforge.net
I hope this works for everybody (for me it was fine )
Greetz
Robert |
thanks. it seems to be the only plugin working for me. _________________ Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick |
|
Back to top |
|
|
ben-xo n00b
Joined: 13 Dec 2004 Posts: 38
|
|
Back to top |
|
|
|