Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
IPV6 Support in VB3 Details »
IPV6 Support in VB3
Mod Version: 1.0.0, by wootalyzer (Member) wootalyzer is offline
Developer Last Online: Apr 2012 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (6 votes - 5.00 average) Installs: 30
Released: 29 Jul 2009 Last Update: 29 Jul 2009 Downloads: 258
Not Supported Code Changes Additional Files Re-usable Code  

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And insert JUST ABOVE IT


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

3. Every time you upgrade vB, repeat step 2.

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 Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 29 Jul 2009, 10:30
flapjack flapjack is offline
 
Join Date: Jan 2006
Real name: Andrew
Nifty little code, actually.

I don't know anyone who's using ipv6 yet, so it's no use to me, but I thought I'd give you kudos for working on this.
Reply With Quote
  #3  
Old 09 Nov 2009, 02:56
accludetuner accludetuner is offline
 
Join Date: Jun 2009
IPv6 is right around the corner. Installing now. Thanks
Reply With Quote
  #4  
Old 11 Sep 2010, 17:07
heugabel heugabel is offline
 
Join Date: May 2006
thank you
Reply With Quote
  #5  
Old 15 Oct 2010, 12:25
digibyte digibyte is offline
 
Join Date: Mar 2007
Vote for IPv6 support in vBulletin: http://tracker.vbulletin.com/browse/VBIV-9397
Reply With Quote
  #6  
Old 05 Feb 2011, 11:40
PossumX's Avatar
PossumX PossumX is offline
 
Join Date: Oct 2006
Originally Posted by digibyte View Post
Vote for IPv6 support in vBulletin: http://tracker.vbulletin.com/browse/VBIV-9397
Well, now they may do something about this, but, then again, who knows. Until supported natively by vB4, I have installed this simple work around. Thanks!!

Oh yeah, click on the vB tracker link and VOTE, as the fact that this has yet to even be scheduled (or at least planned to be) seems a bit inane for the "...largest international developer and distributor of proprietary community bulletin board software." (quoted from IB's site: http://www.internetbrands.com/our-brands/licensing/ )

Last edited by PossumX; 05 Feb 2011 at 12:06.
Reply With Quote
  #7  
Old 05 Feb 2011, 12:41
Monarch.V Monarch.V is offline
 
Join Date: Nov 2008
Thanks
Reply With Quote
  #8  
Old 06 Feb 2011, 16:35
traen traen is offline
 
Join Date: Oct 2009
Installed on 4.1.1 thanks.
Reply With Quote
  #9  
Old 24 May 2012, 20:47
empire10 empire10 is offline
 
Join Date: Oct 2003
Unfortunately this does not work anymore in 4.2. Is there any other workaround to use?
Reply With Quote
  #10  
Old 31 May 2012, 14:40
GHDpro's Avatar
GHDpro GHDpro is offline
 
Join Date: Mar 2002
Originally Posted by empire10 View Post
Unfortunately this does not work anymore in 4.2. Is there any other workaround to use?
I've just hacked together the following, which seems to be working (in vB 4.2):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Put above code somewhere in /includes/config.php (the normal vB config file), for example just before the last line (with ?>).

Warning: you might want to make a backup of the config file as messing up editing it will probably cause your forum to stop loading (just blank pages).

I'm also not 100% sure if putting the hack in config.php is quite the right location, as ideally it should of course be run before any vB code that uses IP addresses. But (in v4.2) at least the config file is included (executed) right before the IPADDRESS constant is defined (from the $this->ipaddress variable), so it should work alright.

My main motivation for trying to put it in the config file is that you can now easily upgrade your forum without the need to re-apply the hacks to init.php (which the plugin does require every time).

Note that in my solution I've changed the way IPv6 addresses are encoded; so encoded IPv6 will not look the same as the plugin.
Reply With Quote
  #11  
Old 01 Jun 2012, 00:55
matrex722's Avatar
matrex722 matrex722 is offline
 
Join Date: Jan 2007
installed 3.8.7
thanks
Reply With Quote
  #12  
Old 30 May 2013, 22:26
Chris8's Avatar
Chris8 Chris8 is offline
 
Join Date: Nov 2009
So, what are the pros of doing this?
__________________
Reply With Quote
  #13  
Old 31 May 2013, 06:06
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
For the record, vBulletin operates just fine with a server running ipv6.
__________________
Looking for ImpEx?
Reply With Quote
  #14  
Old 14 Nov 2013, 09:23
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Real name: Rick-owner, Kym-admin
To fix this mod for vB 4.2 change the code as follows: (added %256 on 3 lines)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
www.AusPhotography.net.au a.k.a. AP is a photography forum where members share their photography, photo editing skills and techniques. We run regular photographic competitions; Rick (site owner) and Kym (site tech) using this account
*** Home of the AP fully comprehensive vb4 photographic competition management solution ***
Reply With Quote
  #15  
Old 16 Nov 2013, 05:02
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Real name: Rick-owner, Kym-admin
WHM/cPanel 11.40.0.19 now supports IPv6

Here are some useful links...

Release notes
http://docs.cpanel.net/twiki/bin/vie...easeNotes#IPv6

Blog... (video how to)
http://blog.cpanel.net/ipv6-update/

Instructions...
http://docs.cpanel.net/twiki/bin/vie...ocs/EnableIpv6

I've setup to use IPv6 using WHM/cPanel 11.40.0.19 on a XEN Virtual server
http://www.ausphotography.net.au
IP 4/6 displays in page footer
__________________
www.AusPhotography.net.au a.k.a. AP is a photography forum where members share their photography, photo editing skills and techniques. We run regular photographic competitions; Rick (site owner) and Kym (site tech) using this account
*** Home of the AP fully comprehensive vb4 photographic competition management solution ***
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 13:23.

Layout Options | Width: Wide Color: