Results 1 to 21 of 21
  1. #1

    Question centos 6 vps running cPanel/WHM with ipv6

    I have a centos 6 vps that is run on solusvm and I have added 10 ipv6 addresses to the vps. I can ping6 1pv6.google.com just fine from within the vps but for some reason whm does not see the ipv6 addresses. What else do I need to do or check? Thank you.

  2. #2
    Join Date
    Mar 2003
    Location
    /root
    Posts
    23,990
    Moved > VPS Hosting.

    Specially 4 U
    Reseller Hosting: Boost Your Websites | Fully Managed KVM VPS: 3.20 - 5.00 Ghz, Pure Dedicated Power
    JoneSolutions.Com is on the net 24/7 providing stable and reliable web hosting solutions, server management and services since 2001
    Debian|Ubuntu|cPanel|DirectAdmin|Enhance|Webuzo|Acronis|Estela|BitNinja|Nginx

  3. #3
    Join Date
    Jan 2003
    Location
    SLC
    Posts
    2,278
    Firewall settings?

  4. #4
    Join Date
    Jun 2011
    Location
    USA/UK/SG
    Posts
    3,636
    Are you looking under Home » IP Functions » IPv6 Ranges?

    On a system with no IPv6, you'll see: There are currently no ranges.

    Is that what you're seeing?
    ~]# Ethernet Servers Ltd - Est. 2014! - sales @ ethernetservers.com
    ~]# Try out our WordPress speed tests for yourself!
    ~]# NVMe Web Hosting | Unmanaged VPS | Fully Managed VPS | Dedicated Servers | Domain Names
    ~]# Don't settle for any less than the very best - come & join our family today!

  5. #5
    Join Date
    Jan 2003
    Location
    SLC
    Posts
    2,278
    ES - George made a good point
    even if you added them cpanel wont recognize them until you add the ranges to a user

  6. #6
    Quote Originally Posted by net View Post
    Moved > VPS Hosting.
    This is actually very much a cpanel/whm problem and not a vps problem so I'm not sure why it was moved.

  7. #7
    Quote Originally Posted by ES - George View Post
    Are you looking under Home » IP Functions » IPv6 Ranges?

    On a system with no IPv6, you'll see: There are currently no ranges.

    Is that what you're seeing?
    Yes, first I went to enable 1pv6 getting really excited and then it said you need to setup and ipv6 range so I tried to do that but then I just get:

    Code:
    Please contact your server administrator to add, edit, or remove IPs.
    and the ipv6s are definitely added to the server and I can ping6 with no packet loss.
    Last edited by agsllc; 08-29-2014 at 04:14 PM.

  8. #8
    cPanel only supports IPv6 ranges, not individual IPv6. If your host has assigned your individual IPs, you need to add each one of those IPv6 with a /128 prefix as a "range".

    After that you'll be able to assign them to cPanel accounts.
    Fusioned - http://www.fusioned.net
    Enterprise & Semi-Dedicated Hosting | CloudLinux, cPanel, LiteSpeed, Acronis | PHP 5.6, 7.2, 7.3, 7.4 & 8.0
    Fully Managed SSD KVM VPS & Dedicated Servers | CloudFlare & Acronis Partner | RIPE LIR

  9. #9
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    60
    This is a known issue with cpanel on openvz. It will not detect the ipv6 automatically and because it is openvz it assumes that you cannot manually add ip addresses. You can manually add the ipv6 ranges through the config.

    First you need to create the allocation data file

    vi /etc/cpanel/ipv6/range_allocation_data
    Then you need to fill in the allocations manually. This is an example from a test system, you will need to substitute your own range info, and yes /128s can be used.

    Dallas:
    enabled: 1
    first: 2607:f348:101e:0009:0000:0000:0000:XXXX
    last: 2607:f348:101e:0009:0000:0000:0000:XXXX
    mostrecent: 2607:f348:101e:0009:0000:0000:0000:XXXX
    note: ~
    owner: root
    The "Dallas" line is the range name and can be whatever you want e.g. ipv6range1: or IPv6: The remainder should be self explanitory. The most recent line is the most recently allocated ipv6 and from what I can tell can be left blank to start with the first ip. Additional ranges should be added in the same way on new lines in the file.

    Finally just rerun the ipv6 config script

    /etc/init.d/cpipv6 restart
    This has worked on several servers we setup for clients. Hopefully cpanel will address this issue in a future update.
    Last edited by PeakServers-Austin; 08-30-2014 at 08:51 AM.
    Austin - PeakServers Support
    PeakServers.com | Web Hosting, VPS, and Dedicated Servers with Fully Managed Support Options

  10. #10
    Quote Originally Posted by PeakServers-Austin View Post
    ...
    But what if IPs are not sequential? For example SolusVM hosts issue random IPv6s.
    In this case you need to add each IP as a range (with /128 prefix) as I mentioned earlier.
    Fusioned - http://www.fusioned.net
    Enterprise & Semi-Dedicated Hosting | CloudLinux, cPanel, LiteSpeed, Acronis | PHP 5.6, 7.2, 7.3, 7.4 & 8.0
    Fully Managed SSD KVM VPS & Dedicated Servers | CloudFlare & Acronis Partner | RIPE LIR

  11. #11
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    60
    Quote Originally Posted by George_Fusioned View Post
    But what if IPs are not sequential? For example SolusVM hosts issue random IPv6s.
    In this case you need to add each IP as a range (with /128 prefix) as I mentioned earlier.
    Yes, you have to add each one individually but with openvz you currently have to do it manually because the interface in whm will just tell you to contact an administrator. In the case of the instructions I gave the first and last will be the same for a /128 and you will have to copy the config info for each ip address.
    Austin - PeakServers Support
    PeakServers.com | Web Hosting, VPS, and Dedicated Servers with Fully Managed Support Options

  12. #12
    Awesome everyone! Thank you all so much for the info. I have not got around to testing everything but when I do I will post back with the results.

  13. #13
    Quote Originally Posted by PeakServers-Austin View Post
    This is a known issue with cpanel on openvz. It will not detect the ipv6 automatically and because it is openvz it assumes that you cannot manually add ip addresses. You can manually add the ipv6 ranges through the config.

    First you need to create the allocation data file



    Then you need to fill in the allocations manually. This is an example from a test system, you will need to substitute your own range info, and yes /128s can be used.



    The "Dallas" line is the range name and can be whatever you want e.g. ipv6range1: or IPv6: The remainder should be self explanitory. The most recent line is the most recently allocated ipv6 and from what I can tell can be left blank to start with the first ip. Additional ranges should be added in the same way on new lines in the file.

    Finally just rerun the ipv6 config script



    This has worked on several servers we setup for clients. Hopefully cpanel will address this issue in a future update.
    What would I use for 128s? I obviously wouldn't use first: and last: and I tried it without anything and it didn't take. Also, is a most recent IPv6 necessary?

  14. #14
    Join Date
    Jan 2003
    Location
    SLC
    Posts
    2,278
    you would use

    ipv6address1/128
    ipv6address2/128
    ipv6address3/128
    etc
    etc
    etc

  15. #15
    I tried:

    Dallas:
    enabled: 1
    ipv6address1/128
    ipv6address2/128
    ipv6address3/128
    note: ~
    owner: root

    and then /etc/init.d/cpipv6 restart and it didn't work. Anything else I should be checking?

  16. #16
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    60
    You still need to use first and last but they will both be the same. No /128 at the end just the full v6 address. You then need to copy the entire config and change the ip for each ip. It should look something like the following

    ipv6range1:
    enabled: 1
    first: 2607:f348:101e:0009:0000:0000:0000:0001
    last: 2607:f348:101e:0009:0000:0000:0000:0001
    mostrecent:
    note: ~
    owner: root

    ipv6range2:
    enabled: 1
    first: 2607:f348:101e:0009:0000:0000:0000:0002
    last: 2607:f348:101e:0009:0000:0000:0000:0002
    mostrecent:
    note: ~
    owner: root

    ipv6range3:
    enabled: 1
    first: 2607:f348:101e:0009:0000:0000:0000:0003
    last: 2607:f348:101e:0009:0000:0000:0000:0003
    mostrecent:
    note: ~
    owner: root
    Last edited by PeakServers-Austin; 08-31-2014 at 02:39 AM.
    Austin - PeakServers Support
    PeakServers.com | Web Hosting, VPS, and Dedicated Servers with Fully Managed Support Options

  17. #17
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    60
    I would also suggest that you can contact cpanel support. They are always very helpful.
    Austin - PeakServers Support
    PeakServers.com | Web Hosting, VPS, and Dedicated Servers with Fully Managed Support Options

  18. #18
    This is exactly what I have with no luck (minus the Xs in the IPs this is just to conceal):

    Code:
    ipv6range1:
    enabled: 1
    first: 2XX7:XXXX:00XX:5ec0:0000:0000:253X:XX6f
    last: 2XX7:XXXX:00XX:5ec0:0000:0000:253X:XX6f
    mostrecent: 
    note: ~
    owner: root
    
    ipv6range2:
    enabled: 1
    first: 2XX7:XXXX:00XX:5ec0:0000:0000:04bX:XXc0
    last: 2XX7:XXXX:00XX:5ec0:0000:0000:04bX:XXc0
    mostrecent: 
    note: ~
    owner: root
    I then run: /etc/init.d/cpipv6 restart and nothing. I go to ranges and get: Please contact your server administrator to add, edit, or remove IPs. Do the IPv6 addresses have to be in the long form like that?

    The addresses are listed as IPv6 SECONDARIES in my vent0 config file, is that right? I manually added them to the server through solusvm but I checked manually as well.

  19. #19
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    60
    It is always going to show "please contact the system administrator" That is the issue. However once the file has been created you should be able to go to the "Enable IPv6" link and add the addresses to your domains.
    Austin - PeakServers Support
    PeakServers.com | Web Hosting, VPS, and Dedicated Servers with Fully Managed Support Options

  20. #20
    I tried that as well it tells me to go add a range first with no IPs listed. I noticed that cpanel automatically makes backups of the file range_allocation_data is that the exact correct name for the file? I saw something like this along with the file_range_allocation file in the same folder: range_allocation_data-1409674042-9890662.cpbackup

  21. #21
    I opened a ticket with cpanel support to see if we can get this sorted out, thanks again for your help everyone.

Similar Threads

  1. Replies: 3
    Last Post: 07-30-2011, 01:45 PM
  2. Replies: 15
    Last Post: 09-01-2010, 01:37 PM
  3. Server hardening for CentOS cPanel WHM VPS
    By bubba1356 in forum Systems Management Requests
    Replies: 14
    Last Post: 07-12-2010, 12:55 PM
  4. $25.95/Month. - 256MB Virtuozzo VPS. CentOS. cPanel/WHM
    By GGS - Kaumil in forum VPS Hosting Offers
    Replies: 4
    Last Post: 08-25-2007, 05:11 PM
  5. Running PHP on WHM + Cpanel
    By X-TechMedia in forum Hosting Software and Control Panels
    Replies: 0
    Last Post: 11-25-2002, 05:35 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •