IPV6 Support in VB3
UPDATE - This mod works with vBulletin 3 AND vBulletin 4!
About Ok, so let's get started. Got a web server that resolves IP addresses as ipv6? Don't want to remove that ipv6 functionality just so vBulletin will work well? Well, this mod will take care of all of that for you. How it works vBulletin 3 and 4 are (from a coding standpoint) completely reliant upon ipv4. Classes are coded all over the place which expect addresses to be in ipv4 format. This mod runs before ANYTHING in vB gets a chance to load and does the following: - If the address is in ipv4-over-ipv6 format, it simply dumps the ipv4 portion of the address into vbulletin. Done. Simple as pie. - If the address is in standard ipv6 format (it's a real ipv6 address), it generates a "psudo-ipv4" address to represent the ipv6 address. This "psudo-ipv4" address is in a reserved ipv4 address space, so it shouldn't interfere with any of the real ipv4 addresses, and is generated from a hash of the ipv6 address (so each of the ipv6 addresses should hopefully resolve to their own, unique ipv4 address). And... that's about it! vB continues on it's merry way treating everyone's ip as a standard ipv4 address. WATCH OUT! See someone on your forum with an IP address starting in 204. after installing this mod? That means they are actually accessing your site via an ipv6 address, and the address LISTED doesn't really mean anything. Installation Not scared about what we just covered? Good, let's get started. 1. Upload ipv6_fix.php to your forum/includes directory. 2. Edit your includes/init.php file (VERY carefully) Find Code:
require_once(CWD . '/includes/class_core.php'); Code:
require_once(CWD . '/includes/ipv6_fix.php'); And you're done! This mod should have no effect if your web server is handling connections as ipv4 addresses. This mod is no replacement for the REAL ipv6 support coming in vB4, so upgrade as soon as it is released! Looks like ipv6 didn't make it into vB4 either -- On lives the mod! Have fun Download
ipv6_fix.php (974 Bytes, 308 downloads) |