The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

addition of external IP in "IP-Manager plugin"

Discussion in 'cPanel Developers' started by proftpd, Oct 23, 2014.

  1. proftpd

    proftpd Registered

    Joined:
    Oct 23, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    addition of external IP in "IP-Manager plugin"

    If you go to Plugins -- IP Manager

    IP Manager is an existing plugin

    What's different in this server, unlike the standard version, is that the IPs available to assign to each domain are IPs not linked to the server.

    So for example.

    Inside the plugin, it is possible to assign the IP 101.170.169.199 to a domain.

    But that IP is in a totally different datacenter and network than WHM's IP, which is 192.99.41.231.

    By default, cPanel/WHM DO NOT allow an external IP like 101.170.169.199 to be added to the server.

    What we want to have is this, to have a cPanel/WHM version that allows us to add external IPs.
    Make sense?

    so this is something that has more to do with the backend code than with a user interface.
    Because the interface here is provided by the IP Manager IP.
    Which is already available.
    I don't know if this requires changing the code of WHM itself.
    Or just changing the code of the IP Manager Plugin.


    you can prompt please as it can be done?
    it is possible links or examples in documentation on development?


    thank you very much

    - - - Updated - - -

    I was mistaken a forum, you can transfer to forum "cPanel Developers"?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,481
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    The cPanel Developer Forum is not for this sort of request. The cPanel Feature Requests system is though, and you can find that, here:
    http://forums.cpanel.net/cpfeatures.php

    Please feel free to search the Feature Requests site for what you seek, and if you can't find any existing already, post one of your own there. :)
     
  3. proftpd

    proftpd Registered

    Joined:
    Oct 23, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    allowing us to add IPs from other servers to WHM and be able to assign them to clients.

    This would be like a faux IP module for WHM. Module should display a "fake" IP in the WHM interface for domains/accounts without changing the actual IP of the site on the server and preserving the ability to change a domain's real IP. IPs should be able to be added or removed using a GUI interface within WHM.

    So for example, even if the "real" IP of the WHM server in which a particular domain is hosted is 47.52.xxx.xxx, we want the ability to add a bunch of external IPs not related to the WHM server at all, and assign them to domains in WHM. So the client will see that he's hosted in for example 192.156.xx.xx even though the real IP of the WHM server is 47.52.xxx.xxx

    The plugin should also have the ability to to bulk add faux IPs in list and CSV format.

    When a new "reseller" account was created in WHM with a particular package (after it is bought via WHMCS), we'd like the account to be automatically provisioned with fixed numbers of faux IPs, which the reseller customers would be able to assign to particular cPanel accounts they create within their WHM interface.

    So for example, even if the "real" IP of the WHM server in which a particular domain is hosted is 47.52.xxx.xxx, we want the ability to add a bunch of external IPs not related to the WHM server at all, and assign them to domains in WHM. So the client will see that he's hosted in for example 192.156.xx.xx even though the real IP of the WHM server is 47.52.xxx.xxx

    The plugin should also have the ability to to bulk add faux IPs in list and CSV format.

    When a new "reseller" account was created in WHM with a particular package (after it is bought via WHMCS), we'd like the account to be automatically provisioned with fixed numbers of faux IPs, which the reseller customers would be able to assign to particular cPanel accounts they create within their WHM interface.



    If you go to Plugins -- IP Manager
    IP Manager is an existing plugin
    What's different in this server, unlike the standard version, is that the IPs available to assign to each domain are IPs not linked to the server
    So for example
    Inside the plugin, it is possible to assign the IP 101.170.xxx.xxx to a domain
    But that IP is in a totally different datacenter and network than WHM's IP, which is 192.99.xx.xxx
    By default, cPanel/WHM DO NOT allow an external IP like 101.170.xxx.xxx to be added to the server
    What we want to have is this, to have a cPanel/WHM version that allows us to add external IPs
    Make sense?

    Ok, so this is something that has more to do with the backend code than with a user interface
    Because the interface here is provided by the IP Manager IP
    Which is already available
    I don't know if this requires changing the code of WHM itself
    Or just changing the code of the IP Manager Plugin
    But this would be the first thing we need to do
    I can create a list of tasks and give it to you, but task #1 is gonna be this one
    We need the technical ability so that WHM allows us to add external IPs to the server without going crazy
    I think this is the perfect starting point
    And the second thing
    Is that we want to add and use external IPs not linked to the server, as I explained already
    I think we're on the same page on the idea of allowing WHM to use external IPs
    So to your question of where to add the IP
    If you can use WHM's existing functionality for adding IPs, that's fine for us
    You don't have to create a new page if it's not technically necessary
    But we want to be able to upload IPs in bulk





    Let's start from the beginning
    Remember this? Web Host Manager: /http://192.99.xx.xxx:2086/
    Username: fugitive
    Password:
    What that company is doing is SEO Hosting
    We sell SEO hosting as well
    The way it works is that our clients buy a hosting package. We give them a WHM reseller account to host their sites
    So let's say that our WHM server
    So the server in which they're going to have their reseller account
    Is 192.99.xx.xxx
    But SEO Hosting is about assigning different IPs from different servers to the sites
    So Google cannot track down that all the sites actually belong to the same person
    So our client has for example
    domain1.com
    domain2.com
    domain3.com
    domain4.com
    And he wants to host them in a series of small servers that we have in other locations
    So we've got a VPS in Amsterdam, so that's one IP
    Another VPS in London, that's another IP
    Etc
    All of those small VPS are setup with a script that replicates the site that is actually hosted in 192.99.xx.xxx
    The script is configured to hit the core WHM server (in this example 192.99.xx.xxx) to fetch files
    So for example domain1.com is pointing via DNS to the VPS in Amsterdam
    But when a regular user hits domain1.com in the browser
    The script will actually fetch files from the core WHM server, and display them
    Nobody knows this except for our client and us, the hosting company
    For the public, including Google, the domain is hosted in that small VPS in Amsterdam
    Not in the core WHM server in which WordPress is actually installed
    Making sense so far?

    Look, go into /http://192.99.xx.xxx:2086/ - Account Information >> List Accounts
    Every single site there is "hosted" in different IPs, but in reality the WordPress files are all in 192.99.xx.xxx
    They just give random IPs to the sites that are not related to the server at all
    That's what we need


    Yeah the domain ip. The ip assigned to each cpanel account in there
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,481
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    cPanel has no plugin called IP Manager.

    Feature Requests should be posted to the Feature Requests site.
     
  5. proftpd

    proftpd Registered

    Joined:
    Oct 23, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    it is Home> IP Functions> "Add a New IP Address"?
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,481
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    That's not what you stated though.
    Please feel free to post a new Feature Request if you wish.

    There is no need to post the same thread to multiple forums here.
     
  7. proftpd

    proftpd Registered

    Joined:
    Oct 23, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    you probably not correctly understood me

    I want to develop it

    only I need the help as to make it
     
  8. odmink0

    odmink0 Member

    Joined:
    Feb 29, 2012
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Russia
    cPanel Access Level:
    Reseller Owner
    proftpd, what you actually need is a separate database which maps domain names you have in cPanel to IP addresses of your VPSes. Technically it doesn't relate to cPanel except that you'd probably want to edit a template where you domain information is shown to query and show you the IP address of the VPS as well as the real IP of the domain.
    I don't think this should go into "feature requests" as cPanel people will never implement it - I think it's too specific for your purpose.
     
Loading...

Share This Page