Advertisement:

Author Topic: IPv6 support  (Read 7203 times)

Offline Arantor

  • SMF Legend
  • *
  • Posts: 51,055
    • wedgebook on Facebook
Re: IPv6 support
« Reply #20 on: June 27, 2012, 09:09:12 PM »
Quote
you stated that this mod changes the way ban members. so does it makes it better for admins?

Sort of.

You know the IP addresses like 127.0.0.1? That's called IPv4 and the available space in IPv4 is running out.

Now, a long time ago, some engineers figured out a replacement, IPv6. SMF itself has no support for IPv6, and users who use IPv6 will be identified as having IP 0.0.0.0 without this mod. With the mod their IP is correctly registered and you will actually be able to ban them.

Assuming you want to, of course, since banning is notoriously unreliable.

Offline SleePy

  • SMF Friend
  • SMF Master
  • *
  • Posts: 28,730
  • Gender: Male
  • Thats his happy face.
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: IPv6 support
« Reply #21 on: July 08, 2012, 02:18:21 AM »
BaghdadGhost,

I feel that you don't grasp a understanding of what IPv6 is and its purpose.  I will suggest reading up on what IPv6 is and if your server supports it.  More than likely a shared hosting provider at this point is not providing IPv6 capabilities yet, so a VPS/Dedi would be needed and either a tunnel or native support from the host is needed.  That is just to setup the server.  If you want to use IPv6 you will either need a tunnel or your ISP to support it.

My VPS hosting provider (Linode.com [Referral link]) supports this on their VPSes and I use a tunnel to get IPv6 to my home network (IPv6 tunnel is setup on my router enabling all my devices on my network to have IPv6 support).

]
Jeremy D — Ex-Site Manager
Support the SMF Support team!
Profiles:
GitHub
G+

Offline liuxyon

  • Newbie
  • *
  • Posts: 9
Re: IPv6 support
« Reply #22 on: October 05, 2012, 10:42:34 AM »
I am using ipv6 network for login SMF2.0.2.

SMF2.0.2 mysal database ip data type still not support ipv6 . So I have to Manually modify mysql data.

Offline AllMassive

  • Jr. Member
  • **
  • Posts: 121
  • Gender: Male
Re: IPv6 support
« Reply #23 on: January 24, 2013, 04:26:16 PM »
Thank you very much for this mod - everything works fine, but using /who still shows 0.0.0.0 as IP.

Offline AllMassive

  • Jr. Member
  • **
  • Posts: 121
  • Gender: Male
Re: IPv6 support
« Reply #24 on: January 28, 2013, 03:32:38 PM »
I've found these Errors in my Log:

Code: [Select]
Filter hinzufügen: Nur Fehlermeldungen dieser URL anzeigen
http://site.com/index.php?pretty;action=admin&area=packages;sa=install2;package=ipv6_v1.0.1.zip;pid=0
Filter hinzufügen: Nur Fehlermeldungen mit der gleichen Nachricht anzeigen
2: mysql_fetch_assoc(): 732 is not a valid MySQL result resource
Filter hinzufügen: Nur Fehler von dieser Datei zeigen
Datei: /web/Packages/temp/ipv6_v1.0.1/database_install.php
Zeile: 64

and

Code: [Select]
Filter hinzufügen: Nur Fehlermeldungen dieser URL anzeigen
http://site.com/index.php?pretty;action=admin&area=packages;sa=install2;package=ipv6_v1.0.1.zip;pid=0
Filter hinzufügen: Nur Fehlermeldungen mit der gleichen Nachricht anzeigen
2: Missing argument 3 for smf_db_change_column(), called in /web/Packages/temp/ipv6_v1.0.1/database_install.php on line 49 and defined
Filter hinzufügen: Nur Fehler von dieser Datei zeigen
Datei: /web/Sources/DbPackages-mysql.php
Zeile: 285


Offline EricTheRed

  • Semi-Newbie
  • *
  • Posts: 55
  • Gender: Male
    • All about IPv6!
Re: IPv6 support
« Reply #25 on: March 30, 2013, 05:42:30 PM »
First off, great job with this mod!!! I was very surprised to see that SMF was offering at least some v6 support. I was actually going to purchase XenForo for a project I was working on, but seeing that they're not proactively working towards support v6, I ended up going with SMF.

I noticed a few issues with it though:

Thank you very much for this mod - everything works fine, but using /who still shows 0.0.0.0 as IP.
I'm experiencing the same behavior.

-In the Administration/Moderation log, only the first 4 hexadecimets of the v6 address shows up. I'm not sure if this is a bug or by design under the assumption that a user's range of defined IPs are by a /64 prefix.

-If I track a user by IP Address, the full v6 address shows up (yay!). However, the regional server lookup does not work by associating the IP with a regional numbers group like it does with IPv4.

-Banning a user IP IPv6 address does not seem to work. If I specify an address, a prefix or a wildcard, the ban is created, but with no IP. What is the appropriate format for entering v6 address bans?
ex:
2600:3c00:0:0:f03c:91ff:fe93:9f25
2600:3c00::f03c:91ff:fe93:9f25
2600:3c00::/64
2600:3c00::f03c*

I ended up finding this. http://dev.simplemachines.org/mantis/view.php?id=4593 So I guess that means that native v6 support will appear in 2.1. Will these issues be addressed in 2.1 and when is the expected release for it?

Following this topic for updates...

Thanks!!!

