Forum

Request to WMSpanel API issue

Oleg 2016-12-10 06:11:00 UTC in WMSPanel functionality

I'm trying to make requests to wmspanel api for my new server, but something is going wrong.

- I added the ip address of my server into the whitelist (Control->API setup->Pull API->Whitelist)
- I am trying to execute wget 'https://api.wmspanel.com/v1/routes/?client_id=aaa&api_key=bbb' from console my server
- I get the error "ERROR 403: Forbidden."
- I added the ip address of my PC in the whitelist. Tried the browser to load the url https://api.wmspanel.com/v1/routes/?client_id=aaa&api_key=bbb. And it works.

Is there a possibility of additional information about the cause forbidden error for my server?
The settings are so simple that I can't understand what my error is.

Thanks in advance for any advice.

Oleg 2016-12-10 06:30:15 UTC 

I want to add more information about the error:

Resolving api.wmspanel.com (api.wmspanel.com)... 2400:cb00:2048:1::6814:520c, 2400:cb00:2048:1::6814:510c, 104.20.81.12, ...
Connecting to api.wmspanel.com (api.wmspanel.com)|2400:cb00:2048:1::6814:520c|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2016-12-10 01:26:51 ERROR 403: Forbidden.

Max 2016-12-10 06:34:38 UTC 

Hello Oleg,

Please use IPv4 when making API calls (e.g. there is -4 option for curl).

Oleg 2016-12-10 06:35:42 UTC 

I try to do it from server that doesn't support ipv6. I remove ip this server from whitelist. It looks like this:

Resolving api.wmspanel.com (api.wmspanel.com)... 104.20.81.12, 104.20.82.12, 2400:cb00:2048:1::6814:510c, ...
Connecting to api.wmspanel.com (api.wmspanel.com)|104.20.81.12|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2016-12-10 06:32:07 ERROR 403: Forbidden.

It seems the problem is in ipv6...

Oleg 2016-12-10 06:36:32 UTC 

Thanks

Albert 2018-02-26 08:47:20 UTC 

Hello,

I`m facing the following issue:

I have some IP address that have to be white listed in ( Control->API setup->Pull API->Whitelist ), but the wmspanel has a limit for MAX 5 IP addresses but there are more IP addresses that have to be whitelisted, any suggestions any advises?

Max 2018-02-26 09:37:13 UTC 

Hello Albert,

We'd suggest using API proxy (https://github.com/WMSPanel/wmspanel-api-samples/blob/master/api_proxy.php) which will be used for calling API and validate allowed IP addresses.

Thank you.

PG-Shalperin 2023-09-02 20:15:16 UTC 

I see you are suggesting to use the api proxy and I have in fact set it up. But I need to get through this holiday weekend. Our API service that calls WMSPanel is an Azure API and it can come from one of 30 IP addresses. Please tell me that there is a way to at least temporarily turn off the IP whitelist security feature at least temporarily

PG-Shalperin 2023-09-02 20:15:22 UTC 

I see you are suggesting to use the api proxy and I have in fact set it up. But I need to get through this holiday weekend. Our API service that calls WMSPanel is an Azure API and it can come from one of 30 IP addresses. Please tell me that there is a way to at least temporarily turn off the IP whitelist security feature at least temporarily

Sergei 2023-09-04 05:32:35 UTC 

Hello,
if you set up a proxy, only its IP should be revealed to WMSPanel.
This is the actual way of dealing with several hosts requesting WMSPanel API, and there's no way to turn whitelisting off.
I also suggest asking your question at wmspanel.com/help.

Post a reply


Post a new question

Categories:

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the Privacy Policy. If you want to know more or withdraw your consent to all or some of the cookies, please refer to the Privacy Policy.
By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies.