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.

Force API calls to a certain port

Discussion in 'cPanel Developers' started by somecallmemike, Apr 22, 2010.

  1. somecallmemike

    Joined:
    Apr 22, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Is there a way to change the port which the web API is called from? Currently the documentation says to use 2087, which works great. However, we would like to restrict access in iptables to who can call the API to the servers that need to use it, but if we put restrictions on port 2087, none of our resellers will have access to the system. Is there a work around?

    Thanks,

    Michael
     
  2. leefrom

    leefrom Active Member

    Joined:
    May 27, 2008
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Hmm, I think that's problematic. At best you could try a redirect, but I don't believe there's a way to actually have it listen on a different port.
     
  3. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Sounds like a feature request to me :) :

    Limit use of APIs/XML-API to a whitelist of IPs or accounts/resellers.

    I'm not sure if the authentication and source abstraction layers are in place that would necessitate such an implementation, but I would guess 'yes' they are or at least that the 'scaffolding' is there.

    -David
     
Loading...

Share This Page