Offline Arantor

  • SMF Legend
  • *
  • Posts: 51,055
    • wedgebook on Facebook
Re: IPv6 support
« Reply #26 on: March 30, 2013, 05:52:10 PM »
Quote
Will these issues be addressed in 2.1 and when is the expected release for it?

My understanding is that what's in 2.1 is not drastically different from this mod - given that it was the mod's author who added it to the original SMF repository back in 2011. You could always try SMF 2.1 from the Github repository.

As for expected release, when it's done. 2.1 has yet to even get to beta, so realistically the turn of the year at the earliest.

* Arantor is just reminded of the debugging he needs to do for IPv6 on his setup, though was not implemented with this mod

Offline EricTheRed

  • Semi-Newbie
  • *
  • Posts: 55
  • Gender: Male
    • All about IPv6!
Re: IPv6 support
« Reply #27 on: March 30, 2013, 05:55:35 PM »
Thanks for the speedy speed racer of feedback, wow.

I'm a v6 engineer by trade. If you guys need a little QA on that end, let me know and I'll be glad to help :)

Offline SleePy

  • SMF Friend
  • SMF Master
  • *
  • Posts: 28,730
  • Gender: Male
  • Thats his happy face.
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: IPv6 support
« Reply #28 on: April 07, 2013, 04:45:02 PM »
I'm experiencing the same behavior.
Sounds like a bug then

Quote
-In the Administration/Moderation log, only the first 4 hexadecimets of the v6 address shows up. I'm not sure if this is a bug or by design under the assumption that a user's range of defined IPs are by a /64 prefix.
Would be a bug

Quote
-If I track a user by IP Address, the full v6 address shows up (yay!). However, the regional server lookup does not work by associating the IP with a regional numbers group like it does with IPv4.
I didn't even want to touch this, whois for ipv6 would get complicated.  The basics of what I read at the time (a few years ago) allows for the full ip (no just host bit) to be anywhere else on the world. IE ::2 could be in the US and ::3 could be in Japan.  Doing host tracking at least gets you to the right people but thats a big chunk of numbers.  Its hard to say what to do at this point.  SMF tracks these ranges manually in its code, I suppose a whois be possibly to try and figure out who the ip is registered to.

Quote
-Banning a user IP IPv6 address does not seem to work. If I specify an address, a prefix or a wildcard, the ban is created, but with no IP. What is the appropriate format for entering v6 address bans?
ex:
2600:3c00:0:0:f03c:91ff:fe93:9f25
2600:3c00::f03c:91ff:fe93:9f25
2600:3c00::/64
2600:3c00::f03c*
I didn't think about coding CIDRs, I don't think SMF even supported them in bans, so thats why I most likely didn't think about it.  Although I thought I handled wildcards.  Basically a wildcard is just taking the * and replacing it with a range.  For IPv6 that would be 0000 to FFFF (In dec of course as it makes it faster and easier to compare in php).


I will try to see if I can fix this, not sure about my time/interest in updating it.
]
Jeremy D — Ex-Site Manager
Support the SMF Support team!
Profiles:
GitHub
G+

Offline Arantor

  • SMF Legend
  • *
  • Posts: 51,055
    • wedgebook on Facebook
Re: IPv6 support
« Reply #29 on: April 07, 2013, 04:47:31 PM »
Quote
I don't think SMF even supported them in bans,

It doesn't. SMF handles it as wildcarding by octet. There is precisely no support in the core for handling CIDRs anyway.

Quote
Its hard to say what to do at this point.

No, I haven't seen a valid solution for that either :/

Offline SleePy

  • SMF Friend
  • SMF Master
  • *
  • Posts: 28,730
  • Gender: Male
  • Thats his happy face.
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: IPv6 support
« Reply #30 on: April 07, 2013, 04:55:23 PM »
Thats what I thought, I haven't coded much SMF in a while but I still remember the little things.

There may be a solution to the region detection.  Just like I hope to see a solution for mysql_* to pdo bridge (supporting mysql_* native functions while using pdo).
]
Jeremy D — Ex-Site Manager
Support the SMF Support team!
Profiles:
GitHub
G+

Offline EricTheRed

  • Semi-Newbie
  • *
  • Posts: 55
  • Gender: Male
    • All about IPv6!
Re: IPv6 support
« Reply #31 on: April 07, 2013, 08:02:17 PM »
-Banning a user IP IPv6 address does not seem to work. If I specify an address, a prefix or a wildcard, the ban is created, but with no IP. What is the appropriate format for entering v6 address bans?
ex:
2600:3c00:0:0:f03c:91ff:fe93:9f25
2600:3c00::f03c:91ff:fe93:9f25
2600:3c00::/64
2600:3c00::f03c*
I didn't think about coding CIDRs, I don't think SMF even supported them in bans, so thats why I most likely didn't think about it.  Although I thought I handled wildcards.  Basically a wildcard is just taking the * and replacing it with a range.  For IPv6 that would be 0000 to FFFF (In dec of course as it makes it faster and easier to compare in php).


I will try to see if I can fix this, not sure about my time/interest in updating it.

Just so you're aware, most ISPs will assign a /64 prefix to a residential connection. This is due to IP address assignments getting addresses via Prefix Delegation/Auto Configuration instead of DHCPv6.  Banning a single IPv6 address does relatively no good because that leaves a few trillion other IP addresses at the household's disposal. Banning a prefix is the only way to block an entire household/static address assignment.