Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Awstats and GeoIP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
laman
n00b
n00b


Joined: 30 Dec 2003
Posts: 5

PostPosted: Tue Jan 25, 2005 8:27 pm    Post subject: Awstats and GeoIP Reply with quote

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 8O and it still does not work!!!

Does anyone has a solution for this problem.

Thanx

Robert
Back to top
View user's profile Send private message
laman
n00b
n00b


Joined: 30 Dec 2003
Posts: 5

PostPosted: Fri Jan 28, 2005 10:31 am    Post subject: Reply with quote

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 :lol: )

Greetz

Robert
Back to top
View user's profile Send private message
_GeG_
n00b
n00b


Joined: 28 Jun 2004
Posts: 36

PostPosted: Sat Jan 29, 2005 10:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
[dmnd]
n00b
n00b


Joined: 02 Nov 2003
Posts: 48
Location: Netherlands

PostPosted: Sun Jan 30, 2005 11:06 am    Post subject: Reply with quote

_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
View user's profile Send private message
_GeG_
n00b
n00b


Joined: 28 Jun 2004
Posts: 36

PostPosted: Sun Jan 30, 2005 11:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Salemixu
n00b
n00b


Joined: 01 Jul 2004
Posts: 72
Location: Spain

PostPosted: Tue Feb 15, 2005 12:14 am    Post subject: Reply with quote

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
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Tue Feb 15, 2005 10:28 am    Post subject: Reply with quote

[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:

Code:

emerge Geo-IP


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
View user's profile Send private message
Salemixu
n00b
n00b


Joined: 01 Jul 2004
Posts: 72
Location: Spain

PostPosted: Tue Feb 15, 2005 11:42 am    Post subject: Reply with quote

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
View user's profile Send private message
_GeG_
n00b
n00b


Joined: 28 Jun 2004
Posts: 36

PostPosted: Sat Mar 12, 2005 11:48 am    Post subject: Reply with quote

j-m:
Quote:
There is no geoip flag
Have a look at http://www.gentoo.org/dyn/use-index.xml, you will find the geoip flag :D
_________________
Don't like your neighbor? --> https://tips.fbi.gov/
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Tue Apr 26, 2005 9:07 pm    Post subject: Reply with quote

_GeG_ wrote:
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


i found one. look here:

https://forums.gentoo.org/viewtopic-t-239587-highlight-geoip+country.html
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
_GeG_
n00b
n00b


Joined: 28 Jun 2004
Posts: 36

PostPosted: Wed Apr 27, 2005 11:28 am    Post subject: Reply with quote

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
View user's profile Send private message
phlowww
n00b
n00b


Joined: 23 Feb 2005
Posts: 7
Location: Currently: Hangzhou, China

PostPosted: Wed Apr 27, 2005 12:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Tue Jan 10, 2006 12:07 am    Post subject: Reply with quote

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 :lol: )

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
View user's profile Send private message
ben-xo
n00b
n00b


Joined: 13 Dec 2004
Posts: 38

PostPosted: Tue May 02, 2006 6:31 pm    Post subject: Reply with quote

I posted how to get Awstats + GeoIP working in this thread:

https://forums.gentoo.org/viewtopic-t-279860.html

my posts's at the end (post number 61) as of today
_________________
Ben XO
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum