Lets get WHMCS to add a feature to allow both IPv6 and IPv4 addresses. Make it an option within the module if you want to allow that or not. When an IPv4 first connects back, it registers it, same thing happens with the v6 address. Depending on my cell phone service, I sometimes connect to WHMCS in ipv6 which says I'm unlicensed. I have to reissue it and then can login. I did find out if you ask, you can get it manually put in, but that could save me a headache and them time!
Thanks!
Merged Ideas
Allow WHMCS license to contain both an IPv4 and an IPv6 address
When our license only had our IPv4 address allocated, admins could only connect to the admin control panel using IPv4. If they tried to connect using IPv6 (which happens automatically if possible by the user on our website) then they would be presented with an invalid license error. We reissued the license and when it had the IPv6 address allocated then the same problem happened but with anybody connecting using IPv4. Now that both the IPv6 and IPv4 addresses are allocated to our license this issue has gone away. To fix this the only way is to contact licensing to manually add both addresses to your license. As IPv6 becomes more widespread this issue will become a major problem down the road so the best thing to do is to add this feature before that happens.
IPv6 For Licensing
Hi!As IPv4's are to be forgotten about, as less and less are available, I find it very important that WHMCS put's IPv6 upfront.As of right now, we have to contact support to add our IPv6 to our licence. If that could be automatic, that would be great.Also, it would be nice if there was an alert in system health if ipv6 is not enabled.The global transition to V6 starts by IT providers, and WHMCS is the platform for a huge amount of IT and Cloud providers.Cheers,
27 Comments
Login to post a comment.
For hosts that use a dual-stack IPv4/IPv6 environment and are reselling WHMCS, having support for dual IPv4/IPv6 IP address on a license is a necessity.
Having to submit a request to WHMCS licensing to have them add the IPv6 IP address every time we issue an WHMCS license to a client shouldn't be a thing.
All licenses should support 1 IPv4 IP address and 1 IPv6 IP address.
In the same manner the first IP address WHMCS is accessed on being assigned to the license, it should be programmed to know the difference between IPv4 and IPv6 and assign them each to the license when/if the WHMCS instance is accessed from either.
It would easily cut down on the amount of support tickets to the WHMCS licensing department and boost productivity all around. Seems like a no brainer.
Each time I move my WHMCS to a new VM that gets a new IPv4 and IPv6, I end up having to open a support ticket with WHMCS so they add my IPv6 address, otherwise I might find myself randomly not able to use WHMCS due to licensing error.
Same thing goes for my customers that have licenses with me. It's an annoying problem and a waste of time to handle this manually.
Please tell us more about the experience you desire to see here so we can better understand the request for change.
Thank you.
[co]
returned or be the originator of the request. And once that one IP has
been stored as the valid IP for the license, the license will no longer
be in a reissued state and therefore future validation calls would
typically not alter the list of valid IP addresses for a given license
key.
Now for the validation for a Addon, the Addon try to connect via ipv6 url the license Addon api. If it is successful connected, the Addon got the typical license details. After that request, the licensed Addon made a second request to the license Addon api via the URL that only available over ipv4. The ipv4 request made a update in the license Addon product details and note the ipv4 IP. Now the whmcs has the ipv4 and ipv6 IP addresses. If the customer whmcs not available via ipv4 or ipv6 the only way that is accessible will be used and only stored in the license Addon product details.
Now, no more problems with ipv6 and ipv4...
For the customer it is annoying and for us this means unnecessary support effort and annoyance if the module does not run at the customer. The detection of IPv4 and IPv6 could be easily checked with FILTER_FLAG_IPV4 and FILTER_FLAG_IPV6.
The Licensing Addon is a great tool and you should take in consideration to add support for dual stack
WHMCS is written in PHP so doesn't do IP address detection itself, it comes form PHP's SERVER_ADDR variables. So provided your PHP configuration is IPv6 aware, then WHMCS' licensing will be too.
The issue is when you run WHMCS on a dual stack where license calls are coming randomly from IPv4 and IPv6 addresses.
Do a lookup to https://ipv6.wtfismyip.com/text and https://ipv4.wtfismyip.com/text, and send those in the registration request body. Then, save both.
netstat -tulpn 2>/dev/null | grep :80 | awk '{print $4}' | sed s/:80//g
If the server is not listening on Port 80, but only on 443, then do both and take the superset as answer.
And just to make sure there is no abuse, make sure that both ipv4 and ipv6 addresses resolve to the same hostname (reverse lookup) before adding.
E.g. If the code path checks the inbound connection's source IP address against the stored information in the database. If it matches respond with a positive, OR if not, reply negative. If it's a new license, accept source IP with positive response then store source IP in database.
Would become, check inbound source IP to see if IPv4 or IPv6. (The rest of the steps is the same, replace IP address with appropriate IPv4 or IPv6. Each IP type would be stored in it's on record/field). Check to see if source IP address is valid, if so respond positive, if not respond negative, if no existing IP address to match then respond positive and store it.