The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: Apache 2.3.10-alpha, mod_security 2.5.13 & mod_geoip +IPv6 Released  (Read 4698 times)

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 848

Get them on our download page.
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 583
Re: Apache 2.3.10-alpha, mod_security 2.5.13 & mod_geoip +IPv6 Released
« Reply #1 on: December 22, 2010, 02:05:13 PM »

nice work!
Logged

Sob

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 72
Re: Apache 2.3.10-alpha, mod_security 2.5.13 & mod_geoip +IPv6 Released
« Reply #2 on: December 22, 2010, 08:37:29 PM »

It seems there's something wrong with your mod_geoip. It kills Apache child process ("Parent: child process exited with status 255 -- Restarting.") in x64 version, while x86 version just ignores IPv6 addresses and looks only in GeoIP.dat (checked by Process Monitor). Version compiled by myself works correctly (only x64 tested, I had some problem linking to x86 AH release and was lazy to compile the whole thing).

Any idea what might be different?

How to test it even without IPv6:

- set GeoIPScanProxyHeaders On
- put simple test script on server:
Code: [Select]
<?php
  
foreach($_SERVER as $key=>$val) {
    if(
substr($key03)=='GEO') echo $key.' = '.$val.'<br>';
  }
?>
- run "telnet <your server ip> <port>" and type:
Code: [Select]
GET /path/to/testscript.php HTTP/1.0
Host: www.yourserver.tld
X-Forwarded-For: 2a00:1450:8007::67

You can fake any IP in X-Forwarded-For. The above one belongs to Google and GeoIP should report Ireland as country.
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 848
Re: Apache 2.3.10-alpha, mod_security 2.5.13 & mod_geoip +IPv6 Released
« Reply #3 on: December 22, 2010, 09:23:07 PM »

Yep, I missed a patch darnit. Will do over tonight.
Till then I've removed announcement on front page & binaries from download page.
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 848
Re: Apache 2.3.10-alpha, mod_security 2.5.13 & mod_geoip +IPv6 Released
« Reply #4 on: December 22, 2010, 10:08:49 PM »

I had some problem linking to x86 AH release

Care to elaborate?
Missing symbols?
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 848
Re: Apache 2.3.10-alpha, mod_security 2.5.13 & mod_geoip +IPv6 Released
« Reply #5 on: December 23, 2010, 02:48:44 AM »

I get bad headers when I try to test this via telnet ... so, here's an x86 one. Please try it, if it works I'll move the same source to the x64 box & build x64.

http://www.apachehaus.net/modules/mod_geoip-ipv6.zip
Logged

Sob

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 72
Re: Apache 2.3.10-alpha, mod_security 2.5.13 & mod_geoip +IPv6 Released
« Reply #6 on: December 23, 2010, 03:40:17 PM »

Quote
mod_geoip.obj: error LNK2019: unresolved external symbol _ap_add_common_vars referenced in function _geoip_header_parser

But it's not exactly true, the symbol exists in libhttpd.lib, except it's named "[email protected]". Seems like some different naming convention or something, don't know where it comes from.

Tried your new x86 module and at the first sight it works fine.
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 848
Re: Apache 2.3.10-alpha, mod_security 2.5.13 & mod_geoip +IPv6 Released
« Reply #7 on: December 23, 2010, 08:35:13 PM »

Thanks for testing it. I'll do the x64 now, repackage and release.

Ah yes, ap_add_common_vars() requires util_script.h to be included in mod_geoip.c and on line ~301 removing the unused

GeoIP *gip;

makes it compile without warnings.

Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 848
Re: Apache 2.3.10-alpha, mod_security 2.5.13 & mod_geoip +IPv6 Released
« Reply #8 on: December 23, 2010, 10:26:27 PM »

Done and -r2 zips are up. Thanks!
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13