Apr 22, 2010
5
0
51
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
 

leefrom

Active Member
May 27, 2008
30
0
56
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.
 

cPanelDavidN

Well-Known Member
Staff member
Dec 17, 2009
571
3
68
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