Forum

Post a new question

Categories:

Tags:

Request to WMSpanel API issue

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

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
Dc6ef0ce8f25f2cea3d629973736604b

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
Ba425406063261ec184229ed0d5a200d

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
Dc6ef0ce8f25f2cea3d629973736604b

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
Dc6ef0ce8f25f2cea3d629973736604b

Thanks

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

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
Ba425406063261ec184229ed0d5a200d

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.

Post a reply



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.